Commit Graph

718 Commits

Author SHA1 Message Date
rallytime
aacf7ee6ac Ah! Almost forgot the destructive test decorators 2014-03-13 13:55:32 -06:00
rallytime
1dd6fd45bc Pylints 2014-03-13 13:51:58 -06:00
rallytime
69d974d764 Refactored and wrote more mac_user integration tests 2014-03-13 13:47:01 -06:00
rallytime
b9ea2d09f4 pylint fixes 2014-03-11 21:45:41 -06:00
rallytime
edfd0f4a99 Wrote a mac_user integration test 2014-03-11 15:26:16 -06:00
rallytime
b7d4e2ed96 Started some integration tests for mac_user module 2014-03-10 11:19:40 -06:00
Thomas S Hatch
81790838fa tmp stub out test until we can find a better home for it 2014-02-17 14:31:41 -07:00
Vye Wilson
e2b1381185 Adds support for updating cached git repo url.
Fixes #10408
2014-02-12 18:58:42 -08:00
Pedro Algarvio
059ed16d02 Remove unused import 2014-02-12 15:37:15 +00:00
Pedro Algarvio
b60a0543ce Skip test if binaries missing 2014-02-08 07:45:25 +00:00
Pedro Algarvio
3e0780fa78 Remove unused imports 2014-02-08 07:43:30 +00:00
Pedro Algarvio
8e0233bbb8 Remove unused imports 2014-02-08 07:42:32 +00:00
Pedro Algarvio
378a9d5b21 Simplify test requirements. 2014-02-03 10:55:44 +00:00
Thomas S Hatch
ce1f305745 Merge pull request #10031 from kaithar/feature/test-fixes
Feature/test fixes
2014-01-31 09:38:38 -08:00
Daniel Bradshaw
bc967fa3fb Expand tests for manage_mode 2014-01-29 18:46:44 +00:00
Daniel Bradshaw
0a7546b1b1 Correct import 2014-01-29 18:01:35 +00:00
Daniel Bradshaw
b89ca9e9e7 Attempt to correct test failing due treating 0755 as octal but passing it as decimal. 2014-01-17 22:49:36 +00:00
Daniel Bradshaw
3896313436 Changing zfill(3) to zfill(4) so that we get '0700' instead of '700'
There is a possibility of this causing regressions, it will work correctly where both params are passed through it or where it's being compared with stat() output.  If there is code expecting a '700' style permission it will fail.  Realistically, '0700' is correct so the other code needs to be fixed.
2014-01-17 21:09:35 +00:00
Erik Johnson
18a4c95f46 whitelist expand_repo_def in test_valid_docs 2014-01-16 22:40:22 -06:00
Pedro Algarvio
4221499b59 Some systems do not have the python binary 2014-01-14 14:10:33 +00:00
Pedro Algarvio
ab6d7d8029 Skip test if the which binary is not available 2014-01-14 12:30:18 +00:00
Pedro Algarvio
106c44587e Merge pull request #9701 from s0undt3ch/hotfix/ssh-binaries
Skip the tests if binaries are missing.
2014-01-11 14:47:14 -08:00
Pedro Algarvio
2bb11d24b9 Skip the tests if binaries are missing. 2014-01-11 14:38:17 -07:00
Pedro Algarvio
b1ddb350b6 Some more white-space lint fixes 2014-01-11 13:48:12 -07:00
Pedro Algarvio
c8038d87b1 Use KNOWN_BINARY_NAMES from salt.modules.virtualenv 2014-01-11 12:19:29 -07:00
Pedro Algarvio
2cab3227fd The virtualenv binary can have multiple CLI names. 2014-01-02 20:27:18 +00:00
Thomas S Hatch
26a3eb1ec8 remove test for not yet covered case 2013-12-19 14:27:40 -07:00
Pedro Algarvio
b7b99a3a06 Let's see if PyLint stops complaining. 2013-12-14 00:40:34 +00:00
Thomas S Hatch
49f4ae324f Changed underlying error message to be more concise 2013-12-13 15:27:44 -07:00
Thomas S Hatch
39e849c314 pylint fixes 2013-12-12 20:51:28 -07:00
Thomas S Hatch
ea22369481 lint fixes for mysql tests 2013-12-12 15:13:20 -07:00
regilero
f1b6b4af55 MySQL tests: add a localhost target on mysqladmin test to check for MySQL server presence 2013-12-12 21:23:52 +01:00
regilero
9195f8e5f7 Lint fix 2013-12-11 14:40:42 +01:00
regilero
3b14cd7cb4 Merge remote-tracking branch 'upstream/develop' into mysql_additions 2013-12-11 00:56:56 +01:00
regilero
f980c64bc4 MySQL Module: remove use_unicode connection attribute, not needed for charset managment and would create new bugs with unicode() strings 2013-12-10 23:07:13 +01:00
regilero
532796b4d2 MySQL module integration tests: grants tests and percent and _ tests 2013-12-10 22:54:45 +01:00
Gareth J. Greenaway
ca9197c5a7 Added missing definitions for networking setting, add and get. Changed interface parsing to use a dictionary for inet and inet6 interfaces instead of an array. Certain assumptions were made within the code on the order the ipv4 & ipv6 interfaces would appear, using a dictionary instead resolves some potential issues that could have popped up with an array. removing the tests for ip.get_network_settings and ip.build_network_settings from the exclusion. 2013-12-10 11:46:47 -08:00
regilero
2dc7d80786 MySQL: Module: user_grants tests 2013-12-09 20:48:36 +01:00
Thomas S Hatch
2571d4706c Merge pull request #9059 from terminalmage/issue5919
Add check for '.' in require/watch requisites
2013-12-09 10:17:45 -08:00
regilero
dc615426e7 BUG: white list filtering of grants 2013-12-09 16:27:26 +01:00
regilero
66b6ac31a7 MySQL module test: test conn except for utf-8 db names 2013-12-08 16:37:45 +01:00
Erik Johnson
a7769b358e Quiet travis failures for new functions missing docstrings 2013-12-06 16:27:56 -06:00
Erik Johnson
685d1d36de Fix requisite tests
Now that state.func_name is invalid in requisites, remove them from this
test.
2013-12-06 15:16:57 -06:00
Thomas S Hatch
a6eb0cb460 Fix code errors in disk integration test 2013-12-06 10:49:19 -07:00
regilero
a59d47bc9e Merge remote-tracking branch 'upstream/develop' into mysql_additions 2013-12-06 10:53:32 +01:00
Joseph Hall
17ca2aeac2 Merge pull request #9024 from cachedout/#8976
Grains detection for LXC and fix error in disk.usage under Docker
2013-12-05 04:34:15 -08:00
regilero
0bfbd7835e MySQL: Suspend grants tests 2013-12-04 22:43:27 +01:00
regilero
b376d1a82b MySQL States integration module with db tests 2013-12-04 22:33:33 +01:00
regilero
5d9ed7d935 typo 2013-12-04 22:33:12 +01:00
regilero
934e62f587 Lint fixs 2013-12-04 22:33:03 +01:00
regilero
ee02117404 BUGFIX: custom MySQldb converter breaks use_unicode code in MySQLdb as 4 types should be set as list and not strings. It was breaking the connection when using use_unicode attribute 2013-12-04 22:32:53 +01:00
regilero
67dc2f5eaa Mostly working mysql user management integrations tests 2013-12-04 22:32:44 +01:00
regilero
ffe6de1592 Integration tests for MySQL user managment, WIP 2013-12-04 22:32:07 +01:00
Mike Place
398ebc1503 Don't run the #8976 tests on Windows. 2013-12-04 12:38:54 -07:00
Mike Place
e6e0a7d919 Integration testing for #8976 2013-12-04 12:34:20 -07:00
Mathieu Le Marec - Pasquet
5f46962e80 pep8 fixes 2013-12-04 00:25:50 +00:00
Chris Rebert
d91851a479 fix naming of modules.mysql.quoteIdentifier() to follow convention 2013-12-03 10:42:24 -08:00
Pedro Algarvio
b71e7c6ba7 Fix Lint issues. 2013-12-02 13:06:35 +00:00
regilero
b93f1f8d02 MySQL: Add integration Tests for database names with utf8 characters 2013-12-02 12:13:10 +01:00
Pedro Algarvio
a6d0165977 Replace deprecated X.has_key(Y) syntax with Y in X. 2013-12-02 10:35:13 +00:00
Pedro Algarvio
29ee963f62 Fix Lint issues. Closes #8930. 2013-12-02 10:33:13 +00:00
regilero
f5ea59df83 BUG: MySQL integration tests: false positive on accents with assertTrue, use assertEqual instead and comment accents tests 2013-12-01 17:11:37 +01:00
regilero
69fe9eb27d MySQL: Module integration tests for maintenance tasks check/repair/optimize 2013-12-01 15:27:47 +01:00
regilero
95a41bdb9a MySQL integration tests on module level unicode support 2013-12-01 01:35:41 +00:00
Pedro Algarvio
923428c68b Fix PyLint issues. 2013-12-01 01:35:41 +00:00
Pedro Algarvio
c129d3f567 Remove packages installation from mysql tests and push that on travis yml with an opt_requirements.txt source 2013-12-01 00:34:58 +00:00
regilero
05c02c4c50 Try to install python-mysql in travis env via pip to enable MySQL module 2013-12-01 00:34:30 +00:00
regilero
b5f588a9fc Initial MySQL integration test with MySQl packages installed 2013-12-01 00:34:29 +00:00
Pedro Algarvio
77df007d2f Ignore the exception not declared Pylint error. 2013-11-27 13:04:45 +00:00
Pedro Algarvio
880c9b5cff Fix PEP8 E261 - White space before inline comment 2013-11-27 12:56:35 +00:00
Pedro Algarvio
f2e3a4aebe Fix PyLint C0322 and C0324 - Spaces around opertor and commas 2013-11-27 12:48:53 +00:00
Pedro Algarvio
eea0001942 Fix PyLint W0105(String statement has no effect) 2013-11-27 12:32:54 +00:00
Pedro Algarvio
7164ac1826 Fix Undefined variable 2013-11-27 12:31:27 +00:00
Pedro Algarvio
b841c7fdbe Indexed .format() curly braces! 2013-11-27 12:14:30 +00:00
Pedro Algarvio
0ae1a15c61 PEP8 E302 and E303 blank lines fixes. 2013-11-27 12:11:45 +00:00
Pedro Algarvio
d02a2bc224 Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
Pedro Algarvio
b89252b264 The docker tests need docker. Skip them if not available. 2013-11-27 10:36:51 +00:00
Thomas S Hatch
079c849adf Merge pull request #8834 from cro/dockerio_cleanup
Add some tests for docker integration.
2013-11-26 11:18:22 -08:00
C. R. Oldham
10ef0de5f6 Add some tests for docker integration. 2013-11-26 12:13:25 -07:00
Thomas S Hatch
5637339b2c Merge pull request #8823 from regilero/requisites-fix
Fix #8773: allow syntax error state.foo in requisites with a warning.
2013-11-26 08:07:40 -08:00
regilero
4497751420 Fix #8773: allow syntax error state.foo in requisites with a warning. 2013-11-26 11:57:09 +01:00
regilero
9094d36b44 Comment tests for closed issue #8802 2013-11-26 10:54:32 +01:00
regilero
ab88a276dc remove test for issue #8976 closed as expected behavior 2013-11-26 10:51:47 +01:00
regilero
9b20a408a4 commented tests for issue 8802 use recursion undetected 2013-11-25 15:35:22 +01:00
regilero
38bd6709f0 require vs require_in in not-list yamlsyntax: differences, still on #8235 2013-11-25 12:58:59 +01:00
regilero
58bfbff843 prereq tests for issue #8235 (yaml without lists) and error message difference in no-list mode 2013-11-25 12:46:02 +01:00
regilero
8024df8404 Add test for #8796: use does not inherit require. False test actually 2013-11-25 11:06:37 +01:00
regilero
8177f2b609 Add another working prereq simple test 2013-11-24 18:30:15 +01:00
regilero
ddb99a570d require and prereq mixed tests, mostly failing, see #8785 2013-11-24 18:28:22 +01:00
regilero
ab4ee0ba1f full sls require test, and yet to do check for require_in or prereq #8233 2013-11-23 18:56:07 +01:00
regilero
7b01991c0a require recursion and still not done prereq recursion 2013-11-23 18:20:15 +01:00
regilero
a99cd0eafd Use requisite 2013-11-23 17:26:37 +01:00
regilero
6a7d35bc59 commented test for issue #8211 complex prepreq 2013-11-23 16:59:10 +01:00
regilero
ceb5963094 Prereq and prerequ_in tests 2013-11-23 16:39:19 +01:00
regilero
407533dfa5 require and require_in tests 2013-11-23 16:37:57 +01:00
Pedro Algarvio
4fb38e1e91 Merge pull request #8385 from s0undt3ch/hotfix/test-kwarg
Document passing arguments with equal signs. Refs a1ba178d.
2013-11-10 10:28:20 -08:00
Pedro Algarvio
a192d03ffb Only delete the file if it actually exists. 2013-11-10 15:36:39 +00:00
Pedro Algarvio
66cf8f1845 The argument name is arg, not args. 2013-11-10 15:36:11 +00:00
Pedro Algarvio
0f25353e08 Pass a relative path for proper test execution.
If we're trying to test a failure which happens when the path is not absolute, let's not pass it an absolute path in the first place.
2013-11-10 15:30:42 +00:00
Pedro Algarvio
c66fc86f79 Document passing arguments with equal signs. Refs a1ba178d.
Add additional documentation regarding arguments passing with equal signs for which salt tries hard to turn into keyword arguments. The problem now arises because non supported arguments immediately thrown an exception.
2013-11-10 11:40:01 +00:00
Henrik Holmboe
043f9bf85a Fix typos 2013-11-07 10:06:37 +01:00
Pedro Algarvio
ec0a4bca8e URL environment selection should also be using saltenv. 2013-11-06 23:36:40 +00:00
Pedro Algarvio
b82a051aef Correctly trigger the issue reported on #8196. 2013-11-06 22:49:29 +00:00
Pedro Algarvio
3477300d7f Add a test case to check for proper env selection when passing ?env=foo. Refs #8196. 2013-11-06 22:47:55 +00:00
Pedro Algarvio
c170d1e572 Updated test cases to include environment selection in states using __env__. 2013-11-06 20:04:54 +00:00
Pedro Algarvio
ec76b188b1 Correctly trigger the issue reported on #8196. 2013-11-06 20:03:44 +00:00
Pedro Algarvio
2924f1c14a Add a test case to check for proper env selection when passing ?env=foo. Refs #8196. 2013-11-06 20:03:44 +00:00
Pedro Algarvio
c849c4b57f Moved test cases from #8195 to a better place. 2013-10-31 18:54:25 +00:00
Henrik Holmboe
c10ed8ea60 Fix my typo 2013-10-24 11:42:52 +02:00
Henrik Holmboe
77fd1acb7f Change assertEquals to assertEqual
According to
http://docs.python.org/2/library/unittest.html#deprecated-aliases
assertEquals is a deprecated alias of assertEqual.
2013-10-24 11:39:04 +02:00
C. R. Oldham
8793429f72 Make sure that ssh keys don't get added with incorrect encoding types. 2013-10-15 11:48:28 -06:00
David Anderson
ec4475cf30 Fix issue 5951 - correct __opts__['file_roots'] in ext_pillars 2013-10-11 11:53:00 -06:00
David Anderson
25b0e3f89e Restore the pillar[master][file_roots] when returning the pillar 2013-10-10 15:12:00 -06:00
Pedro Algarvio
c5082f2a77 Patch salt.utils.which to fix Django tests.
After the check added in 8deefc16, the django salt module integration test cases started to fail if the django administration script was not found in `$PATH`.
2013-10-04 19:07:11 +01:00
Pedro Algarvio
707385c1c1 Use the salt testing requires_salt_modules decorator. 2013-09-28 18:57:38 +01:00
Pedro Algarvio
034d8f3a61 Skip tests if libvirt is not importable. 2013-09-28 18:55:15 +01:00
Thomas S Hatch
bd846ffdbb Merge pull request #7264 from holmboe/esxi-init
Introduce disk profiles and enable virt.init on an ESX host
2013-09-27 08:02:11 -07:00
Henrik Holmboe
5324d6a7eb Two integration tests for virt.get_profiles
This will test the default NIC and disk profiles for KVM and ESX.
2013-09-27 01:41:52 +02:00
Pedro Algarvio
4a18003231 Error signatures changed, lets update test cases. 2013-09-24 22:08:08 +01:00
Pedro Algarvio
83d23d9be7 Use salt.utils.is_windows(). 2013-09-24 22:08:08 +01:00
David Anderson
39690b4431 PEP8 fixes for integration.mine.MineTest 2013-09-18 15:22:46 -06:00
David Anderson
3f6de80e27 Add test for mine.delete module 2013-09-18 15:07:04 -06:00
David Anderson
8137097c9e Add test for mine.flush module 2013-09-18 14:49:12 -06:00
Pedro Algarvio
e18ba0758b Don't include authorship in generated documentation, the Sphinx way. 2013-09-16 17:24:00 +01:00
David Anderson
9163d2a00f Fix test description 2013-09-10 21:03:35 -06:00
David Anderson
d5d0aba61e Fix #7154 - cmd.* should fail when cwd does not exist 2013-09-10 20:57:41 -06:00
Pedro Algarvio
2bdddf2713 33cdd9e remove one of the checks, re-add it. 2013-09-08 12:07:27 +01:00
Pedro Algarvio
071917369f Adapt the test case to saltstack/salt@70b26f30b. Refs #4822 2013-09-05 23:35:36 +01:00
Pedro Algarvio
a3a8707d4a Create temporary directories first. 2013-09-05 23:32:48 +01:00
Pedro Algarvio
53abda36da Enforce integration.TMP usage. 2013-09-05 23:17:23 +01:00
Pedro Algarvio
3a569461b6 Since ssh.recv_known_host is now known to return None let's assert it's not None. 2013-09-05 23:13:13 +01:00
Pedro Algarvio
a55bc65f66 Check separately, the order can change. 2013-09-05 07:54:03 +01:00
David Boucha
22a2bf6e04 Merge pull request #7060 from s0undt3ch/develop
Suse user tests fixes
2013-09-04 20:57:17 -07:00
Pedro Algarvio
111171065f Suse based distributions(at least) complain when a username or group starts with digits. 2013-09-05 04:50:51 +01:00
Pedro Algarvio
2c6bfcedb7 Make use of the requires_system_grains decorator 2013-09-05 04:43:39 +01:00
Pedro Algarvio
1a2e9be5d4 Adapt test case to Suse based distributions. 2013-09-05 04:39:54 +01:00
David Boucha
5b76394850 Check for each service status individually
In case they self report out of order
2013-09-04 21:37:26 -06:00
David Boucha
3f1498364d Test service status separately
Sometimes the 2 services return in different orders so we'll test for
each one separately
2013-09-04 15:40:50 -06:00
Pedro Algarvio
7e57813243 Always remove the users/groups added to the system 2013-09-02 05:51:29 +01:00
Pedro Algarvio
8d29140cdc Test user/group creation/deletion under FreeBSD 2013-09-02 05:50:06 +01:00
ranl
f42961081d fixing 61573b1394 (commitcomment-3967806) 2013-08-29 11:50:20 +03:00
Pedro Algarvio
2b64d0482d Make sure every temp dir created on the unittests respects, integration.SYS_TMP_DIR 2013-08-27 15:31:58 +00:00
Pedro Algarvio
57a69f1ff8 Adapted integration.modules.django to use salttesting.mock 2013-08-26 13:03:08 +00:00
Pedro Algarvio
6d06e12e22 Adapted integration.modules.cmdmod to use salttesting.mock 2013-08-26 13:03:08 +00:00
Pedro Algarvio
9353dcafd3 Revert "salt.modules.cmdmod renamed to salt.modules.cmd while enforcing absolute imports."
This reverts commit 3fa341280b.
2013-08-20 23:44:03 +01:00
Pedro Algarvio
d598a8074e Revert "Renamed djangomod module and state to django while enforcing absolute imports."
This reverts commit 2f4d82b295.
2013-08-20 23:43:56 +01:00
Pedro Algarvio
2f4d82b295 Renamed djangomod module and state to django while enforcing absolute imports. 2013-08-19 16:13:38 +01:00
Pedro Algarvio
3fa341280b salt.modules.cmdmod renamed to salt.modules.cmd while enforcing absolute imports. 2013-08-19 13:45:56 +01:00
Erik Johnson
945c3a22c8 allow cp.recv to fail integration.modules.sysmod.SysModuleTest 2013-08-14 20:29:31 -05:00
Erik Johnson
176ab16f40 adjust "CLI Example" test 2013-08-14 20:17:39 -05:00
Pedro Algarvio
a1cd0ef29d Show what the salt function returned in case of assertion errors. 2013-08-14 00:35:58 +01:00
Thomas S Hatch
bb45a8b9f2 sleep longer for grains test if first return is bad 2013-08-13 00:35:55 -06:00
Thomas S Hatch
33cdd9e760 Don't fail on valid order change 2013-08-13 00:32:32 -06:00
Thomas S Hatch
53f7227fdd Add freebsd to grp covered platforms 2013-08-13 00:27:14 -06:00
Pedro Algarvio
799ff82f02 The test case should be executed in the test virtualenv for proper cleanup. 2013-08-12 13:36:52 +01:00
Thomas S Hatch
6d4af97e17 put a sleep back on grains.setval test for new jenkins stuff 2013-08-10 22:33:02 -06:00
Pedro Algarvio
8d35a82920 Skip test instead of returning. 2013-08-10 19:50:31 +01:00
Thomas S Hatch
b09114ec1d avoid key error is not SHELL env var 2013-08-10 12:14:10 -06:00
Erik Johnson
d36fa57595 Change runas to user for pip module tests 2013-07-26 18:40:36 -05:00
Pedro Algarvio
6a97be6115 Added integration test cases for multiple editables and pkgs for salt.modules.pip.install() 2013-07-04 18:57:42 +01:00
Sebastian Vetter
11a9858c6b Correct behaviour of when using list with cross-env file path 2013-06-30 23:19:16 +10:00
Pedro Algarvio
d0aff7934d Updated integration.modules.virtualenv test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:01 +01:00
Pedro Algarvio
1a505cd703 Updated integration.modules.useradd test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:01 +01:00
Pedro Algarvio
f69373a277 Updated integration.modules.test test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:01 +01:00
Pedro Algarvio
738447d0a9 Updated integration.modules.sysmod test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:01 +01:00
Pedro Algarvio
5fa18d41ec Updated integration.modules.sysctl test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:01 +01:00
Pedro Algarvio
de41ca3136 Updated integration.modules.supervisord test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
b46bef99b9 Updated integration.modules.state test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
2c30133404 Updated integration.modules.ssh test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
4cdf6ae255 Updated integration.modules.rabbitmq test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
a3fbe47c9f Updated integration.modules.pw_user test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
501cb0da31 Updated integration.modules.publish test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
863092af60 Updated integration.modules.pillar test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
c780c8b198 Updated integration.modules.mine test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
abc3ed115c Updated integration.modules.hosts test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
b340166ea6 Updated integration.modules.grains test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
59bdfc532c Updated integration.modules.file test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
cdb5828874 Updated integration.modules.event test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:00 +01:00
Pedro Algarvio
b920ded0b4 Updated integration.modules.django test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
d401041a8d Updated integration.modules.disk test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
d62211f734 Updated integration.modules.decorators test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
423976e5d5 Updated integration.modules.data test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
de4345cf20 Updated integration.modules.cp test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
3f264ae987 Updated integration.modules.config test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
18af333312 Updated integration.modules.cmdmod test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
a3ac939f44 Updated integration.modules.aliases test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:12:59 +01:00
Pedro Algarvio
6dfe563ce1 Added support for __main__ execution. 2013-06-28 00:12:57 +01:00
Pedro Algarvio
2453535d9f Added support for __main__ execution and formatting fixes. 2013-06-28 00:12:57 +01:00
Pedro Algarvio
b0d9cf18c2 Added support for __main__ execution and formatting fixes. 2013-06-28 00:12:57 +01:00
Pedro Algarvio
663f54ef9f Update copyright years of changed files. Added __main__ execution to tests/integration/states/pip.py. 2013-06-28 00:12:57 +01:00
Pedro Algarvio
222be7b446 Make sure every test module is runnable by __main__.
* Double to single quotes
2013-06-28 00:12:56 +01:00
Pedro Algarvio
be54a503d9 Adapted code fix sys.path in case called from __main__. Adapted to salt-testing. 2013-06-28 00:12:56 +01:00
Pedro Algarvio
576a5a4b78 Some more sysmod testing improvements. 2013-06-27 23:15:36 +01:00
Pedro Algarvio
276858d619 Improve sys.list_functions tests. 2013-06-27 23:00:55 +01:00
Thomas S Hatch
3e3cb44acf Merge pull request #5651 from s0undt3ch/issues/5639-hosts
Single entry per line in the hosts file. Fixes #5639
2013-06-20 11:08:36 -07:00
Pedro Algarvio
4040d83d79 Single entry per line in the hosts file. Fixes #5639 2013-06-20 18:29:21 +01:00
Thomas S Hatch
e2d7f21034 @jacksont, please take a look at these, they are failing sometimes 2013-06-20 11:22:59 -06:00
Thomas S Hatch
ec2ab4d5d3 Fix up tests for decorators 2013-06-20 11:21:56 -06:00
Thomas S Hatch
3e7be2bfb4 Add os import to grains tests 2013-06-19 22:45:26 -06:00
Thomas S Hatch
e037283488 Ignore the grains setval test in travis because travis can't keep up 2013-06-19 22:28:53 -06:00
Thomas S Hatch
86afd5356c disable faulty djangomod test 2013-06-19 00:35:08 -06:00
Thomas S Hatch
e59a646afa Need to find a way to only bump this up on travis.... 2013-06-19 00:32:08 -06:00
Thomas S Hatch
982df86d6b disable svn tests
These tests are causing problems since the svn repos are not always
returning the same data
2013-06-19 00:24:16 -06:00
Thomas S Hatch
862112c5a6 Fix error created by yaml changes 2013-06-18 23:51:44 -06:00
Thomas S Hatch
17f292a21a Add ignores for loaded depends modules
@jacksont, just fyi, we check the loaded modules for docstrings
2013-06-18 16:38:42 -06:00
Filip Noetzel
f40c2c5204 Fix django tests 2013-06-17 15:49:15 +02:00
Thomas Jackson
3016999c04 Adding "Depends" decorator to salt.utils
The Depends decorator allows you to optionally remove functions if sepecific globals/modules don't exist. This is particuarly helpful in larger scale deployments where some functions of the module work everywhere, but others require (for example) a service to be installed. This way you can avoid having to try/except all over the module to only load certain functions etc.
2013-06-14 15:17:06 -07:00
Andrew Noyes
c6fd91a8a8 Add timeout to salt.state.cmd.* functions
Add ability to specify timeouts for arbitrary commands.
If timeout is reached, subprocess is sent sigterm, and later sigkill
if it still exists. Issue #5322
2013-06-11 11:41:42 -07:00
Thomas S Hatch
324f048ae5 Raise sleep here because travis is SLOW 2013-05-31 02:00:56 +00:00
Thomas S Hatch
753355c501 Add tests to check cross minion validity in the mine
Tests for #5281
2013-05-29 21:26:55 +00:00
Ollie Walsh
32b80759d7 Reuse virtualenv for all supervisor tests 2013-05-29 12:54:57 +01:00
Ollie Walsh
59dbcc4375 Merge branch 'develop' into supervisor-fixes 2013-05-29 12:37:13 +01:00
Ollie Walsh
1eca34f8e6 Give supervisor a little time to startup during tests 2013-05-29 11:39:09 +01:00
Thomas S Hatch
82dde7d7e7 Add a sleep to give the minion a chance to catch grain refresh in test 2013-05-29 00:12:30 -06:00
Ollie Walsh
57cba99b06 Supervisor module:
Support running supervisor from a virtualenv/custom path.
Support custom supervisor config file.
Create real tests using a virtual environment.

