Nico Schottelius
2bc201614a
:%s/cdist_object.type/cdist_object.cdist_type/g
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:54:09 +01:00
Nico Schottelius
1e5226e21c
fix indention errors due to vim c&p
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:51:40 +01:00
Nico Schottelius
eadb62e67a
minimal beaufity
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:44:09 +01:00
Nico Schottelius
dcd3bcee32
use the great method object_from_name() in emulator
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:57:51 +01:00
Nico Schottelius
2492d51f6f
make object_from_name() better readable
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:56:37 +01:00
Nico Schottelius
097b4ea6ad
:%s/self.type/self.cdist_type/g
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:50:11 +01:00
Nico Schottelius
754aba1a15
record source in setup_object not in requirements
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:47:33 +01:00
Nico Schottelius
f27730e10b
finish rewrite to instance method
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:45:32 +01:00
Nico Schottelius
ab565dc3d9
cleanup / emulator
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:45:10 +01:00
Nico Schottelius
0c990e1756
add singleton / no object_id test to CdistObject
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:25:04 +01:00
Nico Schottelius
91ecfa7d3f
back to 100% tests working
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:27:25 +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
1314567012
also begin to prefix type with cdist
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:10:57 +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
Nico Schottelius
15fb097464
add function to sanitise object_id and verify no //
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 00:05:21 +01:00
Nico Schottelius
53c61d42ad
remove useless if env:
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:12:49 +01:00
Nico Schottelius
1dcc420a38
no, no common base class for local/remote
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:09:32 +01:00
Nico Schottelius
d55c52601f
move run_type_explorer near run_type_explorers
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:08:32 +01:00
Nico Schottelius
72fefef320
increment version, update web release
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-28 20:49:47 +01:00
Steven Armstrong
252ae5ea56
new feature: dependency resolver
2012-01-19 07:51:02 +01:00
Nico Schottelius
5ca61189d9
change version in lib
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 08:26:11 +01:00
Nico Schottelius
092a9aa5b8
update version in lib/
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-18 15:37:53 +01:00
Steven Armstrong
30da237405
Merge branch 'master' into autorequire
2011-11-18 15:13:52 +01:00
Steven Armstrong
bf13325303
if env is not given, os.environ is used -> need to also do that
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-18 14:56:59 +01:00
Steven Armstrong
98dec302a6
export __target_host for use in __remote_{copy,exec} scripts
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-18 14:44:32 +01:00
Steven Armstrong
654e19f28b
mark _run_command as private
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-18 14:40:25 +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
68f66af21a
implement: accept parameters with dashes
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-17 13:04:39 +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
6dd1465aa8
--AttributeError
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 15:29:07 +01:00
Steven Armstrong
1729516414
allow .cdist (OBJECT_MARKER) inside file names but not as _the_ file/folder name
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:38:22 +01:00
Steven Armstrong
b92ea62f72
export OBJECT_MARKER for use in tests
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:36:40 +01:00
Steven Armstrong
e1cf8d094b
--AttributeError
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:29:36 +01:00
Steven Armstrong
ae23f1576f
--TypeError
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:28:51 +01:00
Steven Armstrong
f95ee8062f
--SyntaxError
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:28:04 +01:00
Nico Schottelius
c7d0d581b1
we pass base_path, not object_path (clearification)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-09 18:41:46 +01:00
Nico Schottelius
b3337a18b9
in theory catch error when requiring an undefined object (in practise not)
...
Error message trying to fix:
ERROR: [Errno 2] No such file or directory: '/home/users/nico/.tmp/tmptvy1ic/out/object/__localch_yum_repos/singleton/.cdist/state'
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-09 18:30:12 +01:00
Nico Schottelius
e18bd97c86
SUCESSFUL is very helpful to grep for :-)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-08 08:28:04 +01:00
Steven Armstrong
d0123acc2a
implement singleton as requirement
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 15:44:51 +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
c58ec7e4ef
prevent circular dependencies
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 00:25:06 +01:00
Steven Armstrong
7d0238682b
implement autorequire in emulator
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 23:58:18 +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
e36e538f81
sort lists before testing for equality
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 09:15:44 +01:00
Steven Armstrong
792ddf0a5b
add utility method to join object name from type and object_id
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 09:13:23 +01:00
Steven Armstrong
afba5e9280
add utilitly method to split an object name into its type name and object_id
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 07:52:08 +01:00
Steven Armstrong
70ee0f1681
implement __lt__ to support sorting a list of objects
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-01 22:46:46 +01:00
Steven Armstrong
bf1b995908
implement __lt__ and __eq__ to support sorting a list of types
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-01 22:20:46 +01:00
Nico Schottelius
80cd35fc3d
Merge remote-tracking branch 'steven/run-explorers-in-cdist.core.explorer'
2011-10-21 20:19:41 +02:00
Steven Armstrong
18f08d893c
export defaults for __remote_{exec,copy}
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:59:39 +02:00
Steven Armstrong
c29c419f61
also export __target_host to check_call
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:50:19 +02:00
Steven Armstrong
6ec4cefe09
Merge remote-tracking branch 'telmich/master'
2011-10-21 15:39:17 +02: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
17e7642615
implement: export __target_host in remote exec
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:17:19 +02:00
Steven Armstrong
16b118b38e
add test for: __target_host exported to remote exec run
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:16:38 +02:00
Steven Armstrong
8e2b9e4337
add test for: __target_host exported to remote exec
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:10:41 +02:00
Steven Armstrong
1e354387f9
add missing import
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 14:48:47 +02:00
Steven Armstrong
81e4c0a418
move run_*_explorers from config_install to core.explorer
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-20 11:10:30 +02:00
Steven Armstrong
9588c5189c
Merge branch 'master' into run-explorers-in-cdist.core.explorer
2011-10-20 11:08:23 +02:00
Steven Armstrong
6223402b9e
bugfix: only attempt to transfer object parameters it their are any
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-20 11:07:48 +02:00
Steven Armstrong
60c4e21981
implement Explorer run_global_explorers and run_type_explorers
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-20 11:05:50 +02:00
Steven Armstrong
40971208f2
add test for Explorer run_type_explorers
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-20 11:04:41 +02:00
Steven Armstrong
6f82aef704
add test for Explorer run_global_explorers
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-20 10:55:11 +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
Nico Schottelius
c189bd9daf
resort output in object_run
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-19 16:47:52 +02:00
Steven Armstrong
ca1ef28fe1
change order of log.info
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:42:14 +02:00
Steven Armstrong
e9541b2a2a
== is not = :-/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:29:30 +02:00
Steven Armstrong
de8a09b45d
++FIXME
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:16:52 +02:00
Steven Armstrong
9156d2f5ac
trust in telmich we do (or should)
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:15:52 +02:00
Steven Armstrong
c45c9cd702
dont re-run already fulfilled requirements
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 16:07:13 +02:00
Steven Armstrong
24bf7369d9
++info
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:54:26 +02:00
Steven Armstrong
50eead577c
+missing import
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:49:32 +02:00
Steven Armstrong
8cfc16cd76
finish migration to cdist_object.state
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:48:22 +02:00
Steven Armstrong
6734ff693f
fix object_prepare to use object.state
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:39:38 +02:00
Nico Schottelius
e98272e0c5
move log.info down
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-19 15:34:24 +02:00
Nico Schottelius
0e7c532870
add new state code, begin to detect circular dependencies
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-19 15:32:06 +02:00
Steven Armstrong
d6cf85e6f6
implement /__object_fq/__object_name/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:17:45 +02:00
Steven Armstrong
b56925d24a
/__object_fq/__object_name/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:15:05 +02:00
Steven Armstrong
8f306a7484
/__debug/__cdist_debug/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:04:14 +02:00
Steven Armstrong
dc3ed07153
/__debug/__cdist_debug/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:03:47 +02:00
Steven Armstrong
eb5b80d132
remove legacy tests
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:02:17 +02:00
Steven Armstrong
1fb96c0fc2
update test for upcomming change: /__debug/__cdist_debug/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:58:25 +02:00
Steven Armstrong
ef5eb34274
update test for upcomming change: /__debug/__cdist_debug/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:57:32 +02:00
Steven Armstrong
f732220e77
remove legacy tests
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:54:38 +02:00
Steven Armstrong
ff2192f6de
remove legacy attributes: ran, prepared
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:54:15 +02:00
Steven Armstrong
022b17d700
implement Object state
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:53:31 +02:00
Steven Armstrong
4f398a834f
/ran/done/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:53:06 +02:00
Steven Armstrong
02de396905
tests for Object state
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:50:16 +02:00
Nico Schottelius
4d4287c580
Merge remote-tracking branch 'steven/master'
2011-10-18 15:14:44 +02:00
Steven Armstrong
04af96b5e3
Merge remote-tracking branch 'telmich/master'
2011-10-18 15:09:50 +02:00
Steven Armstrong
d427e3f585
__self should not contain .cdist
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
205cd7b28a
fix the test
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
2246b7496b
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
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
030d5919e6
raise exception if object_id contains .cdist
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
af367a76f8
test for: .cdist may not be used in object_id
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
e58b52592b
add missing environment variable __self
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
1805c16fd4
--debug
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
a946b5cf59
verify manifest environment
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00