Commit Graph

7526 Commits

Author SHA1 Message Date
Thomas S Hatch
8ba1d51a75 Merge pull request #1533 from mattrobenolt/django-module-tests
Added tests for Django module
2012-06-30 14:33:16 -07: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
Matt Robenolt
d327e6bdf4 Adding tests for Django module commands 2012-06-30 14:24:22 -07:00
Dan Colish
1b1431ba66 Skip verify_env test on windows. 2012-06-30 14:11:37 -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
Jeff Hutchins
ff54029c98 Make tests on utils.find run with nose. 2012-06-30 14:48:40 -06:00
Thomas S Hatch
d15899ce20 Merge pull request #1528 from dcolish/develop
Add unittests for salt.utils.verify
2012-06-30 13:30:36 -07:00
Dan Colish
01b74fc04c Add unittests for salt.utils.verify 2012-06-30 13:28:15 -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
Jeff Schroeder
7e16fd680a Merge branch 'develop' of github.com:saltstack/salt into develop 2012-06-30 12:34:41 -07:00
Jeff Schroeder
07b4c8b4ed Skip the rvm and gem module/state tests when mock is missing
The mock python module is required for the gem and rvm tests.
If it is not available, the tests should be gracefully skipped.

From python runtests.py -u:

test__check_and_install_ruby (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test__check_ruby (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test__check_rvm (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test_gemset_present (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test_installed (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test_installed (unit.states.gem_test.TestGemState) ... skipped 'mock python module is unavailable'
test_removed (unit.states.gem_test.TestGemState) ... skipped 'mock python module is unavailable'
test__rvm (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test__rvm_do (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_gemset_list (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_gemset_list_all (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_install (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_list (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test__gem (unit.modules.gem_test.TestGemModule) ... skipped 'mock python module is unavailable'
test_list (unit.modules.gem_test.TestGemModule) ... skipped 'mock python module is unavailable'
test_sources_list (unit.modules.gem_test.TestGemModule) ... skipped 'mock python module is unavailable'
2012-06-30 12:29:48 -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
Matt Robenolt
57ff2bfe3e Hardcode /tmp/subsalttest dir in ssh module integration tests
I don't really like doing this, but `/tmp/subsalttest dir` is already
hardcoded in other places for running tests.

Without this, when running tests under a mounted Vagrant drive,
`ssh-keygen` doesn't have permission to create the symlink for
known_hosts to known_hosts.old, causing a test to fail.

```
======================================================================
FAIL: test_rm_known_host (integration.modules.ssh.SSHModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vagrant/tests/integration/modules/ssh.py", line 143, in
test_rm_known_host
    self.assertEqual(ret, 'add')
AssertionError: 'exists' != 'add'
```

`link /vagrant/tests/integration/tmp/known_hosts to
/vagrant/tests/integration/tmp/known_hosts.old: Operation not permitted`
2012-06-30 11:46:31 -07:00
Larry Price
77f54af75e Merge branch 'develop' of https://github.com/saltstack/salt into develop 2012-06-30 11:43:49 -07:00
Larry Price
994d62431e found the issue, set cwd. 2012-06-30 11:43:32 -07:00
Larry Price
aa95c9d26b initial test case for user. 2012-06-30 09:43:44 -07:00
Larry Price
c2f89a849d adding state tests to the full run :-/ 2012-06-30 09:40:00 -07:00
David Boucha
7e7d831103 Disable find unit tests on Windows
There are problems with pwd, grp and /dev/null
as they don't exist on Windows. So we are disabling
tests that use those for now.
2012-06-24 19:43:43 -06:00
David Boucha
bb72a4dfba Fix jinja_test on Windows 2012-06-24 18:16:22 -06:00
Baiju Muthukadan
f9e9e32eaf The pwd & grp modules are only available for unix 2012-06-23 11:47:53 +02:00
Thomas S Hatch
7477583c97 Add test for recuse error 2012-06-19 10:29:14 -06:00
Jeroen Dekkers
ac2344f2cb Skip pip test if pip is not installed 2012-06-19 03:11:54 +02:00
Jeroen Dekkers
92ffbaba6e Be compatible with mock 0.7 2012-06-19 02:19:03 +02:00
Jeroen Dekkers
9dd57c057e Use cat instead of echo for cmd.which test, as echo can be a built-in 2012-06-19 02:17:55 +02:00
Baiju Muthukadan
8cc8fe7305 use sys.maxint for platform compatibility
Also comment out a failing test case.  This works in CentOS 6.2 32bit
but not working unde Ubuntu 12.04 32bit.
2012-06-18 12:06:54 +05:30
Baiju Muthukadan
ea4c519e25 tests for find utility 2012-06-18 00:54:48 +05:30
Thomas S Hatch
baa9cf88eb Add sls for non recurse test 2012-06-15 22:41:59 -06:00
Thomas S Hatch
b13f723ed6 Add non recurse test 2012-06-15 22:41:36 -06:00
Thomas S Hatch
c29d1d6076 Only generate one pair of minion keys for the swarm 2012-06-13 13:37:28 -06:00
Thomas S Hatch
bb9558b316 Fix exception in minionswarm 2012-06-11 14:43:42 -06:00
Thomas S Hatch
e6e92fb3af Add eventlisten script to watch events on the master and minion 2012-06-07 18:41:18 -06:00
Thomas S Hatch
b4f9c22883 Doh! thats the wrong cachedir config! 2012-06-06 11:18:17 -06:00
Thomas S Hatch
8de4dbc13d disable failing aliases tests 2012-06-05 18:11:15 -06:00
Thomas S Hatch
ef6b027e90 Fix salt key tests for new no_color option 2012-06-05 18:10:59 -06:00
Thomas S Hatch
5b05d77405 Add sock_dir setting for the integration test syndic 2012-06-05 17:51:52 -06:00
Thomas S Hatch
f3c7b5be5f Fix path loading for shell tests 2012-06-05 17:04:28 -06:00
Thomas S Hatch
7ad6b3c6e4 Add abaility to disable minion modules in the swarm 2012-06-05 11:44:01 -06:00
Thomas S Hatch
5c6b8aea28 docstring cleanups for ssh tests 2012-06-04 17:22:43 -06:00
L.C. Rees
cc8a921311 - more py3k fixes 2012-06-04 16:40:34 -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
L.C. Rees
140e8781df - py3k updates 2012-05-31 23:31:27 -06:00
Baiju Muthukadan
91ce3a7ec9 cleanup temp directories created by tests 2012-05-31 16:13:03 +05:30
Thomas S Hatch
dc6138b787 move runner tests to the front to clean up the output 2012-05-30 17:10:48 -06:00
L.C. Rees
924d8b450b - fix cmd tests so they pass on MacOS X 2012-05-30 15:57:53 -06:00
Baiju Muthukadan
5f0de59ab7 Test runner boiler plate; remove unused imports 2012-05-31 03:11:25 +05:30
Dan Colish
49972a1580 The text outputter will insert newlines, the tests must expect these
to be present.
2012-05-29 21:45:51 -07:00
Dan Colish
f5c8e242e4 Refactor runtests to allow dotted path module discovery.
In addition to traditional file system path test discovery it is
useful to run a test by stating it's dotted python path. For example,
this will only run the cmdmod integration tests from the
module suite::

        $ runtests.py -n tests.integration.modules.cmdmod
2012-05-29 19:56:47 -07:00
Baiju Muthukadan
24bb4ea4e0 Fix PEP8 warnings for test cases 2012-05-29 22:10:20 +05:30
Thomas S Hatch
7247c5afe7 Fix test error due to fix in static calls 2012-05-27 21:43:35 -06:00
Thomas S Hatch
0020706067 Add jobs jobs.list_jobs runner test 2012-05-27 21:34:48 -06:00
Thomas S Hatch
e5b5d458c3 Add tests for jobs runner 2012-05-27 21:24:45 -06:00
Thomas S Hatch
a19ffae25f Add tests for the manage runner 2012-05-27 21:02:29 -06:00
Thomas S Hatch
0b9f381781 Add runners to the main test script 2012-05-27 21:01:08 -06:00
Thomas S Hatch
aed4f593e0 Add runner test interface 2012-05-27 21:00:10 -06:00
Thomas S Hatch
d8ca98f3a4 Add test to make sure #1348 does not happen again 2012-05-27 17:41:49 -06:00
Jon McKenzie
c0f8e07bd7 Add --yaml-out, --json-out, and --raw-out outputters to salt-key CLI (retain color output as default) 2012-05-26 18:22:24 -04:00
Roman Imankulov
28ca4cb776 Fix file.comment/file.uncomment states
Function "file.contains_regex" used to search values from the beginning
of the line and thus couldn't find pattern "hello world" in a "#hello
world" string.
2012-05-25 12:38:57 +06:00
Roman Imankulov
c9a20edee0 Fix ssh_known_hosts state return values 2012-05-24 22:05:45 +06:00
Roman Imankulov
d45bc9179a Set ssh.set_known_host bug 2012-05-23 23:45:16 +06:00
Thomas S Hatch
8bfab4e7c0 pillar matcher test 2012-05-23 10:18:54 -06:00
Thomas S Hatch
f7e2af08cf Add pillar data specific to the sub_minion 2012-05-23 10:05:14 -06:00
Thomas S Hatch
757e8591dd Add test for compound matcher 2012-05-23 09:57:33 -06:00
Thomas S Hatch
b25e82c59f Add regex grain match tests 2012-05-23 09:39:10 -06:00
Thomas S Hatch
b5bdfc3073 Add grain matcher test 2012-05-23 08:46:12 -06:00
Thomas S Hatch
19baf0f577 Add initial matcher tests 2012-05-23 08:31:58 -06:00
Thomas S Hatch
5c09aa3778 Fix docstrings in shellCase 2012-05-23 08:14:16 -06:00
Thomas S Hatch
b1c710e70a fix error with new minion in salt-key tests 2012-05-23 08:08:35 -06:00
Thomas S Hatch
dd6e2da941 Fix salt-key test for new minion 2012-05-23 08:05:47 -06:00
Thomas S Hatch
c9cddd2245 Add second minion to tests 2012-05-23 08:04:38 -06:00
Roman Imankulov
f20cb3b92c Add support for test mode operations 2012-05-23 00:13:52 +06:00
Roman Imankulov
41465d5f0a Add support for ssh_known_hosts states 2012-05-21 23:45:03 +06:00
Roman Imankulov
1590483fe2 Add support for known_hosts management
Module "ssh" is now capable of keeping track of records in ssh
known_hosts file, as well as asking remote hosts for their public keys.
2012-05-21 21:49:43 +06:00
Roman Imankulov
9d193b85b7 Add support for ssh public keys fingerprint
- function _validate_keys returns public key fingerprint as described in
  RFC 4716
- one more test to validate how "ssh.auth_keys" function works
2012-05-20 23:09:52 +06:00
Thomas S Hatch
a4864f9c80 Add initial compiler tests 2012-05-16 23:00:01 -06:00
Thomas S Hatch
fdf155bbe2 Add interface for testing bad sls data 2012-05-16 22:58:18 -06:00
Thomas S Hatch
76efdd9fb0 Fix bug in tests with aliases 2012-05-16 22:49:19 -06:00
Thomas S Hatch
5f9a7e87e4 Initial host state test 2012-05-14 23:56:45 -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
3abc36b4d2 Add tests for cmd state 2012-05-14 11:18:36 -06:00
Thomas S Hatch
8e26ea646e Add rm_alias test 2012-05-14 10:44:17 -06:00
Thomas S Hatch
3c92ebc465 aliases.list_aliases test 2012-05-14 09:59:38 -06:00
Thomas S Hatch
800cf2825c Add test for aliases.has_target 2012-05-14 00:04:26 -06:00
Thomas S Hatch
b97ec99999 Add initial aliases tests 2012-05-13 23:51:22 -06:00
Thomas S Hatch
c5df9f6526 Add config for aliases tests 2012-05-13 23:51:00 -06:00
Thomas S Hatch
04652619d8 Fix #1268, this adds the working test for recursive requisite errors 2012-05-13 23:16:45 -06:00
Thomas S Hatch
eead7e0dab Add test for recursive sls data checks 2012-05-13 21:31:46 -06:00
Baiju Muthukadan
fa3b39f071 remove trailing whitespaces 2012-05-13 19:48:05 +05:30
Thomas S Hatch
6897542aa2 test the test interface for file.touch state 2012-05-13 02:07:54 -06:00
Thomas S Hatch
e363cf0105 test for file.touch 2012-05-13 02:06:46 -06:00
Thomas S Hatch
ac451b7498 test interface test for file.append 2012-05-13 02:02:20 -06:00
Thomas S Hatch
cc6175444c Add file.append test 2012-05-13 02:00:01 -06:00
Thomas S Hatch
23e4e82abf Add file.uncomment tests 2012-05-13 01:54:20 -06:00
Thomas S Hatch
e798e80891 test interface test for file.comment 2012-05-13 01:38:31 -06:00
Thomas S Hatch
b2dd62864a Add test for file.comment 2012-05-13 01:35:01 -06:00
Thomas S Hatch
58d56930c3 test interface for file.sed 2012-05-13 01:24:26 -06:00
Thomas S Hatch
dd25243cea test for file.sed 2012-05-13 01:20:28 -06:00
Thomas S Hatch
a85c66cc3e test for file.recurse interface 2012-05-13 01:02:05 -06:00
Thomas S Hatch
1a875571ba Test for file.recurse state 2012-05-13 00:54:28 -06:00
Thomas S Hatch
2ebd8a9827 Add test for file.directoty test interface 2012-05-13 00:27:00 -06:00
Thomas S Hatch
4c2200d351 tests for file.directory 2012-05-12 23:38:24 -06:00
Thomas S Hatch
75409f6b0c Add test interface test for file.managed 2012-05-12 23:27:00 -06:00
Thomas S Hatch
b811d8b5ba Add test for file.managed 2012-05-12 23:19:39 -06:00
Thomas S Hatch
a6c748dad7 verify file.absent test interface 2012-05-12 22:58:26 -06:00
Thomas S Hatch
5a94a41305 file.absent tests 2012-05-12 22:55:28 -06:00
Thomas S Hatch
ccdde36173 verify the test interface for file.symlink 2012-05-12 22:41:47 -06:00
Thomas S Hatch
2ae38748d4 add check when cleaning integration temp files 2012-05-12 22:36:46 -06:00
Thomas S Hatch
9628f9a90b Add state integration test for file.symlink 2012-05-12 22:31:58 -06:00
Thomas S Hatch
97966f521a Add state functions to integration tests 2012-05-12 22:27:30 -06:00
Thomas S Hatch
6ab9242def Add option to test states 2012-05-12 20:55:56 -06:00
Thomas S Hatch
7f574abba1 Add run_state function to ModuleCase 2012-05-12 20:40:28 -06:00
Jeff Schroeder
23a59c71d1 Cleaning up the publish module integration tests a bit 2012-05-09 21:42:38 -07:00
Jeff Schroeder
a561e224f2 DRY with the grains integration tests 2012-05-09 21:39:49 -07:00
Jeff Schroeder
81fbdc1249 Properly use os.path.join in some integration tests 2012-05-09 21:36:20 -07:00
Jeff Schroeder
6f836afafa Remove a few instances of hardcoded /tmp in code
tempfile.gettempdir() is way better. The gem and rvm states are
still failing, but only because they require the "mock" python
module for running their tests.
2012-05-09 21:29:05 -07:00
Baiju Muthukadan
5533fe4417 JUnit like XML reporting for Jenkins 2012-05-06 03:57:16 +05:30
Baiju Muthukadan
0605365daf Support verbose output for testrunner
The option parsing logic has changed without affecting the test
invocation commandline interface.
So, it should be possible to invoke tests like this:

  python tests/runtests.py -u #only run unit tests
  python tests/runtests.py -m #only run module tests
  python tests/runtests.py #run all tests
  python tests/runtests.py -v #run all tests with verbose output
  python tests/runtests.py -vu #run unit tests with verbose output
2012-05-06 02:12:47 +05:30
Thomas S Hatch
a6b331755f Merge pull request #1212 from baijum/testrunner_boilerplate
Add testrunner boilerplate code to run tests
2012-05-05 06:42:57 -07:00
Baiju Muthukadan
cb5e3ea089 Add testrunner boilerplate code to run tests 2012-05-05 19:39:23 +05:30
Baiju Muthukadan
d2d31bd8b4 non-unit tests should be able to run individually 2012-05-05 18:07:39 +05:30
Baiju Muthukadan
763a4287cf Exit testrunner with proper exit code 2012-05-05 17:23:39 +05:30
Thomas S Hatch
6bcc64da7b Merge pull request #1194 from mnemonikk/add-tests-to-rvm-module
Add tests to rvm and gem module and state
2012-05-03 20:35:00 -07:00
Anselm Helbig
d02f0beaee added proper unit tests for gem and rvm modules and states; fixed bugs in the rvm module's install function and in the rvm state's handling of ruby versions 2012-05-03 11:33:16 +02:00
Marc Abramowitz
607eab025a Fix pip.freeze and add a test for it. 2012-05-02 19:07:21 -07:00
Anselm Helbig
5bc9ea7d67 added preliminary unit tests for rvm module 2012-05-02 09:42:01 +02:00
Thomas S Hatch
daa47eab29 make cmd tests use always available shells 2012-04-27 16:13:33 -06:00
Thomas S Hatch
b7870955e2 cleanly add paths 2012-04-27 15:40:55 -06:00
Thomas S Hatch
5b1bde8a49 make fd_ more standard 2012-04-25 01:20:49 -06:00
Thomas S Hatch
e84d4e1101 Add soem comments to the runner tests 2012-04-21 18:11:24 -06: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
8276c2548b Change name of clicase to shellcase 2012-04-21 17:51:41 -06:00
Thomas S Hatch
7530f39269 Add some more key tests 2012-04-21 17:47:04 -06:00
Thomas S Hatch
98027c3fb6 Add initial salt-key test 2012-04-21 17:31:46 -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
4f3fbe0991 remove unused import 2012-04-21 17:02:18 -06:00
Thomas S Hatch
788eeaa313 Initial addition of CLITest interface 2012-04-21 16:58:03 -06:00
Monty Taylor
c9950cc571 Clean up code for 3.2 2012-04-20 13:20:51 -07:00
Thomas S Hatch
ed276a8036 make the minion ids more random
The tempfile only checks for local unique values, this adds an extra
layer of random data making the ids more scalable
2012-04-20 10:25:26 -06:00
Thomas S Hatch
a2c97e5342 Add master and foreground opts to swarm 2012-04-17 23:58:10 -06:00
Thomas S Hatch
54503aa13b Initial minion swarming works! 2012-04-17 20:38:15 -06:00
Thomas S Hatch
9e1c58f4f5 Add minionswarm script, still needs testing and to be expanded 2012-04-17 19:12:35 -06:00
Evan Borgstrom
a17dff3a02 When add_host re-ordered hosts it would leave out trailing new lines
This caused problems when adding another host and you'd end up with
entries such as:

```
192.168.1.2\t\thost2\thost2alias192.168.1.1\t\thost1\thost1alias
```

Test updated to reflect.
2012-04-12 23:50:00 -04:00
Thomas S Hatch
f95c8a74e4 Add test for ext_pillar 2012-04-08 21:34:55 -06:00
Thomas S Hatch
24a9d3cea1 Add backend for initial ext_pillar tests 2012-04-08 21:31:08 -06:00
Thomas S Hatch
41a81f85d2 Merge pull request #1063 from fatbox/hosts-duplicate-entries
Ensure hosts.add_host isn't leaving duplicate entries around
2012-04-08 15:18:40 -07:00
Evan Borgstrom
2d66c50d74 Ensure hosts.add_host isn't leaving duplicate entries around
Given a state entry like the following:

```
host-staging-web:
  host:
    - present
    - ip: 10.102.130.100
    - names:
      - staging-web.fqdn.com
      - staging-web
      - alt-staging-hostname
```

You'd end up with three different entries in your hosts file:

```
10.102.130.100		staging-web.fqdn.com
10.102.130.100		staging-web.fqdn.com	staging-web
10.102.130.100		staging-web.fqdn.com	staging-web	alt-staging-hostname
```

This corrects it by removing the previous line before appending the
newly crafted on, and adds tests to prove it.
2012-04-08 14:33:30 -04:00
Thomas S Hatch
b8227350dc finish cp module tests with cp.hash_file 2012-04-04 12:00:52 -06:00
Thomas S Hatch
f646d9f38f add options to runtests allowing for specific suites to be run 2012-04-04 11:49:28 -06:00
Thomas S Hatch
fdd75e81f6 Add some pretty to the unit tests 2012-04-04 10:58:11 -06:00
Thomas S Hatch
2178b0162b Add cp.is_cached test 2012-04-04 10:46:01 -06:00
Thomas S Hatch
0402ca6194 Add cp.list_minion test 2012-04-04 10:39:45 -06:00
Thomas S Hatch
9f4b4632db Add cp.list_states test 2012-04-04 10:28:57 -06:00
Thomas S Hatch
0d2519dd31 Add test for cp.cache_local_file 2012-04-04 10:25:02 -06:00
Thomas S Hatch
55e9f01f91 Add cp.cache_master test 2012-04-04 10:13:29 -06:00
Thomas S Hatch
32bf556642 Add test for cp.cache_files 2012-04-04 00:06:41 -06:00
Thomas S Hatch
eef4741c6c Add cache_file test 2012-04-03 23:58:34 -06:00
Thomas S Hatch
f61c821520 Add cp.get_url test 2012-04-03 23:52:56 -06:00
Thomas S Hatch
222fe3cc8f Add cp.get_dir 2012-04-03 23:46:45 -06:00
Thomas S Hatch
18e1d5db6e Add cp.get_template tests 2012-04-03 23:31:53 -06:00
Thomas S Hatch
f1b4e4bda6 Add inital cp module tests 2012-04-03 23:15:37 -06:00
Thomas S Hatch
ae82e606b4 Add files for testing the cp module 2012-04-03 23:14:47 -06:00
Thomas S Hatch
4fe889434f Add cleaning to the integration module 2012-04-03 23:14:26 -06:00
Thomas S Hatch
42ee187943 Add client kwarg tests 2012-04-03 22:30:38 -06:00
Thomas S Hatch
ea7e9d2ff5 move syndic to client tests 2012-04-03 21:59:38 -06:00
Thomas S Hatch
e43f213b8f Add first client api tests 2012-04-03 21:57:41 -06:00
Thomas S Hatch
6c0c05c523 Add support for a dir of client tests 2012-04-03 21:14:09 -06:00
Thomas S Hatch
a00d3cb501 Add tests to cover pillar passing minion grains data in 2012-04-01 21:59:23 -06:00
Thomas S Hatch
62b2166ab4 Add test to verify the kwarg passing from the publish module 2012-04-01 13:29:23 -06:00
Thomas S Hatch
a919def70b don't need to test the syndic coverage like this, save some time 2012-04-01 13:10:37 -06:00
Thomas S Hatch
d00133e343 Add some tests for states 2012-03-29 17:18:32 -06:00
Thomas S Hatch
24bc642508 Add files to file_roots for tests 2012-03-29 16:53:48 -06:00
Thomas S Hatch
2d81528eaa Add file_roots config to tests 2012-03-29 16:51:56 -06:00
Thomas S Hatch
47768c7149 Add pillar module verification 2012-03-29 16:35:49 -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
cda5dfbf4d update configs for syndic tests 2012-03-29 01:03:11 -06:00
Thomas S Hatch
fac809f11a add initial files for syndic tests 2012-03-29 01:02:40 -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
1e63ffc862 Add syndic master config for the test environment 2012-03-28 22:13:34 -06:00
Thomas S Hatch
7221d566e5 Add auth test for minion publish 2012-03-28 18:47:10 -06:00
Thomas S Hatch
62b709d578 publish tests 2012-03-28 18:37:05 -06:00
Thomas S Hatch
ecfb4b1df0 update config for publish tests 2012-03-28 18:36:38 -06:00
Thomas S Hatch
5b3b5bb145 Add sys module tests 2012-03-28 12:07:48 -06:00
Thomas S Hatch
7d005f9b50 clean up files before running tests 2012-03-28 00:10:13 -06:00
Thomas S Hatch
118c02886a Add tests for the data module 2012-03-27 23:45:49 -06:00
Thomas S Hatch
8cf2a16ff9 Add tests for the cmd module 2012-03-27 17:05:38 -06:00
Thomas S Hatch
5cbc724ba5 Add disk tests 2012-03-26 23:13:36 -06:00
Thomas S Hatch
8714418920 Wrap chack in try/except block 2012-03-26 15:02:48 -06:00
Dan Colish
7512c7fb47 Test the corresponding cmd function 2012-03-10 07:27:38 -08: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
Eivind Uggedal
099470ab37 Terminate master and minion processes after tests are finished. 2012-02-20 00:07:38 +01:00
Thomas S Hatch
f86203f26e fix broken tests due to the msgpack list fix 2012-02-17 13:48:47 -07:00
Thomas S Hatch
2a550ebd3f add a tmp dir to tests 2012-02-17 13:48:36 -07:00
Thomas S Hatch
2c7ff4b78f Add tests for the grains module 2012-02-14 11:00:35 -07:00
Thomas S Hatch
30c692bf2d add convenience functions to gather config options
This commit adds 2 functions to the ModuleCase class allowing for easier
access to the configuration data
2012-02-14 10:55:16 -07:00
Thomas S Hatch
957778e815 Add a hosts file for the hosts test 2012-02-14 00:30:25 -07:00
Thomas S Hatch
9a1976c3b9 All unit tests now run, hosts has been added 2012-02-14 00:27:38 -07:00
Thomas S Hatch
775bbaa3ad Add hosts.file option for th erunning minion 2012-02-14 00:26:54 -07:00
Thomas S Hatch
edb689f9e0 Add path settings to saltunittest 2012-02-14 00:26:22 -07:00
Thomas S Hatch
0f386a498b Add test.cross_test to test module tests
Enough tests for the testing of the tests?
2012-02-13 14:36:14 -07:00
Thomas S Hatch
3acfaf5916 tests for test module all run 2012-02-13 14:32:11 -07:00
Thomas S Hatch
6d57ea1d5e clean up extra prints in the test run 2012-02-12 16:36:01 -07:00
Thomas S Hatch
4f2564e95c Add test.echo test 2012-02-12 16:34:42 -07:00
Thomas S Hatch
21cebcc091 run all modules in the modules dir 2012-02-12 16:10:50 -07:00
Thomas S Hatch
fd82c47a95 more refinements to unittesting 2012-02-12 16:03:31 -07:00
Thomas S Hatch
71c81ce2e8 The new unit tests work! 2012-02-12 02:58:15 -07:00
Thomas S Hatch
37704129af initial test class 2012-02-12 02:05:35 -07:00
Thomas S Hatch
5b83d74e2d move core classes to daemon, add moduleclass 2012-02-12 01:57:03 -07:00
Thomas S Hatch
07b4320a89 Initial push towards active unit testing
After a great deal of thought, I feel that the only way to reliably run
a test suite it to start a minion and master, and condition the data to
reflect the literal returns (take out the transport overhead).

This commit is the initial push towards this method of unit testing,
these test will be able to acctually test every aspect of salt.
2012-02-12 01:24:20 -07:00
Thomas S Hatch
5cb36f320d Add configs for the minion/master servers to run in the test suite 2012-02-12 00:46:24 -07:00
Evan Borgstrom
11cc43d22d Now that it's working let's make it a little nicer to use [GH-522]
This allows for tests to be written without too much change from the
normal unittest workflow. Now they should use the 'saltunittest'
namespace and we will need to import anything we need from the original
'unittest' or 'unittest2' namespace.
2012-01-29 10:17:51 -05:00
Evan Borgstrom
dde4198dae Allow tests to be run on python < 2.7 [GH-522]
note: the host module test seems to be broken.
2012-01-29 10:01:43 -05:00
Martin Schnabel
5c0a055fb7 fix bug saltstack/salt#403
add tests for modules/hosts
2011-12-31 00:21:08 +01:00
Martin Schnabel
6c42208602 add salt jinja utils tests 2011-12-30 00:58:00 +01:00
Martin Schnabel
43a6bcf299 add simple test runner.
use:
   python setup.py test
to build salt and run all 'unittest.TestCase's in tests/
2011-12-30 00:55:05 +01:00