Pedro Algarvio
aaf0f4aba0
Fix imports
2014-11-26 21:08:13 +00:00
Pedro Algarvio
9f60901597
Switch open()
for salt.utils.fopen()
2014-11-26 18:29:21 +00:00
Pedro Algarvio
737bd84402
Switch open()
for salt.utils.fopen()
2014-11-26 18:28:56 +00:00
Pedro Algarvio
53f554468d
Switch open()
for salt.utils.fopen()
2014-11-26 18:28:15 +00:00
Pedro Algarvio
91af550062
Switch open()
for salt.utils.fopen()
2014-11-26 18:25:20 +00:00
Pedro Algarvio
c4d0686024
Switch open()
for salt.utils.fopen()
2014-11-26 18:24:08 +00:00
rallytime
dc3c8f91bd
Pylint fix
2014-11-24 19:44:54 -07:00
rallytime
792433f915
Started some unit tests for the cmdmod.py module
2014-11-24 17:03:52 -07:00
Thomas Jackson
44f91a1d21
Add regression test for #8670
...
Before the fix in #18363 get_event would return None on the first non-matching event (since wait was 0), this is to verify that get_event works properly with a wait of 0
2014-11-21 08:54:05 -08:00
Thomas Jackson
75bf7bd091
pylint fix
2014-11-20 18:35:41 -08:00
Thomas Jackson
0a1b88e6b5
Change all saltnado asserts to unittest asserts. This way when there is a failure you get nice pretty printouts!
2014-11-20 18:35:41 -08:00
Thomas Jackson
e2102fcbc7
Pylint cleanup
2014-11-14 09:15:54 -08:00
Thomas Jackson
6f0552c9e1
Pylint fixes
2014-11-13 09:33:14 -08:00
Thomas Jackson
ebfee14fda
Add test for using a Future in multiple "Any" futures
2014-11-13 08:36:28 -08:00
Thomas Jackson
f0f9b14ee2
Add tests for MinionSaltAPIHandler
2014-11-13 08:36:27 -08:00
Thomas Jackson
26afdd34ae
Re-factor test cases
2014-11-13 08:36:27 -08:00
Thomas Jackson
4b8ac6a9e3
Add tests for auth handler
...
break unit tests for handlers into a separate file
Misc error handling fixes in Login handler
2014-11-13 08:36:26 -08:00
Thomas Jackson
6245c27391
Add tests for deserialize (and fix a few bugs in there)
...
More cleanup of websockets separation
2014-11-13 08:36:26 -08:00
Thomas Jackson
ecbd269eda
Move future testing out of event listener test class
2014-11-13 08:36:26 -08:00
Thomas Jackson
ecefbb91dc
Add tests for Any Futures
...
move eventlistener callbacks into the class
2014-11-13 08:36:26 -08:00
Thomas Jackson
3816236e26
Add test for event you don't want
2014-11-13 08:36:26 -08:00
Thomas Jackson
257a73fb69
Add first tests for rest_tornado!
2014-11-13 08:36:26 -08:00
Thomas Jackson
f24c94dd7b
Pylint fixes
2014-11-10 13:03:35 -08:00
Thomas Jackson
c43ac0a4c2
remove comment from local debugging
2014-11-10 08:33:39 -08:00
Thomas Jackson
e862642ff7
Add tests for SREQ class
...
revert keys() change to socket dicts since we will mutate the dict on iteration
2014-11-10 08:29:58 -08:00
Pedro Algarvio
ed321a4898
Don't reset the template registry
2014-11-09 14:17:15 +00:00
Justin Findlay
ba1ce3dfc5
pylint fixes
2014-11-08 00:33:02 -07:00
Justin Findlay
9e9903c521
add unit tests for salt/modules/cp.py
2014-11-07 16:35:25 -07:00
Justin Findlay
26094b39b4
pylint fix on linux_sysctl_test.py
2014-10-31 12:41:04 -06:00
Justin Findlay
f09b8e3873
remove redundant mock_open() in darwin_sysctl_test.py
2014-10-31 10:42:57 -06:00
Justin Findlay
106f645c9e
adding tests for modules/linux_sysctl.py
2014-10-31 10:16:41 -06:00
rallytime
19d70dfac5
Added another test to module.run state unit tests
2014-10-24 15:28:03 -06:00
rallytime
f6490e9572
Add initial unit tests for module.run state function
2014-10-24 08:56:40 -06:00
Nicole Thomas
ff1646e451
Merge pull request #16769 from rallytime/jid_str_test
...
Test long jid passed on CLI
2014-10-21 15:50:29 -06:00
Cimarron Mittelsteadt
43fea4f3ea
TST: Updated mac_user tests for modifications to OS release handling
2014-10-21 15:00:58 -06:00
rallytime
ed37dde094
Pylint fix
2014-10-20 21:21:01 -06:00
rallytime
3020b2084b
Test long jid passed on CLI
2014-10-20 16:53:56 -06:00
Thomas S Hatch
4b630d77ed
Merge pull request #16407 from s0undt3ch/hotfix/cache-loaded-configs
...
First attempt at caching the loaded configuration from the filesystem.
2014-10-13 20:05:52 -06:00
Thomas S Hatch
ef83ad23c3
Merge pull request #16579 from s0undt3ch/hotfix/vt-fixes
...
More VT fixes
2014-10-13 14:23:11 -06:00
Pedro Algarvio
e683619f9f
Having data left to read does not mean the process is alive
2014-10-13 17:19:42 +01:00
Pedro Algarvio
4470c0dc68
White-space lint fix
2014-10-12 04:29:59 +01:00
Pedro Algarvio
51479e4592
Include a test case in order to check for full output from VT
2014-10-12 03:37:08 +01:00
Pedro Algarvio
743c26e562
Instead of checking for a live process, check for unread data.
...
Add a unit test which tests proper behaviour.
Fixes #15941
2014-10-12 02:28:35 +01:00
Pedro Algarvio
41870ef3e0
Fix ensure in syspath call
2014-10-12 02:16:23 +01:00
Pedro Algarvio
4fca1c96da
Set the cachedir to a relative path
2014-10-12 02:16:23 +01:00
Pedro Algarvio
52d0d01d09
Set the cachedir to a relative path
2014-10-12 02:16:23 +01:00
Pedro Algarvio
e9fbd9910d
Set the cachedir to a relative path
2014-10-12 02:16:23 +01:00
Pedro Algarvio
8d9570ef43
Set the cachedir to a relative path
2014-10-12 02:16:23 +01:00
rallytime
7e09896c7c
Clean up boto_secgroup unit test
...
This test required some tweaks as there are new versions of boto and moto
2014-10-10 16:35:08 -06:00
Gareth J. Greenaway
9ae138e1a4
Fixing the unit tests for ps module
2014-10-07 20:56:02 -07:00
Pedro Algarvio
ff97810661
Load configs from scratch
2014-10-08 01:02:10 +01:00
Steve Weber
a0c3723c96
removed the slash when using slspath
2014-09-30 10:51:36 -06:00
rallytime
b891ef12f0
Skip test_vt_size unit test
2014-09-25 15:38:01 -06:00
Thomas S Hatch
3ce4387f3f
Merge pull request #16001 from thatch45/ssh_fsclient
...
Ssh fsclient
2014-09-23 14:41:28 -06:00
Thomas S Hatch
e2d640962a
Fix Jinja test
2014-09-23 14:02:34 -06:00
Thomas S Hatch
7355f53057
Add fileserver_backend to jinja tests local opts
2014-09-22 10:29:25 -06:00
rallytime
936a6bca5a
Fix mdadm tests
2014-09-19 16:35:43 -06:00
rallytime
4a740d876d
Change ec2 profile name in config_test so test doesn't fail
2014-09-18 20:41:08 -06:00
rallytime
e34157c70b
Add skipIf import to fix the 2014.7 tests
2014-09-15 08:23:08 -06:00
Pedro Algarvio
a171a35c89
Disable test_issue_10404_ptys_not_released
...
Disabled until we can find out why this kills the tests suite with an exit code of 134
2014-09-14 23:54:38 +01:00
Pedro Algarvio
da1fb62a67
Fix typo in comment
2014-09-11 18:18:39 +01:00
Thomas S Hatch
70950a1543
Merge pull request #15510 from lyft/boto_elb_resolve_error_on_deregister_instances_call
...
deregister_instances and register_instances methods return True/False/None
2014-09-04 15:32:45 -06:00
Colin Johnson
754c01448e
provide True, False and None returns on deregister_instances and register_instances methods
2014-09-04 05:53:52 +00:00
Colton Myers
3a5f8281da
Merge pull request #15490 from basepi/backport_boto
...
Backport boto modules/states/tests
2014-09-03 16:23:35 -06:00
Colton Myers
c7b666fe43
Bring boto state tests from develop to 2014.7
2014-09-03 15:22:55 -06:00
Colton Myers
c127b4bafe
Bring boto module tests from develop to 2014.7
2014-09-03 15:22:17 -06:00
Mike Place
c8f67c2b89
Fix tests and lint
2014-09-03 14:17:27 -06:00
Jon Henry
5b47b0bdb7
Fix gem unit test with new proxy parameter
2014-08-25 13:55:59 -06:00
rallytime
e8fab3d28a
Fix psutil version
2014-08-14 21:22:55 -06:00
rallytime
0683c704dd
Move psutil version check
2014-08-14 21:20:25 -06:00
rallytime
8dca2515ee
Skip virtual_memory and swap_memory tests if psutil < 0.6.0
2014-08-14 16:16:38 -06:00
Pedro Algarvio
7b2126c550
Make pylint ignore "non issues"
2014-08-10 06:06:41 +01:00
Pedro Algarvio
9ebe6f3873
Test exc_info
per handler
2014-08-10 03:44:53 +01:00
Thomas S Hatch
b0561a703b
Revert "Pull out pending_events changes and reuse"
...
This reverts commit e832a3a17f
.
2014-08-08 12:49:46 -06:00
Pedro Algarvio
c9be462f00
Skip tests if real mock library is not available
2014-08-08 00:52:47 +01:00
Pedro Algarvio
a399e62ca2
Skip tests if real mock library is not available
2014-08-08 00:46:21 +01:00
Pedro Algarvio
97f1b00818
Skip tests if real mock library is not available
2014-08-08 00:46:21 +01:00
Pedro Algarvio
faf3157637
Skip tests if real mock library is not available
2014-08-08 00:46:21 +01:00
Pedro Algarvio
21141af46a
Skip tests if real mock library is not available
2014-08-08 00:46:21 +01:00
Pedro Algarvio
239b2480ae
Skip tests if real mock library is not available
2014-08-08 00:46:21 +01:00
Michael Birtwell
32acb7aeae
Pull out pending_events changes and reuse
...
PendingEventsBase implements all the pending_events queue management
Make both normal SaltEvent and raetevent.SaltEvent inherit from this to
standardise the get_event interface.
Update tests for event.SaltEvent (Couldn't find tests for
raetevent.SaltEvent)
2014-07-31 12:23:38 -06:00
Pedro Algarvio
3a16b42eb9
Add another which only changes the noc
2014-07-30 18:10:22 +01:00
Pedro Algarvio
7a77942a82
Add another example for version comparison
2014-07-30 18:10:16 +01:00
Pedro Algarvio
fc239f8cd9
Add another version example to the tests
2014-07-30 18:10:09 +01:00
Pedro Algarvio
827ccd5338
Support a minor bugfix attribute in the version string
2014-07-30 18:10:02 +01:00
Seth House
adabf74852
Added utils module for working with hash functions
2014-07-25 16:12:37 -06:00
Seth House
ac6c7d0d6d
Added utils-style IP-check functions to the network module
2014-07-25 15:20:14 -06:00
Seth House
0d8cc41c61
Added tests for calling functions via Jinja with dot-lookup syntax
...
Yay!
2014-07-25 12:27:45 -06:00
Thomas S Hatch
0577b4070b
lint fix
2014-07-25 10:21:31 -06:00
Pedro Algarvio
ea01af39b4
Skip test on Darwin after making an effort
2014-07-24 13:12:46 +01:00
rallytime
9b9a60efea
Skip vt_test in os x - still needs some work to run
2014-07-23 14:40:03 -06:00
Nicole Thomas
486dbe3476
Merge pull request #14389 from s0undt3ch/hotfix/osx-pyt-nr
...
Allow the VT tests to run on OSX
2014-07-23 14:38:58 -06:00
Pedro Algarvio
6c7e39dfcd
Factor out into a function the current number of PTY's detection code
2014-07-23 19:43:18 +01:00
rallytime
51c7b95e6f
Give rhel5 a chance to pass the cache tests
2014-07-22 15:38:54 -06:00
rallytime
a3da60def4
Remove unnecessary print statement
2014-07-22 12:16:39 -06:00
Pedro Algarvio
fa2149e1da
Allow the VT tests to run on OSX
2014-07-22 15:20:03 +01:00
rallytime
7bb5ef3773
Skip lxc tests if no lxc and skip failing vt_test if running osx
2014-07-21 17:11:20 -06:00
rallytime
c70c8ee5aa
Remove cloud_config tests for deprecated arguments
2014-07-17 16:41:11 -06:00
rallytime
81e06fa252
Removed deprecated functions in salt/modules/ps.py
2014-07-16 12:49:45 -06:00
Colton Myers
11bfbd7a85
Merge pull request #14272 from rallytime/deprecate_check_dns
...
Deprecate check_dns
2014-07-16 11:44:32 -06:00
rallytime
dfb8894e6a
Remove unused imports
2014-07-16 06:41:28 -06:00
rallytime
6733f45924
Removed deprecated references to check_dns
2014-07-16 06:26:08 -06:00
rallytime
1c3737a883
Remove remaining references and tests to no_site_packages
2014-07-16 06:00:08 -06:00
rallytime
4d329296b0
Remove unused import
2014-07-15 18:15:58 -06:00
rallytime
534f3df900
Remove test for no_site_packages deprecation
2014-07-15 17:28:40 -06:00
Thomas S Hatch
6abccbc0cf
fix this better, don't use clean_proc from master.py.
2014-07-15 15:06:15 -06:00
rallytime
7bea8f5cb6
Change python asserts to unittest asserts
2014-07-15 11:56:50 -06:00
Leonids Maslovs
6c3973ec05
WIP 13793 Unit tests fixed
2014-07-15 13:19:07 +03:00
Thomas S Hatch
8435329d91
Merge pull request #14209 from cachedout/master_config
...
Small refactor
2014-07-14 16:06:09 -06:00
Mike Place
457a33d633
Fix test errors
2014-07-14 13:46:45 -06:00
Khris Richardson
1acd82f3f1
add sphinx spelling extension. enforce en_us
2014-07-13 13:43:33 -05:00
Pedro Algarvio
7862600683
Remove syslog-ng tests. Refs #14163
2014-07-13 00:09:45 +01:00
Pedro Algarvio
1772b40ecd
Merge pull request #14139 from rallytime/batch_test
...
A couple of batch unit tests
2014-07-12 00:06:40 +01:00
rallytime
010f942dc8
Pylint fix, again.
2014-07-11 16:02:06 -06:00
rallytime
2523d8c641
Mock LocalClient in batch unit tests
2014-07-11 15:38:34 -06:00
rallytime
c61a1eeb20
Pylint fix
2014-07-11 14:09:24 -06:00
rallytime
2783249931
Remove line
2014-07-11 13:55:56 -06:00
rallytime
bc155127a3
A couple of batch unit tests
2014-07-11 13:54:35 -06:00
btibi
851ce0fde4
Add syslog_ng execution module.
2014-07-09 22:42:36 +02:00
btibi
f69977d3e5
Add syslog_ng state module.
2014-07-09 22:04:13 +02:00
Thomas S Hatch
ccb4f1e1e8
Merge pull request #14059 from rallytime/schedule_tests
...
One more unit test for utils.schedule
2014-07-09 12:45:05 -06:00
rallytime
c5c841750a
Raise ValueError instead of returning in utils.schedule.eval
2014-07-09 11:59:31 -06:00
btibi
9eeed00382
ps: add partial psutil 2.0 compatibility
2014-07-09 19:54:25 +02:00
rallytime
7942350a65
Fix where=None bug
2014-07-08 16:58:19 -06:00
rallytime
0a7b58652b
Fix potential KeyError in schedule.delete and more unit tests
2014-07-08 15:54:30 -06:00
rallytime
a3c1d0e320
A few more tests for enabling and disabling jobs
2014-07-08 12:00:08 -06:00
rallytime
5ad8bb8f01
Update test docstrings
2014-07-08 11:38:16 -06:00
rallytime
cf11ca22d0
More scheduler unit tests and fixed keyerror possibility
2014-07-08 11:27:32 -06:00
Thomas S Hatch
cec3b71840
Merge pull request #14026 from cachedout/gpg_bin_check
...
Check for gpg binary
2014-07-08 11:01:23 -06:00
Mike Place
7b9c313773
Check for gpg binary
2014-07-08 10:16:05 -06:00
Thomas S Hatch
a3f9e89072
Merge pull request #14012 from rallytime/output_grains_tests
...
Test for unicode characters in grains outputter
2014-07-07 16:48:23 -06:00
Thomas S Hatch
09366515dc
Merge pull request #14016 from rallytime/fix_bad_copypaste
...
Fix typo in email from bad copy-paste
2014-07-07 16:16:47 -06:00
rallytime
d5c2a92d24
Fix typo in email from bad copy-paste
2014-07-07 16:12:11 -06:00
rallytime
b4f98fc505
fix email address
2014-07-07 15:44:36 -06:00
rallytime
e1b6a2a9f1
Remove unnecessary line
2014-07-07 15:37:07 -06:00
rallytime
9aceee587c
Test for unicode characters in grains outputter
2014-07-07 15:35:10 -06:00
Mike Place
44a06ef7f0
Fix gpg test
2014-07-07 15:26:27 -06:00
rallytime
a7eadd74ff
remove unnecessary comment
2014-07-03 15:49:59 -06:00
rallytime
656db75ac0
Started some schedule unit tests
2014-07-03 15:48:46 -06:00
Thomas S Hatch
5f959591c6
Merge pull request #13713 from terminalmage/issue13672
...
Allow traversing dicts nested with lists when matching
2014-06-25 14:40:26 -06:00
Erik Johnson
d726c2f48a
Add additonal unit tests for pull request #13713
2014-06-25 11:52:02 -05:00
Matthew Williams
45fadcf885
fix bugs in highstate whitelist, add tests
2014-06-24 17:38:53 -04:00
rallytime
67e65b237d
More cloud config unit tests
2014-06-24 10:59:46 -06:00
rallytime
f821ccaa88
More cloud profile config tests
2014-06-23 15:19:11 -06:00
rallytime
d9f53a37f9
One more cloud config unit test
2014-06-23 12:17:26 -06:00
rallytime
d9c9297954
Make cloud configuration unit tests more organized
2014-06-20 15:47:00 -06:00
rallytime
1e83b2012b
Unit tests for is_provider_configured function in salt.config.py
2014-06-20 15:29:18 -06:00
Pedro Algarvio
d4c07d6776
Merge pull request #13574 from whiteinge/misc-salt-api-fixes
...
Misc salt api fixes
2014-06-20 01:28:41 +01:00
Pedro Algarvio
15071b460a
Merge pull request #13579 from rallytime/cloud_config_unittests
...
Unit tests for cloud_config function in salt.config.py
2014-06-20 00:50:08 +01:00
Seth House
66e2b54f36
Added encoding comment to empty init files
2014-06-19 17:37:44 -06:00