Commit graph

139 commits

Author SHA1 Message Date
Steven Armstrong
86cb65cd9c update test: dont return command output by default
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 15:51:40 +02:00
Steven Armstrong
e715dbb801 update test: dont return command output by default
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 15:50:10 +02:00
Nico Schottelius
6d7620582d run all test suites, if called as main
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 14:16:15 +02:00
Nico Schottelius
97da16f4bc load test suites
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:12:06 +02:00
Nico Schottelius
9aa064a0ae remove obsolete test
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:10:21 +02:00
Nico Schottelius
588d789ee2 empty init
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:03:44 +02:00
Nico Schottelius
2194368c0c load all test classes
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:03:03 +02:00
Steven Armstrong
9640c3a098 test for illegal object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 11:21:12 +02:00
Nico Schottelius
8ac1406020 stage away obsolete tests
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 10:49:28 +02:00
Steven Armstrong
8e224b43c3 fix imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:05:22 +02:00
Steven Armstrong
f6adefddec test for Object object_from_name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:03:18 +02:00
Steven Armstrong
f4b1252063 add test for Type base_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 08:58:34 +02:00
Steven Armstrong
be02dc5ff1 create object directory befor accessing it
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 00:35:23 +02:00
Steven Armstrong
1b7ebc5885 more tests for different ways to access object.explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:23:04 +02:00
Steven Armstrong
7abb338381 bugfix test case
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:11:03 +02:00
Steven Armstrong
4f7d75e604 remove/fix copy paste stuff
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:27:07 +02:00
Steven Armstrong
7bc68476a1 test for run_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:09:05 +02:00
Steven Armstrong
12e5b3e8dc test for run_code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:00:07 +02:00
Steven Armstrong
5055afe0c0 test for test_transfer_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:57:09 +02:00
Steven Armstrong
01ab81a446 -- duplicate code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:50:50 +02:00
Steven Armstrong
df57b5188b tests for code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:26:36 +02:00
Steven Armstrong
6f7528c411 test for code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:42:45 +02:00
Steven Armstrong
8e55e74bc2 test for code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:40:20 +02:00
Steven Armstrong
fb4d20e7e8 test for test_list_type_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:33:24 +02:00
Steven Armstrong
f02bdf3e61 test for test_list_global_explorer_names
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:30:41 +02:00
Steven Armstrong
ac79ec101f +consistency
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:22:52 +02:00
Steven Armstrong
f1fdf0f13c add assertion for test_run_global_explorer
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:21:15 +02:00
Steven Armstrong
f846fdd961 add assertion for test_transfer_global_explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:20:07 +02:00
Steven Armstrong
2eb37367a1 add assertion for test_transfer_type_explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:18:34 +02:00
Steven Armstrong
910de0579c add assertion for test_transfer_object_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:17:22 +02:00
Steven Armstrong
dc6218c3e1 initial test for test_transfer_object_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:14:46 +02:00
Steven Armstrong
63eee391e0 implement Explorer analog to Manifest + tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 01:25:31 +02:00
Steven Armstrong
0b1d7d01e0 Merge remote-tracking branch 'telmich/master' 2011-10-13 01:19:25 +02:00
Nico Schottelius
62383eed8d ++stuff
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-13 03:00:57 +02:00
Steven Armstrong
a8ec91c804 -e /type_base_path/type_path/ -e /object_base_path/object_path/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:35:14 +02:00
Steven Armstrong
48eb996a2e remove useless filename prefix
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:26:11 +02:00
Steven Armstrong
5d2827f66e tests for Remote paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:24:52 +02:00
Steven Armstrong
67de9d8c73 tests for Local paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 00:20:55 +02:00
Nico Schottelius
8d591b45e2 add type to test whether object parameter can be read
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:49:17 +02:00
Nico Schottelius
d9af865523 fixture type with one explorer
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:12:56 +02:00
Nico Schottelius
f2278c42ab init tests for type_explorer
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
2011-10-12 23:10:18 +02:00
Steven Armstrong
fb80a95555 --debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:58:09 +02:00
Steven Armstrong
1c38fb492e fixtures for type manifest environment test
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:57:06 +02:00
Steven Armstrong
9a33bd3b90 test type manifest environment
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:56:45 +02:00
Steven Armstrong
5df8479c5a implement Manifest and tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:20:47 +02:00
Steven Armstrong
a254e1f31e return output of command execution as string instead of bytestring
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:12:22 +02:00
Steven Armstrong
78fd611bb0 fix cdist_base_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 16:56:16 +02:00
Steven Armstrong
117ccf94d3 --debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 16:13:22 +02:00
Steven Armstrong
985ed2669a local code execution and tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 15:17:06 +02:00
Steven Armstrong
7da3a3c305 remote code execution and tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 14:30:10 +02:00
Steven Armstrong
8543f3ed58 rename to match others
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:41:44 +02:00
Steven Armstrong
1c73fb1288 -- unused imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:41:01 +02:00
Steven Armstrong
b3c0a5912f Merge remote-tracking branch 'telmich/master' 2011-10-11 16:32:11 +02:00
Steven Armstrong
8ef0c18da0 update test suite to match new code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 16:31:43 +02:00
Nico Schottelius
d690fb30cb add base path and exec path to test main
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-11 16:26:33 +02:00
Steven Armstrong
d03f23129b test and fixtures for Object explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 15:45:10 +02:00
Steven Armstrong
45ff8f727f tests for Object source as list
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 14:22:29 +02:00
Steven Armstrong
405ebbccb7 Merge remote-tracking branch 'telmich/master'
Conflicts:
	lib/cdist/emulator.py
