Commit Graph

11027 Commits

Author SHA1 Message Date
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