Steven Armstrong
06649d3478
new feature: capture and forward stdin to types
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-06-04 14:11:34 +02:00
Steven Armstrong
7d61b77708
fix autorequire dependency handling
...
- inherit explicit requirements that the user defined himself
- but _not_ implicit requirements that cdist added for autorequire
Changes:
- added new .autorequire property to CdistObject to keep track of implicit autorequire dependencies
- Emulator appends implicit requirements to this .autorequire property
- DependencyResolver preprocess these .autorequire properties before resolving normal dependencies
- refactored and documented DependencyResolver so it's clearer what happens and easier to use from tests
- update test cases to match new DependencyResolver behaviour
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-05-03 10:16:08 +02:00
Steven Armstrong
0760ff3c94
implement boolean parameters, forgotten files ;-)
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-15 14:44:16 +01:00
Nico Schottelius
2fce038423
correct catching exception to IllegalObjectIdError
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:43:42 +01:00
Nico Schottelius
fb4f8784b6
rename Type => CdistType
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:18:14 +01:00
Nico Schottelius
4be37f6e93
begin rename Object => CdistObject
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 00:08:18 +01:00
Steven Armstrong
252ae5ea56
new feature: dependency resolver
2012-01-19 07:51:02 +01:00
Steven Armstrong
8ac375e8a6
Merge branch 'master' into autorequire
...
Conflicts:
lib/cdist/test/emulator/__init__.py
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-17 13:08:30 +01:00
Steven Armstrong
56d783f612
tests and fixtures for type parameters with dashes
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-17 13:03:56 +01:00
Steven Armstrong
f36d09289d
Merge branch 'master' into autorequire
...
Conflicts:
lib/cdist/test/emulator/__init__.py
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-15 10:47:16 +01:00
Steven Armstrong
efedfbf47c
test for singleton requirement
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 15:44:12 +01:00
Steven Armstrong
0d05e61b85
tests and fixtures for emulator autorequire
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 23:57:13 +01:00
Steven Armstrong
d4e715f052
close file handles opened with tempfile.mkstemp
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:26:27 +02:00
Steven Armstrong
97ab6effa4
introduce new cdist.test.CdistTestCase base class which handles common tasks
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 17:59:21 +02:00
Steven Armstrong
2a5465c03c
test that emulator fails if requirement has illegal object_id
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
64edfc4640
add tests for emulator
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 13:19:37 +02:00