Supervisor state:
Fix restart when process is already running.
Support restart on watch.
Create real tests using a virtual environment.
2013-05-29 00:18:12 +01:00
Thomas S Hatch
c4c2b7936a Add tests for mine.send 2013-05-26 08:55:18 -06:00
Thomas S Hatch
49db655fd5 Add master side capability to make mine accept single funcs 2013-05-26 07:18:12 -06:00
Thomas S Hatch
562fbdaed2 Add grains.get test 2013-05-26 06:11:59 -06:00
Thomas S Hatch
04ad87f9fb Add test to grains.setval 2013-05-26 04:11:42 -06:00
Thomas S Hatch
98bb5335df Disable failing config.manage_mode test, we will need to clean this 2013-05-26 03:52:22 -06:00
Thomas S Hatch
cf69f2d004 Add manage_mode test 2013-05-26 03:44:22 -06:00
Thomas S Hatch
f71a4ee2c8 Add more checks to config 2013-05-26 03:42:41 -06:00
Thomas S Hatch
44d1123291 Start on config module tests 2013-05-26 00:32:57 -06:00
Thomas S Hatch
340b45d801 fix pydsl test 2013-05-18 22:58:08 +00:00
Thomas S Hatch
123d52bdc6 Can't serialize pydev/stateconf, start on #5055 2013-05-18 22:47:14 +00:00
Matthew Scott
24d11b3274 Introduce no_chown option to pip-related functions - #4805
Affected functions:
- `pip.install`
- `pip.installed`
- `virtualenv.managed`

