Commit Graph

714 Commits

Author SHA1 Message Date
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
Thomas S Hatch
5ec6539ce5 Merge pull request #6967 from s0undt3ch/hotfix/tests-config-files
Adapt tests configuration to the running user.
2013-08-31 19:37:20 -07:00
Pedro Algarvio
9eac31d6dd Use proper pip mirrors in integration.states.virtualenv.VirtualenvTest.test_issue_2594_non_invalidated_cache 2013-08-30 19:32:39 +00:00
Pedro Algarvio
d7c9db70e2 Adapt tests configuration to the running user.
Since salt's cli tools now try to change the user to the configured one, when running the tests suite as non-root, we need to adapt the user setting on the configuration files.
2013-08-30 17:25:28 +00:00
Pedro Algarvio
20c45fbb6d Updated test case to install from a requirements file. 2013-08-29 20:21:23 +00:00
Pedro Algarvio
610c30f359 pip.installed ownership testcase using user instead of runas. Refs #6912. 2013-08-29 17:30:27 +00:00
Pedro Algarvio
a38077248f Verify proper owner for pip.installed. Refs #6912
Added test case which verifies that the owner of the `pip.installed` package is the one provided by `runas`.
2013-08-29 17:30:27 +00: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
1a12829637 Switched arguments in SaltReturnAssertsMixIn.assertInSaltReturn() 2013-08-22 19:02:17 +01:00
Pedro Algarvio
2c09600ea4 Switched arguments in SaltReturnAssertsMixIn.assertNotInSaltReturn() 2013-08-22 19:02:17 +01:00
Pedro Algarvio
ae5d9f5038 Switched arguments in SaltReturnAssertsMixIn.assertNotInSaltComment() 2013-08-22 19:02:17 +01:00
Pedro Algarvio
b880af89e1 Switched arguments in SaltReturnAssertsMixIn.assertInSaltComment() 2013-08-22 19:02:17 +01: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
Pedro Algarvio
2f750ed06c Allow network related tests to be skipped if no network is available. Fixes #6710. 2013-08-16 02:02:37 +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
1068406ca5 Fixed integration.states.pip.PipStateTest.test_pip_installed_errors error regex.
It was failing to match on FreeBSD.
2013-08-14 12:29:34 +01:00
Pedro Algarvio
a1cd0ef29d Show what the salt function returned in case of assertion errors. 2013-08-14 00:35:58 +01:00
Pedro Algarvio
90d375d14e If SHELL is not in the environ, the error message is different. 2013-08-13 14:17:41 +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
Thomas S Hatch
de53840457 Reduce test suite worker threads to 3, the peer system does not
need extra procs anymore
2013-08-12 22:33:59 -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
113e5e9b52 Update assert in test_pip_installed_weird_install
Pull #6574 changed the state output slightly, breaking this test. This
commit fixes the test.
2013-08-08 18:43:44 -05:00
Pedro Algarvio
c072fa0241 Also deprecate runas on salt.states.pip.
* Added mock tests to check if the deprecation is triggered, and to see if the deprecation is also returned to the user in a warnings key.
2013-07-27 15:58:28 +01:00
Erik Johnson
d36fa57595 Change runas to user for pip module tests 2013-07-26 18:40:36 -05:00
Pedro Algarvio
7aed6aeb30 Actually, the Syndic config test case can be a simple unit test. 2013-07-17 16:43:18 +01:00
Pedro Algarvio
e467b1e00b Simplify the Syndic configuration testing.
* Inherit the master configuration file on the syndic one.
* Recreate the Syndic on the test. Don't pass it as a module global.
2013-07-17 16:22:18 +01:00
Pedro Algarvio
54ea179467 Only create TMP if it doesn't already exists (hint: --no-clean) 2013-07-17 12:34:36 +01:00
Mathieu Le Marec - Pasquet
cff1fa6f53 fix/feat: let the syndic be way more configurable
- Fix micmac between configs
- Add options to configure pidfile, logfile, masterofmaster port

This fixes #6024.
2013-07-15 20:30:26 +00:00
Pedro Algarvio
5c3a406e17 Let us not use a deprecated option ourselves unless for testing the deprecation. 2013-07-13 19:55:50 +01:00
Pedro Algarvio
a886eaa03d Add a state integration test case for #5940. 2013-07-05 23:00:14 +01: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
Pedro Algarvio
dea912d8a0 The result of ssh_known_hosts changed in 8f728fb, so should the test case. 2013-07-02 11:25:11 +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
cc7ecbceaa ensure_in_syspath now accepts multiple paths. Make use of it. 2013-06-29 20:57:23 +01:00
Pedro Algarvio
d7f2856365 Updated integration.states.virtualenv test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:03 +01:00
Pedro Algarvio
afae35f14e Updated integration.states.user test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:03 +01:00
Pedro Algarvio
18752a83cc Updated integration.states.svn test suite to use salttesting.helpers.ensure_in_syspath() 2013-06-28 00:13:03 +01:00