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
a1a2b49a72
By enforcing absolute imports, there's no need for module name aliases.
2013-08-19 13:23:46 +01:00
Pedro Algarvio
49a6cfdc51
On bootstrap failure, also cleanup.
2013-08-17 07:59:13 +01:00
Pedro Algarvio
d66609c630
Revert "Make salt-cloud run our testrun state to get a streamed output"
...
This reverts commit d8b011d103
.
2013-08-17 06:06:51 +01:00
Pedro Algarvio
09cb137ec7
Revert "salt-call
does not support timeout
"
...
This reverts commit 20de21df07
.
2013-08-17 06:06:41 +01:00
Pedro Algarvio
2dd1cb2a83
Revert "Let's try to get the test suite output"
...
This reverts commit 1ab4b0ca7b
.
2013-08-17 06:06:29 +01:00
Pedro Algarvio
1ab4b0ca7b
Let's try to get the test suite output
2013-08-17 05:40:05 +01:00
Pedro Algarvio
20de21df07
salt-call
does not support timeout
2013-08-17 05:32:32 +01:00
Pedro Algarvio
d8b011d103
Make salt-cloud run our testrun state to get a streamed output
2013-08-17 05:26:33 +01:00
Pedro Algarvio
0c0751e793
Adapt the test case to the changes introduced in 7e9e889
2013-08-16 20:26:48 +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
a4ce13a285
The jenkins version of salt does not support log level on the salt binary.
2013-08-14 12:59:55 +01:00
Pedro Algarvio
2334ce41e6
Run salt and salt-cloud with debug logging.
2013-08-14 12:51:12 +01:00
Pedro Algarvio
1f02553ead
Some more information about the bootstrap process.
2013-08-14 12:49:40 +01: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
b51b5cfb9e
Flush stdout
and say which exit code was thrown.
2013-08-13 15:47:11 +01:00
Pedro Algarvio
fcc74d9c56
Exit if the bootstrap process did not succeed.
2013-08-13 15:33:03 +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
Pedro Algarvio
1ad2ceb5e1
Flush print messages.
2013-08-13 11:55:17 +01:00
Pedro Algarvio
acc6286f8a
Revert "Allow pip based installations if necessary."
...
This reverts commit ffaad3dc84
.
2013-08-13 11:24:04 +01:00
Pedro Algarvio
8856c7a039
Dam! Missing import.
2013-08-13 10:38:37 +01:00
Pedro Algarvio
ffaad3dc84
Allow pip based installations if necessary.
2013-08-13 10:38:24 +01:00
Pedro Algarvio
32b2705cdd
No colored output from the bootstrap script.
2013-08-13 10:38:24 +01:00
Pedro Algarvio
9d711508f5
Skip running the test is not attached to a TTY.
2013-08-13 10:25:49 +01:00
Pedro Algarvio
93ab0e9e43
Flush test-suite output before running the cleanup code.
2013-08-13 09:58:01 +01:00
Thomas S Hatch
4808281594
freebsd uses wheel as well
2013-08-13 01:01:10 -06: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
7c54b25119
Revert "Revert nonblocking commands"
...
This reverts commit 5176b51b41
.
2013-08-12 22:54:47 -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
Thomas S Hatch
5176b51b41
Revert nonblocking commands
...
In an attempt to determine why all tests are failing when they pass
running the commands in the shell and used to pass
2013-08-12 22:00:58 -06:00
Thomas S Hatch
503d56d189
Add a 30 minute timeout to jenkins state run
...
This lowers the load on the jenkins server and is still accurate because the expected minion to return if finite
2013-08-12 10:32:55 -06:00
Pedro Algarvio
8a938c9a66
Workaround the stateconf
TypeError
exceptions under python 2.6
...
```python
Traceback (most recent call last):
File "/testing/tests/unit/stateconf_test.py", line 117, in test_state_prefix
''', sls='test')
File "/testing/tests/unit/stateconf_test.py", line 30, in render_sls
**kws.copy()
File "/testing/salt/renderers/stateconf.py", line 229, in render
data = process_sls_data(sls_templ, tmplctx)
File "/testing/salt/renderers/stateconf.py", line 114, in process_sls_data
argline=rt_argline.strip(), **kws
File "/testing/salt/renderers/jinja.py", line 41, in render
tmp_data.get('data', 'Unknown render error in jinja renderer')
SaltRenderError: Traceback (most recent call last):
File "/testing/salt/utils/templates.py", line 64, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/testing/salt/utils/templates.py", line 102, in render_jinja_tmpl
loader = JinjaSaltCacheLoader(opts, context['env'])
File "/testing/salt/utils/jinja.py", line 42, in __init__
self.searchpath = opts['file_roots'][env]
TypeError: list indices must be integers, not str
```
2013-08-12 13:55:03 +01: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
Pedro Algarvio
11060c85be
Allow running a group of tests while still providing a test case name from another group.
2013-08-12 11:46:58 +01:00
Pedro Algarvio
0c9ed627ff
If no output, it's also a failure.
2013-08-11 19:22:30 +01:00
Pedro Algarvio
864a69661e
Match test suite exit code.
2013-08-11 17:20:43 +01:00
Pedro Algarvio
67a5138a9d
Stream jenkins output.
2013-08-11 13:58:42 +01:00
Pedro Algarvio
e902d7c403
Required options should error if not passed.
2013-08-11 12:44:54 +01:00
Chris Rebert
24e903e63a
tests/jenkins.py: fix URL; minor copyedits
2013-08-10 22:50:47 -07: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
Thomas S Hatch
1370e72c30
Merge pull request #6555 from flupke/pillar_order2
...
Add support for order clauses in pillar top files
2013-08-10 21:13:20 -07:00
Thomas S Hatch
e40bd7e4f9
Always name vms with ZZZ in jankins tests
...
This makes it easier to see them all in the cloud lists
2013-08-10 14:16:55 -06:00
Thomas S Hatch
909edec564
Skip pydsl test without tty
2013-08-10 14:04:18 -06:00
Thomas S Hatch
7ac5b1d400
Always assign retcode
2013-08-10 13:55:18 -06:00
Pedro Algarvio
785188802f
Temporary directories should respect integration.SYS_TMP_DIR
...
Also, skip if the directory was not actually created.
2013-08-10 20:10:10 +01: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
Thomas S Hatch
1e27703f3b
PIPE on Popen
2013-08-10 09:33:24 -06:00
Thomas S Hatch
040fe7c943
Caps
2013-08-10 08:58:45 -06:00
Thomas S Hatch
1bdb939bbe
Add better detection of state errors
2013-08-10 08:33:19 -06:00
Thomas S Hatch
ebc8256ba2
pass in script args to install the testing commit
2013-08-10 08:21:54 -06:00
Thomas S Hatch
c4a79bbba2
pass through the retcode from the state call
2013-08-10 02:33:58 -06:00
Thomas S Hatch
c43af7cf6f
make it --no-clean
2013-08-10 02:06:03 -06:00
Thomas S Hatch
1970cbdce8
Allow builds to not clean up
2013-08-10 02:04:45 -06:00
Thomas S Hatch
b3461f7f06
escape braces from format
2013-08-10 01:53:28 -06:00
Thomas S Hatch
174a1ecdb5
Pass needed args to run funtion
2013-08-10 01:44:28 -06:00
Thomas S Hatch
4b862da662
dict is not callable :)
2013-08-10 01:43:40 -06:00
Thomas S Hatch
c225921821
Pass through the git commit to the pillar
2013-08-10 01:40:47 -06:00
Thomas S Hatch
1f17e10ef7
updates to jenkins test script
2013-08-10 01:23:32 -06:00
Thomas S Hatch
d50d438545
Add initial jenkins python script for jenkins tests
2013-08-10 01:15:30 -06:00
Pedro Algarvio
7b3ba67bc7
Fix the test_install_pre_argument_in_resulting_command
test case.
...
It now checks if the `--pre` output is present in versions >= 1.4 or not in versions < 1.4
2013-08-09 12:14:56 +01: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
Luper Rouch
fafdfa1800
added support for order clauses in pillar top files
...
Conflicts:
tests/unit/pillar_test.py
2013-08-07 22:57:42 +02:00
Pedro Algarvio
305a5c2223
The parser destructive tests flag is now provided by salt-testing
2013-08-06 22:03:42 +01:00
Pedro Algarvio
2b0bc7056e
Under python 2.6 using {}.format()
(without an index) is a ValueError
.
2013-08-06 19:29:08 +01:00
Roberto Aguilar
74be66baca
Added tests for file.managed contents_pillar param
2013-08-04 22:09:37 -07:00
Pedro Algarvio
d6e0b2a5a2
Added unit test for list nested OrderedDict
's. Refs #6460 .
2013-08-01 01:34:37 +01:00
Joseph Hall
d539e6e8ff
Merge pull request #6433 from s0undt3ch/sprint/mock-salt.modules.archive
...
Complete the work started on the sprint for `salt.modules.archive`
2013-07-30 07:21:24 -07:00
Pedro Algarvio
fe1736bbcd
Fix the mocked test for archive.unrar
.
2013-07-30 06:14:13 +01:00
Pedro Algarvio
189bc4e45e
Added mocked tests for salt.modules.archive.unrar()
2013-07-30 05:36:19 +01:00
Pedro Algarvio
16c4057c4f
Added mocked tests for salt.modules.archive.zip()
. Excludes as a list
2013-07-30 05:01:39 +01:00
Pedro Algarvio
39d0006931
Added mocked tests for salt.modules.archive.unzip()
. Excludes as a list
2013-07-30 05:00:58 +01:00
Pedro Algarvio
34b22afad9
Added mocked tests for salt.modules.archive.rar()
2013-07-30 04:59:28 +01:00
Pedro Algarvio
1a7b68b1a3
Added mocked tests for salt.modules.archive.unzip()
2013-07-30 04:52:31 +01:00
Pedro Algarvio
2f2047aa47
Added mocked tests for salt.modules.archive.zip()
2013-07-30 04:22:02 +01:00
Pedro Algarvio
a7c7cca94e
Test if an exception is raised if the required binary is not found.
2013-07-29 23:29:58 +01:00
Thomas S Hatch
b2e41aceeb
Merge pull request #6402 from s0undt3ch/sprint/mock-salt.modules.archive
...
Updates and fixes to `salt.modules.archive` and `salt.utils.decorators.which`
2013-07-29 09:29:13 -07:00
Pedro Algarvio
14980b7497
Update the archive.tar
mocked test to the new usage.
2013-07-29 06:57:27 +01:00
Pedro Algarvio
4855c9427c
Simplify our decorator code and make it reusable.
2013-07-28 22:55:27 +01:00
Joseph Hall
d64dfdc70a
Merge pull request #6395 from s0undt3ch/sprint/mock-salt.modules.alternatives
...
Also test for `retcode > 0`.
2013-07-28 05:18:29 -07:00
Pedro Algarvio
5d0af6268e
Mocked test for salt.modules.archive.gunzip()
2013-07-28 12:51:13 +01:00
Pedro Algarvio
99b8f2f70f
Mocked test for salt.modules.archive.gzip()
2013-07-28 12:50:05 +01:00
Pedro Algarvio
3d17053e3f
Also test for retcode > 0
.
2013-07-28 12:41:15 +01:00
Pedro Algarvio
dcdb9bf686
Mocked test for salt.modules.archive.tar()
2013-07-27 19:24:49 +01:00
Thomas S Hatch
bca8014b00
Merge pull request #6347 from s0undt3ch/sprint/mock-salt.modules.alternatives
...
Mocked tests for `salt.modules.alternatives`
2013-07-27 10:14:17 -07:00
Pedro Algarvio
aabf18d76a
Remove un-neded import.
2013-07-27 18:11:55 +01:00
Pedro Algarvio
43b513e78f
Mocked test for salt.modules.alternatives.remove()
2013-07-27 18:07:18 +01:00
Pedro Algarvio
fa811882cc
Mocked test for salt.modules.alternatives.install()
2013-07-27 18:04:04 +01:00
Pedro Algarvio
6f10a44279
Mocked test for salt.modules.alternatives.check_installed()
2013-07-27 17:59:16 +01:00
Pedro Algarvio
068f0d6948
Mocked test for salt.modules.alternatives.show_current()
2013-07-27 17:56:05 +01:00
Pedro Algarvio
4b2ef2c3c8
Mocked test for salt.modules.alternatives.display()
2013-07-27 17:26:54 +01:00
Pedro Algarvio
42641c6153
Added test case to see if the usage of user
and runas
at the same time raises an exception.
2013-07-27 16:02:59 +01: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
Pedro Algarvio
07e7366728
user
and runas
now raise an exception. "There can be only one".
...
* Always show the deprecation message `runas` is not `None`.
* If both `user` and `runas` are used, that's an error! Full Stop!
* If `runas` is being used and `user` is not, adapt the code and don't fail.
2013-07-27 13:34:58 +01:00
Pedro Algarvio
5ee8073979
Test the deprecated runas
argument to salt.modules.pip
.
2013-07-27 13:06:36 +01:00