Commit Graph

46990 Commits

Author SHA1 Message Date
Elias Probst
35baba9e54 Fix #18689 by handling psutil exceptions.
The information of some processes can't be accessed on Windows when
they're run under the 'LOCAL SERVICE' account.
This caused exceptions which bubbled up into `ps.pgrep` and caused
there backtraces as described in #18689.
2015-02-09 16:06:59 +01:00
Alexander Schwartz
c05aae9ce7 added archive test script 2015-02-09 14:52:46 +00:00
Rupesh Tare
264b63b9df implemented unit test cases for nagios module 2015-02-09 19:49:14 +05:30
Jayesh Kariya
d6101705b9 adding osxdesktop unit test case 2015-02-09 18:24:45 +05:30
Jayesh Kariya
d72afef3dd adding haproxyconn unit test case 2015-02-09 18:23:22 +05:30
Jayesh Kariya
16503cba43 adding btrfs unit test case 2015-02-09 18:21:03 +05:30
Greg Thompson
41039e0e03 Added the option to-source to the after_jump list, to enable the
configuration of SNAT rules with the iptables module.
2015-02-09 12:12:46 +00:00
Arnold Bechtoldt
9de6c1d839 improve test tests/unit/utils/validate_net_test.py useability 2015-02-09 11:52:08 +01:00
Arnold Bechtoldt
50ecfef1db do call class methods correctly 2015-02-09 09:45:12 +01:00
Arnold Bechtoldt
2c5f5f8bf7 fix pep8 lint checks, refs #20508 2015-02-09 09:14:38 +01:00
Arnold Bechtoldt
ef7834db76 fix broken ipv6 address verification in salt.utils.validate.net 2015-02-08 23:48:05 +01:00
Jurnell Cockhren
a3bd69d47f fixed trailing whitespace 2015-02-08 10:40:49 -06:00
Joseph Hall
dc73c308fc Merge pull request #20501 from gtmanfred/develop
include rackconnectv3 variable
2015-02-07 20:01:21 -07:00
Daniel Wallace
a123e93760 add note about rackconnectv3 variable 2015-02-07 20:37:59 -06:00
Daniel Wallace
9448494ce1 fix rackconnect v3 implementation 2015-02-07 20:35:33 -06:00
Elias Probst
4951b78477
Use same string encoding for results from all fileserver backends.
Each fileserver backend might return files using a different encoding
which will lead to a backtrace when the resulting file set is sorted().

This fixes #20499 and applies the same security measure to other
fileserver functions where appropriate.
2015-02-08 01:53:02 +01:00
jfindlay
b8deab5af9 Merge pull request #20497 from highlyunavailable/feature/influxdb_fixes
Fix influx API name warnings and user delete bug
2015-02-07 16:49:32 -07:00
jfindlay
3d64e24e53 Merge pull request #20491 from bechtoldt/requisites_article
add some cosmetic changes to the state requisites article
2015-02-07 16:37:39 -07:00
Thomas Jackson
f4abce1d24 Add six import to loader 2015-02-07 14:55:31 -08:00
Thomas Jackson
640aff6378 Fix mis-naming from pylint cleanup 2015-02-07 14:55:30 -08:00
Thomas Jackson
438ede78ba Support arbitrarily deep modules
Note: salt can still only *call* modules on the first depth, but they can then import anything below
2015-02-07 14:55:30 -08:00
Highly Unavailable
cda2b65bf5 Fix more errors.
That'll teach me not to work in two places at once.
2015-02-07 14:52:08 -08:00
Highly Unavailable
8bea0241b8 Fix incorrect variable name 2015-02-07 14:33:59 -08:00
Highly Unavailable
826f32804c Fix lint errors and make check more specific 2015-02-07 14:32:52 -08:00
Highly Unavailable
df7c09e616 Fix influx API name warnings and user delete bug
Some influxdb python API methods changed names and were generating
warnings every time this module was run.

The user_remove method had a bug that actually deleted the user you were
logged in as rather than the user you wanted to delete when run.

