Commit Graph

2589 Commits

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