Pedro Algarvio
0ae1a15c61
PEP8 E302 and E303 blank lines fixes.
2013-11-27 12:11:45 +00:00
Pedro Algarvio
08c5c8e83a
Fix PyLint W1401, anomalous backslash.
2013-11-27 11:24:26 +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
Erik Johnson
55b870e43a
Add pkgrepo deps for ubuntu
...
This fixes travis failures due to needed python module not being
installed.
2013-11-26 23:55:26 -06:00
Erik Johnson
f56ad56a5a
Add pkgrepo.managed test SLS for Ubuntu
...
pkgrepo.absent is not behaving properly, will add a test case for
pkgrepo.absent later once I've had a chance to troubleshoot.
2013-11-26 23:22:59 -06:00
Thomas S Hatch
eb9ba6fda0
Merge pull request #8756 from s0undt3ch/issues/8343-require_in-KeyError
...
Fix accomulator issues
2013-11-26 13:18:49 -08: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
Thomas S Hatch
25dcbefb9c
Merge pull request #8820 from terminalmage/tests
...
Add pkgrepo tests for CentOS
2013-11-26 08:05:34 -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
Erik Johnson
05de056df0
Add an assert to ensure that the state.sls return dict isn't empty
2013-11-25 17:41:03 -06:00
Erik Johnson
1c9f2fc224
Remove grains requirement
...
I had this code here in an early draft of this test, but the grains are
no longer needed here as the stuff that requires grains has been moved
out of the test function and into the SLS files that are run by the
test.
2013-11-25 17:30:18 -06:00
Erik Johnson
a77357f01d
Fix pkgrepo tests when python file is run by itself on CLI
2013-11-25 17:27:26 -06:00
Erik Johnson
c2e346835c
Add pkgrepo tests for CentOS
...
Ubuntu ones will follow soon.
2013-11-25 17:20:32 -06: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
5d248146df
Remove wrong comments on prereq working test
2013-11-24 18:33:15 +01:00
regilero
aaa6f44677
Missing states for the mixed require and prereq mixed tests
2013-11-24 18:30:44 +01:00
regilero
8177f2b609
Add another working prereq simple test
2013-11-24 18:30:15 +01:00
regilero
0354e408e3
Comments on require test example
2013-11-24 18:28:59 +01:00
regilero
ddb99a570d
require and prereq mixed tests, mostly failing, see #8785
2013-11-24 18:28:22 +01:00
Pedro Algarvio
f0bf78cdc0
Correct the state test case and respective expected output.
2013-11-24 12:15:20 +00:00
Pedro Algarvio
a752421b87
Expose a copy of the state dictionary to state functions.
...
Fixes #8343 since `__sls__` is now available in `__state__` and not on `kwargs`.
Closes #8709 since it's not the right approach.
Fixes #8710 and closes #8711 since I've cherry-picked the fix for #8710 in from #8711 .
2013-11-24 11:08:33 +00: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
e4c68d1a94
small typo
2013-11-23 16:47: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
Jeffrey C. Ollie
b1fb52a680
fix more funcion => function typos
2013-11-15 14:50:17 -06:00
Pedro Algarvio
54fc502de0
Some more saltenv related tests.
2013-11-12 06:29:55 +00:00
Pedro Algarvio
097aed1e7e
Show the error in case of failure.
2013-11-12 01:01:51 +00:00
Pedro Algarvio
d88d34ca24
The GitHub IP changed.
2013-11-11 07:45:10 +00: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
Pedro Algarvio
148cef5772
Reintroduce the removed grains information.
...
Removed on 4617a931be
and 52be720d62
.
2013-11-08 19:53:43 +00:00
Pedro Algarvio
47ccaf959e
Revert "Remove debugging pprint"
...
This reverts commit 4617a931be
.
2013-11-08 19:53:38 +00:00
Pedro Algarvio
e8e19baf8d
Revert "Remove unused grains lookup"
...
This reverts commit 52be720d62
.
2013-11-08 19:53:29 +00:00
Pedro Algarvio
77101231f2
Install a smaller and with less dependencies package.
2013-11-07 22:09:36 +00:00
Colton Myers
78662d270b
Merge pull request #8325 from cachedout/#7860
...
Add a dir_mode to file.managed
2013-11-07 09:35:54 -08:00
Mike Place
2e6bf21635
Integration testing for file.managed dir_mode argument.
...
Added documentation for dir_mode to file.managed.
2013-11-07 10:19:16 -07:00
Henrik Holmboe
043f9bf85a
Fix typos
2013-11-07 10:06:37 +01:00
Thomas S Hatch
e64f7b0633
Merge pull request #8311 from s0undt3ch/issues/8196-environments
...
Some more `saltenv` related changes/fixes
2013-11-06 16:07:25 -08:00
Pedro Algarvio
ec0a4bca8e
URL environment selection should also be using saltenv
.
2013-11-06 23:36:40 +00:00
Thomas S Hatch
68d5b2c21a
Merge pull request #8289 from jacksontj/develop
...
Covering case where kwarg cannot be un-yaml'd
2013-11-06 15:05:14 -08: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
Thomas S Hatch
a343e69d02
Merge pull request #8230 from s0undt3ch/issues/8196-environments
...
Properly pass `__env__` to states.
2013-11-06 14:23:26 -08:00
Pedro Algarvio
962f8d4149
Support adding files to the testing prod state env.
2013-11-06 20:18:47 +00:00
Pedro Algarvio
9a22d3053e
The pip module no longer accepts __env__
as a kwarg
.
2013-11-06 20:15:23 +00:00
Pedro Algarvio
56129e3610
Include the holy
directory for the __env__
selection test cases.
2013-11-06 20:04:54 +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
0a03ecc6bc
Add required state file.
2013-11-06 20:04:10 +00:00
Pedro Algarvio
e334e232d1
Forgot to add the top file.
2013-11-06 20:04:10 +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
Erik Johnson
5ef4b31e97
Include more information in test docstrings
...
This adds additional information that describes the relevant code being
tested, so that if there is a problem it is easier to trace it back to
where the problem lies.
2013-11-06 14:03:33 -06:00
Erik Johnson
3c799c0bd5
Add test for arguments with dashes in the arg name
2013-11-06 14:00:02 -06:00
Erik Johnson
f24fb7c26f
Add test for unsupported kwarg
2013-11-06 13:38:30 -06:00
Thomas Jackson
01f2d119b1
Covering case where kwarg cannot be un-yaml'd
...
In the past the master has been taking the kwargs passed in and converting them to a string (kwy=value) and letting the minion de-yaml that arg string. In general this is okay, but it doesn't work well if you are calling from the python LocalClient interface-- since the kwarg you passed already had a type. With this change instead of converting the kwarg to a string it is converted to a dict with a flag to mark it as a kwarg dict, then it is unpacked on the minion side while still maintining type
2013-11-05 19:04:23 -08:00
Pedro Algarvio
c849c4b57f
Moved test cases from #8195 to a better place.
2013-10-31 18:54:25 +00:00
regilero
089787cead
Integration tests for #8174 , #7905 & #8114 : sls syntax errors
2013-10-31 14:30:25 +01:00
Pedro Algarvio
4b46ee5017
Remove unnecessary imports.
2013-10-26 18:59:44 +01:00
Pedro Algarvio
f96c01738e
Provide the loader integration tests in it's own package.
2013-10-26 18:57:00 +01:00
Pedro Algarvio
3bedf7c751
Some more tests within the test case.
2013-10-26 18:45:21 +01:00
Pedro Algarvio
ce553415cc
Provide test case to prove proper loader function override. Refs #8096 .
2013-10-26 18:06:28 +01: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
Erik Johnson
95efdad8ba
Remove ubuntu 32-bit target
2013-10-20 21:47:05 -05:00
Erik Johnson
7984a8c2cf
Apparently the test framework doesn't like private member functions
2013-10-20 21:46:06 -05:00
Erik Johnson
81434578fc
Fix function name
2013-10-20 21:29:36 -05:00
Erik Johnson
1c0d279c59
Fix import error
2013-10-20 20:50:28 -05:00
Erik Johnson
9397840021
More tweaks to package tests
...
This makes package tests work better on CentOS 5, and also adds a 32-bit
target for Ubuntu.
2013-10-20 20:27:45 -05:00
Erik Johnson
90d6d045f1
Move _wait_for_pkgdb_unlock inside of PkgTest class
2013-10-20 18:48:01 -05:00
Erik Johnson
63ee0f1e83
Add function to wait for pkgdb lock to clear
...
Arch pkg tests that call pkg.latest_version seem to fail on running
this function due to the package database still being locked from
previous tests. This adds a function that waits (in 5 second increments)
for up to 60 seconds for the pkgdb to be unlocked.
http://jenkins.saltstack.com/job/salt-rs-arch/474/artifact/salt-runtests.log/*view*/
2013-10-20 18:18:35 -05:00
Erik Johnson
c5f5b400e9
adjust redhat pkg targets for pkg tests
2013-10-20 17:04:27 -05:00
Erik Johnson
62a9385ddf
Don't perform version spec pkg tests on FreeBSD
...
pkg_add does not support this, so this test will fail when
pkg.latest_version is run and an assertion is done to determine the
targeted version.
2013-10-20 16:00:14 -05:00
Erik Johnson
5dc08d552a
adjust pkg targets for pkg tests
2013-10-20 15:48:57 -05:00
Erik Johnson
fe1c4487e3
add tests for installing 32-bit packages
2013-10-20 15:16:36 -05:00
Erik Johnson
c7fcc79747
Add tests for pkg.installed with version specification
2013-10-20 14:35:10 -05:00
Erik Johnson
9d75d7a425
Change packages for pkg.installed tests on Debian-based systems
...
Travis-CI uses Debian/Ubuntu VMs and bzr is on their base image, so this
causes these tests to fail on Travis. This replaces bzr for tests on
Debian-based OSes.
2013-10-19 10:48:10 -05:00
Erik Johnson
0205f28e4a
Add pkg.installed tests
2013-10-19 09:50:48 -05:00
C. R. Oldham
66e3be46d1
Make sure multiple names clauses retain same order
2013-10-18 14:57:48 -06:00
Pedro Algarvio
db670d1357
Don't fail if process already killed.
2013-10-16 23:27:19 +01:00
Thomas S Hatch
bbd159f8a0
Not sure why we are removing a file from the source halfway in a
...
test, this should fix the failing test, @s0undt3ch, if this break
something I am not seeing please let me know
2013-10-16 12:17:59 -06:00
Thomas S Hatch
3143cb6e48
import skipif
2013-10-16 12:13:16 -06:00
Pedro Algarvio
40d70fb13f
os.getcwd()
might thrown an OSError
if it was deleted or moved.
...
Let's not fail because of that.
2013-10-16 17:32:22 +01:00
Pedro Algarvio
7de1cda6da
The test needs to be executed as root to pass.
2013-10-16 17:27:05 +01:00
Pedro Algarvio
9f29d0012e
Fix typo from 6bc5ea34
.
2013-10-16 16:37:36 +01:00
Thomas S Hatch
aa584dc255
Add ret value to test return data
2013-10-15 17:05:04 -06:00
Thomas S Hatch
ca0e967c13
Assign the ret value
2013-10-15 17:03:12 -06:00
Thomas S Hatch
6bc5ea34e9
Ensure that the ports are integers
2013-10-15 16:59:44 -06:00
Thomas S Hatch
8612f7c007
Add ref to ret in test_7754
2013-10-15 16:34:17 -06:00
Colton Myers
3e565737c6
Merge pull request #7853 from s0undt3ch/issues/7754
...
Fix syslog logic checks for `file://`, `tcp://` and `udp://`. Fixes #7754
2013-10-15 14:22:43 -07:00
Pedro Algarvio
e72b4a3492
Fix syslog logic checks for file://
, tcp://
and udp://
. Fixes #7754 .
2013-10-15 22:09:37 +01: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
8f0a19946d
Fix test_issue_6973_state_highstate_exit_code
.
2013-10-04 21:31:46 +01: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
c8f1e457d7
Allow tests.integration.run_tests
to execute more than one TestCase
instance.
2013-10-03 16:09:57 +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
Pedro Algarvio
e7ddf159a1
Make sure there's a line break before writing new key. Fixes #7409 .
2013-09-28 00:00:26 +01:00
Pedro Algarvio
2f3ed58541
Add test case which verifies the occurrence of #7409 .
2013-09-28 00:00:25 +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
Pedro Algarvio
bacd2264ee
State calls now fail if non-supported arguments are used. Fixes #6962 .
...
* Removed `format_call` from `salt.state.State` since it was almost a one to one copy of `salt.utils.format_call`.
* The `format_call` in `salt.utils` was modified to accept initial return data(to provide the functionality from the removed `State.format_call`.
* While the function arguments are being queried/matched, those used are removed from a copy of the passed data. Once finished, any remaining keyword arguments which do not match those allowed on the `expected_extra_kws` keyword argument to `format_call` will raise a `SaltInvocationError`.
This will prevent any future bogus bug searching like what happened on #6912 because the wrong state function argument was being passed.
2013-09-24 22:08:07 +01:00
Seth House
ea657eed48
Added unit and integration tests for the file.replace functions
2013-09-20 17:01:57 -06:00
Pedro Algarvio
f75c59ecbf
Properly handle shell unit tests which check versions.
2013-09-19 18:50:51 +01:00
Pedro Algarvio
05be7064d5
0.17.0
has been tagged. The 0.16.x
requires_network
is no longer necessary.
2013-09-19 11:16:37 +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
583d0b8a3e
Add with_retcode options for ShellCase functions
2013-09-13 10:51:25 -06:00
David Anderson
1d7309970f
Add with_retcode option to ShellCase.run_call(). Also adds a test case for https://github.com/saltstack/salt/issues/6973 - expect a non-zero exit code when running "salt-call --retcode-passthrough state.highstate"
2013-09-13 10:12:11 -06:00
Pedro Algarvio
a8e70d527e
List pip from the right place.
2013-09-11 10:54:43 +01:00
Thomas S Hatch
e644de7e76
Merge pull request #7164 from dlanderson/fix_issue_7154
...
Fix #7154 - cmd.* should fail when cwd does not exist
2013-09-10 21:11:30 -07:00
Thomas S Hatch
80f4aff88c
Merge pull request #7143 from s0undt3ch/hotfix/pip-tests
...
Adapt and fix the changes from #6833
2013-09-10 21:08:06 -07: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
David Anderson
b383440302
Fix issue 6800. cwd=target was being passed to _run_check which blew up if target dir did not already exist.
2013-09-10 13:45:30 -06:00
Pedro Algarvio
fc5212dce0
Add a test case for #6833 . Refs #7130 .
2013-09-10 10:52:17 +01:00
Pedro Algarvio
bd707c4763
Finish what was started in 53abda36
2013-09-10 10:40:10 +01: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
ba096cdedf
ssh.recv_known_host
is known to return None
, should be flagged as such.
2013-09-05 23:06:41 +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
Thomas S Hatch
5c270dbd92
Merge pull request #7056 from s0undt3ch/develop
...
Fix unwanted TRACE level messages
2013-09-04 19:37:34 -07:00
Pedro Algarvio
a685a05a0c
Fix the salt CLI tools version check test case
2013-09-05 03:34:12 +01: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
6d446ffa56
Use the requires_system_grains
decorator from salt-testing
2013-09-04 20:05:41 +01:00
Pedro Algarvio
38bfa49e53
SuSE based distributions get the gid
from users
not the gid
from it's name. Fixes #7003 .
...
Full explanation about why is this can be seen here:
https://github.com/saltstack/salt/issues/7003#issuecomment-23813071
2013-09-04 19:41:20 +01:00
David Boucha
1a216bf08c
remove commented out code
2013-09-03 11:39:21 -06:00
David Boucha
fa489634a5
check for multiple strings in the test
2013-09-03 11:37:46 -06:00
David Boucha
6fd2146239
split those strings on their path
2013-09-03 00:53:10 -06:00
David Boucha
2dc500d1d7
remove trailing space
2013-09-01 23:40:39 -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
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
Pedro Algarvio
aeadc52132
Updated integration.states.supervisord
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:03 +01:00
Pedro Algarvio
2ef34d1fd6
Updated integration.states.ssh
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:03 +01:00
Pedro Algarvio
f3b145b118
Updated integration.states.rabbitmq_vhost
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:03 +01:00
Pedro Algarvio
e6791ee851
Updated integration.states.rabbitmq_user
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
f55263631d
Updated integration.states.pip
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
7c49cf1cdc
Updated integration.states.match
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
c92568da9e
Updated integration.states.host
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
415c3560e2
Updated integration.states.git
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
a75c24dd5f
Updated integration.states.file
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
671787d8cb
Updated integration.states.compiler
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
34ccae8c46
Updated integration.states.cmd
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
5a64ba438e
Updated integration.shell.syndic
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
63caaf8c6e
Updated integration.shell.runner
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
66b6acd0e0
Updated integration.shell.matcher
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
331dc6d936
Updated integration.shell.minion
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:02 +01:00
Pedro Algarvio
067f45f6ab
Updated integration.shell.master
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:01 +01:00
Pedro Algarvio
dfa110d5cc
Updated integration.shell.key
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:01 +01:00
Pedro Algarvio
495f8f0440
Updated integration.shell.cp
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:01 +01:00
Pedro Algarvio
4c014ef284
Updated integration.shell.call
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:01 +01:00
Pedro Algarvio
2aa572dda6
Updated integration.runners.state
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:01 +01:00
Pedro Algarvio
7747ef4f1b
Updated integration.runners.manage
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:01 +01:00
Pedro Algarvio
16451948a8
Updated integration.runners.jobs
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:01 +01: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
b53da85646
Updated integration.client.syndic
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:12:59 +01:00
Pedro Algarvio
f02494002b
Updated integration.client.standard
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:12:59 +01:00
Pedro Algarvio
7945cbcd6e
Updated integration.client.kwarg
to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:12:59 +01:00
Pedro Algarvio
e772f0d8b6
Re-use salt-testing mixin.
2013-06-28 00:12:58 +01:00
Pedro Algarvio
77e108a281
Removed duplicate variables moved some others.
2013-06-28 00:12:58 +01:00
Pedro Algarvio
b17bc305c8
Reuse salt-testing shell test case.
2013-06-28 00:12:58 +01:00
Pedro Algarvio
1473a0a3b6
Make use of the SaltTestcaseParser
added to salt-testing.
2013-06-28 00:12:57 +01:00
Pedro Algarvio
9cd7efb0dc
Only update sys.path
once.
2013-06-28 00:12:57 +01:00
Pedro Algarvio
6dfe563ce1
Added support for __main__
execution.
2013-06-28 00:12:57 +01:00
Pedro Algarvio
be6814fe52
Added support for __main__
execution and formatting fixes.
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
0a9f157262
Update sys.path
before import salt. This way salt does not need to be installed.
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
860f74847e
Remove the now unnecessary saltunittest
. Moved remaining functionality to integration
.
2013-06-28 00:12:56 +01:00
Pedro Algarvio
d4fd1baa2f
Adapted the tests suite to work with 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
e30ce41d7a
we are far enough removed to not need to test version deps here
2013-06-19 12:43:27 -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
Thomas S Hatch
e0c10755b9
Some cleaning of quotes and prints
2013-06-18 16:11:36 -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
Thomas S Hatch
36bf8122e9
Merge branch 'timeout-for-run-command' of git://github.com/hulu/salt into hulu-timeout-for-run-command
...
Conflicts:
salt/states/cmd.py
2013-06-11 16:30:41 -06: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
6ae08e504f
Merge pull request #5479 from cfra/directory-clean
...
Improve file.directory for clean=True
2013-06-11 09:46:06 -07:00
Thomas S Hatch
2218dd95a5
Add parse req failure state
2013-06-10 23:00:48 -06:00
Thomas S Hatch
dad4b18c93
Add overstate to check parse failures in requisites
2013-06-10 23:00:22 -06:00
Thomas S Hatch
815cb47a36
Add sls that will fail to parse
2013-06-10 23:00:02 -06:00
Thomas S Hatch
9752b21343
Add tests for overstate requisites
2013-06-10 18:42:54 -06:00
Thomas S Hatch
e228768961
Add overstate to test requisites
2013-06-10 18:42:54 -06:00
Thomas S Hatch
1bcca1aae3
Add a generic failing sls for tests
2013-06-10 18:42:54 -06:00
Christian Franke
e46276db16
Improve file.directory for clean=True
...
Handle exclude_pat when running with test=True and add
some tests to verify correct behavior.
2013-06-11 02:28:51 +02:00
Tris Forster
714acc50d3
Add success flag to LocalClient.get_full_return()
2013-06-06 10:09:15 +10:00
Chris Rebert
31e5c275c5
rm unnecessary parens around 'del'; it's not a function
2013-06-03 11:53:04 -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
4948914766
Add missing test file
2013-05-29 00:47:25 +01: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
ab9fbc94e7
Single quotes
2013-05-28 15:09:40 -06:00
Thomas S Hatch
2b917aef23
Add loop_interval to minion config for tests
2013-05-28 14:27:01 -06: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
d48702aaa5
Add mine_functions to grains
2013-05-26 06:59:13 -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
e6c369c5ec
Add opts to master file to test config module
2013-05-26 00:31:43 -06:00
Thomas S Hatch
340b45d801
fix pydsl test
2013-05-18 22:58:08 +00:00
Thomas S Hatch
6b01c8380d
Add pydsl runtime test per #5055
2013-05-18 22:51:53 +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
Chris Rebert
c487d86fff
tests: standardize to modern 'except FooError as err:' syntax
2013-05-03 19:55:50 -07: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
397418dad7
We're no longer leaking threads. Travis-CI should be OK with 10 worker threads.
2013-04-28 08:16:54 +01: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
a4e9e196a3
Improve information available and handle IndexError
in our salt asserts mix-in.
2013-04-25 20:59:34 +01:00
Pedro Algarvio
abd2dc23f1
Handle publish tests a little better. Still not fixed though.
2013-04-25 20:58:54 +01:00
Pedro Algarvio
55b166f38c
Fix issues around salt.modules.file
, salt.states.files
and respective tests.
...
* Updated `salt.modules.file.makedirs` to properly work. Any path passed to this function should be a directory, ie, if `/tmp/foo/bar` is passed, `/tmp/foo/bar` should be a directory, not `/tmp/foo`.
* Since `salt.modules.file.makedirs` was updated, `salt.states.file.append` needed to be updated to pass the proper directory to create.
* Minor formatting change
2013-04-25 16:36:19 +01:00
Pedro Algarvio
2552f2cfc3
Join the processes in order to wait for them to finish.
2013-04-24 22:31:57 +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
Pedro Algarvio
50a12a13f5
kwargs
should be passed as kwarg
to client.cmd
.
2013-04-22 22:04:33 +01:00
Pedro Algarvio
7836a26c97
Reduce timeout's by a third.
2013-04-22 19:39:02 +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
Thomas S Hatch
a85d1d4da1
Add extra not to file path, another test is laying it down
...
which was breaking this one
2013-03-23 14:41:27 -06: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