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
Roman Imankulov
4cac03c42d
Add options --clean and --no-clean in runtest.py
...
--no-clean option speeds up repeating test execution by skipping the cleanup
process before and after testing.
Typical use case command could look like
./runtests.py -vv --no-clean --name integration.modules.ssh
2012-07-20 12:16:14 +06:00
Intchanter
f663dd2c46
Merge branch 'develop' of https://github.com/saltstack/salt into develop
...
Conflicts:
salt/states/network.py
setup.py
tests/integration/__init__.py
2012-07-08 22:50:12 -06:00
Thomas S Hatch
e446a306c7
Add sock_dir verification to tests
2012-07-07 22:11:36 -06:00
Thomas S Hatch
7f034cf6ba
See if pushing the timeout to insane levels makes travis stop failing
2012-07-05 20:17:04 -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
Thomas S Hatch
ede600a734
Merge pull request #1532 from akoumjian/develop
...
Fix for minion KeyError 1523
2012-06-30 14:27:40 -07:00
Alec Koumjian
40781ea0ae
Fix for minion KeyError 1523
2012-06-30 14:25:14 -07:00
Dan Colish
c5cdb366dc
Fix test.integration.states.host. Make master_config and minion_config a property to keep semantics consistent
2012-06-30 13:54:23 -07:00
Intchanter
a1433ef5ec
PEP8 fixes for tests
2012-06-30 14:10:34 -06:00
Dan Colish
edfb3d2560
Merge branch 'develop' of git://github.com/saltstack/salt into develop
...
Conflicts:
tests/unit/utils/find_test.py
2012-06-30 12:46:04 -07:00
Dan Colish
78d16a28f0
Move tmp hosts file management to test case which requires it. Fix
...
test.unit.utils.find_test on OSX
2012-06-30 12:20:53 -07:00
Thomas S Hatch
65d8cb4e59
Merge pull request #1521 from dcolish/develop
...
Fix host file setup and fix tests.integration.states.host
2012-06-30 12:00:05 -07:00
Dan Colish
f79b6e5ea0
Fix host file setup and fix tests.integration.states.host
2012-06-30 11:47:48 -07:00
Baiju Muthukadan
f9e9e32eaf
The pwd & grp modules are only available for unix
2012-06-23 11:47:53 +02:00
Thomas S Hatch
f3c7b5be5f
Fix path loading for shell tests
2012-06-05 17:04:28 -06:00
Thomas S Hatch
400a429502
Add user to integration verify_env
2012-06-02 23:17:52 -06:00
L.C. Rees
cdb5e89631
- exploit how 'iterkeys' is default iterator for dict
...
- use values()
- pep8
2012-06-01 13:06:43 -06:00
Baiju Muthukadan
91ce3a7ec9
cleanup temp directories created by tests
2012-05-31 16:13:03 +05:30
Baiju Muthukadan
24bb4ea4e0
Fix PEP8 warnings for test cases
2012-05-29 22:10:20 +05:30
Thomas S Hatch
aed4f593e0
Add runner test interface
2012-05-27 21:00:10 -06:00
Thomas S Hatch
5c09aa3778
Fix docstrings in shellCase
2012-05-23 08:14:16 -06:00
Thomas S Hatch
c9cddd2245
Add second minion to tests
2012-05-23 08:04:38 -06:00
Thomas S Hatch
26bcb2a4cf
Add state_result method to ModuleCase
...
This makes getting the result field out of the return from run_state
easier
2012-05-14 23:43:16 -06:00
Thomas S Hatch
2ae38748d4
add check when cleaning integration temp files
2012-05-12 22:36:46 -06:00
Thomas S Hatch
97966f521a
Add state functions to integration tests
2012-05-12 22:27:30 -06:00
Thomas S Hatch
7f574abba1
Add run_state function to ModuleCase
2012-05-12 20:40:28 -06:00
Jeff Schroeder
81fbdc1249
Properly use os.path.join in some integration tests
2012-05-09 21:36:20 -07:00
Thomas S Hatch
242d554441
Add initial tests for the salt-run command
2012-04-21 18:04:50 -06:00
Thomas S Hatch
5d75091788
Add run_salt and run_run to ShellCase
2012-04-21 17:52:29 -06:00
Thomas S Hatch
e301fee420
Add shell tests and shellCase to test structure
2012-04-21 17:27:59 -06:00
Thomas S Hatch
788eeaa313
Initial addition of CLITest interface
2012-04-21 16:58:03 -06:00
Thomas S Hatch
24a9d3cea1
Add backend for initial ext_pillar tests
2012-04-08 21:31:08 -06:00
Thomas S Hatch
4fe889434f
Add cleaning to the integration module
2012-04-03 23:14:26 -06:00
Thomas S Hatch
2d81528eaa
Add file_roots config to tests
2012-03-29 16:51:56 -06:00
Thomas S Hatch
6dadf88000
Add pillar data to tests
2012-03-29 16:19:19 -06:00
Thomas S Hatch
d1dee6d4e3
remove old master process fix
2012-03-29 15:41:32 -06:00
Thomas S Hatch
d643db9154
remove misconfigured file_roots lines
2012-03-29 09:37:11 -06:00
Thomas S Hatch
53befac5e8
Add a syndic, syndic master and finish synndic tests
2012-03-29 01:03:37 -06:00
Thomas S Hatch
9d0f49e2bf
Add a SyndicCase for testing syndic functions
2012-03-28 22:25:59 -06:00
Thomas S Hatch
f06ea9335d
Update tests to run an extra master and a syndic
2012-03-28 22:14:31 -06:00
Thomas S Hatch
7d005f9b50
clean up files before running tests
2012-03-28 00:10:13 -06:00
Thomas S Hatch
8714418920
Wrap chack in try/except block
2012-03-26 15:02:48 -06:00
Dan Colish
6f5b6a63f7
Fix integration tests on osx
2012-03-08 23:47:34 -08:00
Dan Colish
56a835a5c6
Move utility functions into utils
2012-03-08 20:26:11 -08:00
Eivind Uggedal
35ea9ed02d
Kill all child processes of the test master daemon after each test run.
2012-02-20 13:22:02 +01:00
Eivind Uggedal
ab7ace6aa5
Split out integration tests from pure unit tests.
...
Integration tests requiring a salt master and daemon were seperated
from pure unit tests. For now both are run with runtest.py. In
the future it could take arguments for which type of tests to run.
2012-02-20 13:18:13 +01:00