When using `runas` in conjunction with a local-filesystem `requirements` file with these functions,
`pip.install` will create a temporary copy of the requirements file,
then change ownership of that file to the `runas` user.

The purpose of this is to avoid file permission errors when accessing the original requirements file.
However, this breaks when that file has a "-r otherfile.txt" line.

In these cases, set `no_chown` to `True`.
The original path to the requirements file will be kept,
and other requirements files included from the top-level file will be correctly found.
2013-05-04 22:16:39 -05:00
Ales Zoulek
383e1fa01c Fixing invalid assumption on group name in tests
* fixed invalid assumption in file module tests that all linux platforms have
groups with the same name as users (joe:joe etc.). But for
example ArchLinux has only joe:users.

* file module tests now loads user's canonical group name from pwd and
grp python module instead.
2013-05-03 11:47:08 +02:00
Chris Rebert
498d2999db more typo fixes 2013-05-01 16:52:52 -07:00
Chris Rebert
9ed364980d is not 0 => != 0 2013-04-30 10:32:21 -07:00
Pedro Algarvio
c4e96207cb runas needs root permissions. 2013-04-27 21:06:13 +01:00
Thomas S Hatch
cebdf76f2e Fix publish tests 2013-04-27 12:59:34 -06:00
Pedro Algarvio
abd2dc23f1 Handle publish tests a little better. Still not fixed though. 2013-04-25 20:58:54 +01:00
Pedro Algarvio
7eed841ba6 Fix the salt.modules.hosts tests and even test if order is preserved when writing the new file. 2013-04-23 12:56:23 +01:00
Pedro Algarvio
eeda1698ff Simplify and fix tests for salt.modules.hosts. 2013-04-23 12:56:23 +01:00
Pedro Algarvio
b36747b084 pkg.expand_repo_def is allowed to fail on the sysmod integration tests. 2013-04-22 22:40:15 +01:00
Denis Generalov
56f221018d * fix bt if environment empty or absent
* fix tests
2013-04-10 16:24:41 +04:00
Jason R. McNeil
b4b8c191e2 Darwin (OS X) sysctl support.
I don't recall linux sysctl output being as messy as what I see on 10.8, so this module still needs some work I think to prevent it from choking on the odd output.
2013-04-01 00:36:38 -07:00
Colton Myers
357b0596e2 Fix lambda (last time?)
Apparently I have no idea what I'm doing.
2013-03-21 16:50:28 -06:00
Colton Myers
f69e305df4 Fix it so we define patch correctly
Must be a function that returns a function, so it works as a decorator
2013-03-21 16:46:03 -06:00
Colton Myers
50084125be Can't use pass in lambdas 2013-03-21 16:35:34 -06:00
Colton Myers
93ef23f03c Make sure patch is defined (otherwise the decorator complains) 2013-03-21 16:32:09 -06:00
Colton Myers
9222114c2b Serious PEP8 and styling fixes 2013-03-21 16:22:29 -06:00
Colton Myers
adc5433174 Remove trailing whitespace and tabs 2013-03-21 16:15:26 -06:00
Colton Myers
cde87e8cd3 Wrap mock import in try-except, skip if not available 2013-03-21 16:13:53 -06:00
Thomas S Hatch
0d8574344d stub out event fireing test until we can acertain what is wrong
The events are getting cleanly fired, but the test is failing....
2013-03-11 17:09:56 -06:00
Roberto Aguilar
37be12ed37 Updated environment test to use mock library. 2013-03-11 21:54:10 +00:00
Pedro Algarvio
cf75fc4ffb Fix the sysmod examples regular expression to accept both examples and Examples. 2013-03-09 16:07:19 +00:00
Jeroen Dekkers
b40242e409 Make ssh key regular expression more strict 2013-03-08 15:01:58 +01:00
Roberto Aguilar
f942ed6097 Added test for clean environment. 2013-03-02 23:04:04 -08:00
Pedro Algarvio
fc44fde3e3 Improve example matching. 2013-02-17 13:23:51 +00:00
Pedro Algarvio
94455dace6 Show useful information from the failing test. 2013-02-17 12:52:36 +00:00
Thomas S Hatch
f65626db0b Update pydsl tests, still failing though 2013-02-09 15:07:59 -07:00
Thomas S Hatch
68b5d29ea6 Get tests runnign until pydsl migration is complete 2013-02-08 13:21:35 -07:00
Thomas S Hatch
3719982399 stub out another event test that needs refinement 2013-02-08 13:14:45 -07:00
Thomas S Hatch
107b97e952 Add test to verify loader modules 2013-02-08 11:14:22 -07:00
Thomas S Hatch
3d006ddd1c Stub out unreliable event test until it can be stabalized 2013-02-08 11:07:40 -07:00
Colton Myers
bae02c930e Add None checks for eventfired in event.py 2013-02-07 17:51:32 -07:00
Thomas S Hatch
8fb36351b3 remove unused import 2013-02-07 17:38:36 -07:00
Colton Myers
37b025490b Fix indent style issue 2013-02-07 17:31:10 -07:00
Colton Myers
53f1c86013 Add pip.py test for upgrading packages 2013-02-07 17:31:10 -07:00
Thomas S Hatch
4ec6722103 revert cmd_yaml change that broke basic functionality 2013-02-06 13:03:34 -07:00
Thomas S Hatch
47e08fc4fa Remove failing test, I am not sure how it ever passed... 2013-02-06 12:48:33 -07:00
Denis Generalov
9325ec7bba Try to make some tests for sysctl module 2013-02-06 00:57:53 +04:00
Thomas S Hatch
4c95f0e0ea fix #3449 2013-01-25 21:16:11 -07:00
Pedro Algarvio
eb38c4de5f Fix supervisor test. 2013-01-23 23:23:05 +00:00
Pedro Algarvio
34522907e8 One more grain.item fix to comply with new dict output. 2013-01-23 23:00:19 +00:00
Pedro Algarvio
0207416f3c Conform with the dict return type for 'salt.modules.grains.item'. 2013-01-23 22:51:45 +00:00
Thomas S Hatch
bbad93c386 Add skipif to a test that requires root 2013-01-17 13:29:49 -07:00
Pedro Algarvio
0bf51ba5b0 Allow a test to specify it's own run_function timeout. Increase timeout for some tests. 2013-01-14 14:07:58 +00:00
Ryan Schneider
8f8cc74b34 Some minor cleanup of unit and integration tests. 2012-12-18 17:39:16 -08:00
Ramón Cahenzli
a30f2ee244 This root or that root? :) 2012-12-11 16:37:30 +01:00
Pedro Algarvio
7c5a5d0bd3 Header updates. More copyright to the SaltSatck team. Code author to me(where applicable). 2012-12-11 10:23:37 +00:00
Pedro Algarvio
871516b4cf Migrated test.integration.modules.state to use SaltReturnAssertsMixIn. 2012-12-07 18:44:06 +00:00
Pedro Algarvio
6c37923226 Remove extra space. 2012-11-30 17:33:20 +00:00
Pedro Algarvio
db344ea342 Fix integration.modules.django.DjangoModuleTest.test_collectstatic(), PEP-8. Refs #2729. 2012-11-30 17:13:12 +00:00
Johannes Martinsson
e1bc7f2b5a Make remove in the file module also remove broken symlinks
The remove command in the file module had guard, `os.path.exists`, in
front of all remove actions. That guard failed on broken symlinks, i.e.
it returned `false` even though the broken symlink existed. Since the
remove actions are properly guarded without the `os.path.exists` guard,
this commits removes it. Now the remove command will also remove broken
symlinks.
2012-11-22 12:22:04 +01:00
Pedro Algarvio
863bc7ef37 Add missing import. 2012-11-18 19:06:17 +00:00
Pedro Algarvio
c5fe83272f Even more open() to salt.utils.fopen(). 2012-11-18 18:57:10 +00:00
Ryan Schneider
2ccf589425 Refactor: make_dirs -> makedirs, gzip_compression -> gzip 2012-11-14 18:06:53 -08:00
Ryan Schneider
ad1a43012a Add gzip and template to cp.get_dir, expose make_dirs on cp.get_file 2012-11-14 16:48:26 -08:00
Pedro Algarvio
97b4dffd85 Re-add required import. 2012-11-14 16:03:46 +00:00
Jack Kuan
0931455721 Merge branch 'develop', remote-tracking branch 'origin' into sls_render_pipe 2012-11-10 23:06:14 -05:00
Ryan Schneider
c638617612 Add gzip_compression support to cp.get_file 2012-11-08 16:09:38 -08:00
Jack Kuan
6c13f876b2 Merge branch 'develop', remote-tracking branch 'origin' into sls_render_pipe 2012-11-08 10:31:23 -05:00
Thomas S Hatch
ec901ce29c Merge pull request #2463 from s0undt3ch/issues/2462
Fix #2462
2012-11-07 08:12:49 -08:00
Ryan Schneider
721bce0a11 Fixed integration test 2012-11-06 19:36:51 -08:00
Ryan Schneider
49fb321254 Add integration test 2012-11-06 19:36:51 -08:00
Pedro Algarvio
af7ebf12f8 Try not to fail on travis-ci under python 2.6
* Raised max open files by 1024 since running in a vagrant machine 2048 was not enough, though, I think travis-ci defaults to a higher value.
* Wait a bit longer on the events testing.
* Separated the initial minions connected and minions synced into two different events and functions. Also corrected the `if` expected value when a timeout occurs.
2012-11-06 16:02:36 +00:00
Pedro Algarvio
e04c872c66 Convert the remaining tests hard-coding temporary paths. 2012-11-06 12:44:53 +00:00
Pedro Algarvio
75644992e2 Don't hard-code temporary paths on tests. Refs #2462. 2012-11-06 11:20:06 +00:00
Jack Kuan
f2d8c5cef3 Add yaml/json parsing to values of kwargs for state.single.
Also fixed an incorrect use sls_encoder in compile_template_str().
2012-11-06 01:26:08 -05:00
Pedro Algarvio
a1696c17d8 Finish fix of last commit. 2012-11-04 11:53:59 +00:00
Pedro Algarvio
33fa855bc4 We're apparently unable to have an empty last line in yaml literal strings. 2012-11-04 11:46:00 +00:00
Pedro Algarvio
5af62d01ac Fix integration.modules.state.StateModuleTest.test_issue_1896_file_append_source and still maintaining an empty line check. 2012-11-04 11:35:23 +00:00
Scott Walton
e7ea808701 Merge remote-tracking branch 'upstream/develop' into develop 2012-10-19 16:28:55 +01:00
Scott Walton
9a0fe34e9a Some clean-up, and tests for #962 2012-10-19 16:07:31 +01:00
Scott Walton
0bd81e5ae6 Added support for managing virtual hosts #962 2012-10-19 15:05:35 +01:00
Daniel Miller
3a68a85a9b Add "file.patch" module function 2012-10-18 12:20:39 -04:00
Pedro Algarvio
eb22aa5f49 Allow some more time to get the tests events notifications. 2012-10-05 07:15:00 +01:00
Pedro Algarvio
0872852602 Add missing imports. 2012-09-30 18:41:44 +01:00
Pedro Algarvio
27bf64fbf3 Only root can run these tests. 2012-09-30 18:26:39 +01:00
Pedro Algarvio
73a679e070 Include primary group into user.info groups. Fixes #2137. 2012-09-30 18:01:47 +01:00
Thomas S Hatch
f1dca86fd4 Fix some quotes 2012-09-28 17:40:30 -06:00
Thomas S Hatch
59e775ed8d remove unused skipif 2012-09-28 17:35:59 -06:00
Pedro Algarvio
7f7b196f1e Include an invalid items test for state.template* functions. Refs #2068. 2012-09-28 17:56:13 +01:00
Pedro Algarvio
2211afa63a Properly render the high state loaded from templates. Fixes #2068.
Previously using `state.template` or `state.template_str` would not be checked/rendered into proper formatting resulting in some templates not being correctly executed. For example, the following template worked:
```
/tmp/issue-2068-template-str:
  virtualenv:
    - managed
    - no_site_packages: True
    - distribute: True

pep8-pip:
  pip:
    - installed
    - name: pep8
    - bin_env: /tmp/issue-2068-template-str
    - mirrors: http://testpypi.python.org/pypi
    - require:
      - virtualenv: /tmp/issue-2068-template-str
```
as opposed to the following which did not work:
```
/tmp/issue-2068-template-str:
  virtualenv.managed:
    - no_site_packages: True
    - distribute: True

pep8-pip:
  pip.installed:
    - name: pep8
    - bin_env: /tmp/issue-2068-template-str
    - mirrors: http://testpypi.python.org/pypi
    - require:
      - virtualenv: /tmp/issue-2068-template-str
```
The dotted names should be converted into lists for example, which was the problems with the two examples above.
2012-09-28 17:34:55 +01:00
Pedro Algarvio
677a08fe7d Update the test cases which better expose #2068. 2012-09-28 16:04:38 +01:00
Pedro Algarvio
cc10ed1906 Add include and exclude test cases. Refs #2068. 2012-09-28 01:17:37 +01:00
Pedro Algarvio
6e2ba6885e Fix test case assertion. 2012-09-27 18:43:15 +01:00
Pedro Algarvio
eec932799a The pip module now uses cmd.run_all. Fixes #2113.
* In order to check if something went wrong while running the various pip commands using the command module, we need to know, at least, the return code, this way we can report the failure.
* `salt.modules.pip.uninstall()` now returns the `cmd.run_all` `dict` instead of a list of strings. **This breaks previous behaviour**.
* Added a test case for `salt.modules.pip.uninstall()` changes.
2012-09-27 18:33:50 +01:00
Pedro Algarvio
af9709dde5 Properly handle missing pip binary. Fixes #2087. 2012-09-27 12:06:09 +01:00
Pedro Algarvio
0b48e08c36 Regular users cannot run the supervisor tests. 2012-09-25 22:15:38 +01:00
Thomas S Hatch
50857861c5 remove unused import 2012-09-24 01:03:24 -06:00
Thomas S Hatch
cf1e87e185 Merge pull request #2031 from scott-w/develop
Add Supervisor Support
2012-09-23 22:56:45 -07:00
Scott Walton
48c0d56841 Merge remote-tracking branch 'upstream/develop' into develop 2012-09-23 21:16:09 +01:00
Pedro Algarvio
c315e95b95 Move the state pip.installed tests to the proper place.
* Moved the state `pip.installed` tests to it's own module, the correct one.
* Added a test which checks for the presence of errors while running `pip.installed` introduced while fixing #2028
2012-09-23 18:16:11 +01:00
Pedro Algarvio
5b9c6f92ce Issue #2028 fixes and improvements.
* `salt.states.pip.installed()` now keeps a reference to the output of the `__salt__['pip.install']()` call. The reason for this is that we need to know and pass along any information about an eventual error when running that call. This is now done in addition to the old behaviour.
* Add some tests which triggered the issue.
2012-09-23 17:25:21 +01:00
Pedro Algarvio
0a9b0b3e08 Merge branch 'develop' of github.com:saltstack/salt into issues/2028 2012-09-20 19:33:00 +01:00
Thomas S Hatch
543f7c6bc9 Fix error cause by django module renaming 2012-09-19 14:52:36 -06:00
Thomas S Hatch
2dc5ebb80e Fix event test with the change in master events returning a dict 2012-09-19 14:42:48 -06:00
Pedro Algarvio
8ab5e6e9c2 Include some test cases to expose saltstack/salt#2028 2012-09-18 01:53:05 +01:00
Scott Walton
c581e7bab5 Added tests, and modified state/modules to pass #2026 2012-09-17 20:34:50 +01:00
Scott Walton
9e35b77038 Added stop and status 2012-09-15 19:02:00 +01:00
Scott Walton
88c04486e4 Added test and code for start #2026 2012-09-15 18:41:01 +01:00
Pedro Algarvio
5ec829a46e Fix state tests. 2012-09-03 16:40:52 +01:00
Pedro Algarvio
a45c0bdce8 Fix saltstack/salt#1896
* Added `source` support to `salt.states.file.append()`
 * Added tests for the above.