2011-10-11 12:40:44 +02:00
Steven Armstrong
af83c7af8e tests for Object source
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-11 09:38:31 +02:00
Nico Schottelius
9647933a40 Merge branch 'master' of git://github.com/asteven/cdist 2011-10-11 00:19:01 +02:00
Nico Schottelius
a8fc867834 ++test integration
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-10 15:43:36 +02:00
Steven Armstrong
6de7bd3377 test for Object ran
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 10:06:41 +02:00
Steven Armstrong
7855a485b6 test for Object prepared
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 10:05:46 +02:00
Steven Armstrong
f2701cb512 test for Object changed
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 10:04:36 +02:00
Steven Armstrong
b1efc27b39 test for Object requirements
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 10:00:42 +02:00
Steven Armstrong
abf318ae90 test and fixtures for Object parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 09:47:06 +02:00
Steven Armstrong
88a1e34f30 test for Object object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 09:44:29 +02:00
Steven Armstrong
8384176080 test Object explorer_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 09:36:48 +02:00
Steven Armstrong
f3b942e591 test for Object paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 09:34:16 +02:00
Steven Armstrong
7c12027311 test and fixtures for Object class/static methods
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-10 09:30:28 +02:00
Steven Armstrong
c9159b15f1 use package, no need for another file
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-09 07:41:53 +02:00
Steven Armstrong
f46344effe test and fixtures for Type.list_*
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 22:51:06 +02:00
Steven Armstrong
5d59102018 test only one instance of same type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 22:50:11 +02:00
Steven Armstrong
73bdb7f11f test and fixtures for Type members (name, path, ...)
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 22:49:09 +02:00
Steven Armstrong
8d3cad1815 test and fixtures for Type.{required,optional}_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 22:32:55 +02:00
Steven Armstrong
b7c88b03d3 removed unused code/imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 18:29:24 +02:00
Steven Armstrong
8e0501aaa9 tests and fixtures for Type.explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 18:28:22 +02:00
Steven Armstrong
52f9388f07 tests and fixtures for Type.is_install
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 18:22:38 +02:00
Steven Armstrong
f515e20572 start unittests for Type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-07 17:52:38 +02:00
Nico Schottelius
cabb5b9ab0 100% test coverage for the banner (feels good, doesn't it?)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-07 17:38:10 +02:00
Nico Schottelius
a875d69d7e continue on test_path testcase
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-05 14:15:05 +02:00
Nico Schottelius
f88cb78d61 finish test_path.test_type_detection
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 18:36:43 +02:00
Nico Schottelius
8dd248cf76 cleanup on exit and begin to create test types
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 17:01:11 +02:00
Nico Schottelius
6c22867fc2 begin to test path and add method to check type
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 16:32:43 +02:00
Nico Schottelius
40a1619c1a make build test work (or fail, but work) again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 16:15:10 +02:00
Nico Schottelius
3d75ec9bfc make test suite usable from command line
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 15:49:18 +02:00
Nico Schottelius
410a2fe7ff test_explorer_ran finished
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 15:08:37 +02:00
Nico Schottelius
13ed37a4e9 begin to test explorer success in test_install
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 14:45:35 +02:00
Nico Schottelius
db322c0b5e integrate tests into library
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-04 14:29:33 +02:00