Added a method to test login for a user to see if they exist (mostly to
work around a use case described in #20496.) - for example to try logging
in as root:root to see if it's been deleted.
2015-02-07 13:15:39 -08:00
Thomas Jackson
249096c292 Change modulekey for submodule test-- to avoid namespace collisions 2015-02-07 12:02:26 -08:00
Thomas Jackson
7605ba60a8 pylint 2015-02-07 12:02:26 -08:00
Thomas Jackson
ca5eac3936 Add support for submodules to LazyLoader
This was a feature that was inadvertently removed in #20274, but since it was undocumented and untested no one noticed. Thanks to @steverweber for pointing it out.

This includes the feature as well as tests.
2015-02-07 12:02:26 -08:00
Thomas Jackson
725708a04b Correct tag name in loader tests 2015-02-07 12:02:23 -08:00
Thomas Jackson
bb89068010 Add "disabled" support
this allows you to "blacklist" modules.

Addition to #20274

Conflicts:
	salt/loader.py
2015-02-07 12:02:03 -08:00
rallytime
15a140ece4 Moved tests/unit/loader.py to tests/integration/loader/loader.py
These are integration tests and not unit tests, so they should be
in the proper directory.

Also, fixed up the python 3 incompatability pylint errors.
2015-02-07 11:59:47 -08:00
Thomas Jackson
fb0d46f445 Pylint 2015-02-07 11:59:03 -08:00
Thomas Jackson
368e5a8e92 Add test for __func__alias__ 2015-02-07 11:59:03 -08:00
Thomas Jackson
5ba53611c4 Remove some old unused code 2015-02-07 11:59:03 -08:00
Thomas Jackson
9ee188dd90 More loader tests
As well as an optimization on clear()
2015-02-07 11:59:01 -08:00
Thomas Jackson
fe2d141081 Add loader tests 2015-02-07 11:59:00 -08:00
Thomas Jackson
3348820058 Since clear() removes all modules, reloads are unecessary 2015-02-07 11:59:00 -08:00
Thomas Jackson
f7da6364ff Minor performance improvement 2015-02-07 11:59:00 -08:00
Thomas Jackson
1772a280f4 If you have the module loaded, lets not require another hit to disk 2015-02-07 11:59:00 -08:00
Thomas Jackson
726f8dc2ac Check that __context__ is always present, since it now is (properly) 2015-02-07 11:59:00 -08:00
Thomas Jackson
728e33a136 remove old deprecated mechanism 2015-02-07 11:58:56 -08:00
Thomas Jackson
3e9f9100e3 Fix process_virtual error_reasons
Never used, so I fixed it up to not be a list-- since you can only have one. We will also log this as an error, for now since the module is asking for an error
2015-02-07 11:58:56 -08:00
Thomas Jackson
8a1ef674ab Misc cleanup 2015-02-07 11:58:56 -08:00
Thomas Jackson
d539380266 Cleanup FunctionWrapper 2015-02-07 11:58:56 -08:00
Thomas Jackson
e55919b0d1 Remove unecessary format, a string is always a string 2015-02-07 11:58:53 -08:00
Thomas Jackson
69f3f3dd0f Move "pack" over to a dict
Since it doesn't make sense to allow for duplicate "name" pack items, we should just use a dict. This also makes sharing __context__ between all the plugins *significantly* cleaner
2015-02-07 11:58:50 -08:00
Thomas Jackson
f47df434e3 Inject globals after verifying the function-- because it might not exist!
Conflicts:
	salt/client/mixins.py
2015-02-07 11:58:46 -08:00
Thomas Jackson
a55c155de4 Attempt dict access
Apparently SSH FunctionWraper breaks when you do just the "in" comparator
2015-02-07 11:57:45 -08:00
Thomas Jackson
d1b57764e6 Conditionally inject context (if no one else has) 2015-02-07 11:57:45 -08:00
Thomas Jackson
795fa12415 Remove test as well
Conflicts:

	tests/unit/output/grains.py

Conflicts:
	tests/unit/output/grains.py
2015-02-07 11:57:40 -08:00