2012-09-01 07:49:34 +01:00
Pedro Algarvio
accb15d6ee Add tests for saltstack/salt#1900
* Test both master and minion events firing
 * Allow targeting the minions in `tests.integration.ModuleCase.run_function()`
 * The above item allows to also test events firing using `tcp` as `ipc_mode` which is being used by the tests `sub_minion`
2012-09-01 07:29:06 +01:00
Thomas S Hatch
34829cd046 Clean up unused imports and variables 2012-08-30 14:14:02 -06:00
Pedro Algarvio
8b645b339b Fix #1879. Searching/matching is now done on multiple lines.
* `salt.modules.file.contains()`, `salt.modules.file.contains_regex()`, `salt.modules.file.contains_glob()` and `salt.utils.find` now do the searching/matching against chunks of data; using defaults, 32KB chunks of data in files; instead of searching/matching line by line.
* Based on the above changes `salt.states.file.append()`, when checking if the text to append is already present, now uses `salt.modules.file.contains_regex()` in order to match spanning multiple lines ignoring the addition/deletion of white-space or new lines, except inside commas.
* The regex used on the above item is built at runtime using `salt.utils.build_whitepace_splited_regex()`, just feed the text to it and you'll get back the proper regex to the matching/searching on, for example `salt.modules.file.contains_regex()`.
* Added tests for all this code.
2012-08-28 10:03:11 +01:00
Pedro Algarvio
797defc320 Add the failing test for saltstack/salt#1879 2012-08-26 00:38:39 +01:00
Pedro Algarvio
22d69e43c7 Properly catch some more state SLS syntax errors.
Sort keys before checking for same key in rule. Fixes #1876.
2012-08-25 14:44:07 +01:00
Pedro Algarvio
6b2e12d9bf Don't fail on tests because we're trying to create a directory and it exists(and that's not the actual test). 2012-08-25 14:21:38 +01:00
Ulrich Dangel
7176ec5d4a Add test to test if os_family grain is provided.
Corey Quinn reported a issue where __grains__['os_family'] returned a
KeyError. This commits adds a check to the grains module test to ensure
os_family is present.
2012-08-15 02:59:03 +02:00
Pedro Algarvio
6d3028f3da Removed the pip module integration tests since it's also being tested in the virtualenv's integration tests. 2012-08-01 23:11:48 +01:00
Pedro Algarvio
e57f505a2d Fix pip.freeze tests which require an active virtualenv. 2012-08-01 22:40:15 +01:00
Pedro Algarvio
97a4c1dde2 Fix integration/modules/file.py
Since the tests are comparing results, switch to `assertEqual`'s.
2012-08-01 19:36:49 +01:00
Pedro Algarvio
7148735b12 Fix virtualenv integration tests.
The virtualenv module needs to have a default for `venv_bin`.
2012-08-01 18:57:31 +01:00
Roman Imankulov
aa5896681d Fix the escaping issue in cmd.run
Lack of escaping in cmd.run with "runas" option could lead to incorrect
execution of commands containing quotes in their bodies.
2012-07-26 22:21:07 +06:00
Thomas S Hatch
366a4935c1 single quotes 2012-07-23 13:29:55 -06:00
Thomas S Hatch
e61ddfdcfc fix many a test 2012-07-23 13:00:54 -06:00
Intchanter
768e17b9d5 We return tuples, not lists 2012-07-20 08:31:36 -06:00
Roman Imankulov
bb0ed1a3a7 Tests cleanup
Defined "integration.run_tests()" function which can be used to execute
a particular integration test case. Existing bolerplate code in modules
and states tests is replaced with following lines:

    if __name__ == '__main__':
        from integration import run_tests
        run_tests(TestCaseName)

Typical usecase could look like this:

    python integration/modules/pip.py --no-clean -vv
2012-07-20 12:25:08 +06:00
Intchanter
df4a83ac61 Made data.getvals work with CLI, updated test 2012-07-19 21:35:23 -06:00
Intchanter
3c05a3ee78 Merge branch 'develop' of https://github.com/saltstack/salt into develop
Conflicts:
	tests/integration/modules/grains.py
	tests/integration/states/host.py
	tests/unit/utils/find_test.py
2012-07-04 18:29:13 -06:00
Alec Koumjian
a22773bdde Instruct authors of state modules to check for the test parameter 2012-07-03 14:17:52 -07:00
Alec Koumjian
bdb4055ce2 Updating Virtualenv module test with cross-platform file.remove 2012-07-03 08:39:11 -07:00
Dan Colish
b43c256ea7 Adds file.remove to file module, #1545. Drive by spelling correction 2012-07-03 07:50:02 -07:00
Dan Colish
aacd9cc5bd Use getpass.getuser since os.getlogin requires a tty and tests do not
always run with one.
2012-06-30 23:31:01 -07:00
Dan Colish
abf50324d2 Fix integration.module.file tests on linux 2012-06-30 22:47:02 -07:00
Dan Colish
71e97d6921 Fix file.chown to report unknown users and groups. Add tests to prove it. 2012-06-30 17:33:34 -07:00