Commit Graph

260 Commits

Author SHA1 Message Date
Nico Schottelius 2286acc6f2 fix some more tests for the next release
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-28 15:44:52 +02:00
Nico Schottelius e6feee14fb Merge branch 'enhance_cache'
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>

Conflicts:
	cdist/test/code/__init__.py
	cdist/test/config_install/__init__.py
	cdist/test/explorer/__init__.py
2013-08-28 15:43:03 +02:00
Nico Schottelius 136ddc05b5 context based changes
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-28 15:39:17 +02:00
Nico Schottelius 18c5e60ab1 --context in tests
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-28 15:34:52 +02:00
Nico Schottelius 74e003d29b +print cdist version on startup + exit_code = 2 for irq
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-21 18:52:35 +02:00
Nico Schottelius 91cf68363b Merge branch 'issue_191' of https://github.com/asteven/cdist 2013-08-20 00:21:36 +02:00
Steven Armstrong 8aacbe2885 Bourne is not bash
see http://shebang.brandonmintern.com/bourne-is-not-bash-or-read-echo-and-backslash/

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-08-19 22:25:17 +02:00
Nico Schottelius 975b93c20a fix all tests -> back to normal
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 13:37:40 +02:00
Nico Schottelius b527479620 refactor out_path -> base_path
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 13:35:03 +02:00
Nico Schottelius 866645679a throw a better exception when environment variables are missing
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 13:34:29 +02:00
Nico Schottelius 2f5de23ae9 out_path -> base_path
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 12:03:25 +02:00
Nico Schottelius ffeaa3d06b fix old bug / joining wrong args
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 11:45:43 +02:00
Nico Schottelius a76d8bb517 :%s/self.out_path/self.base_path/g
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 11:45:22 +02:00
Nico Schottelius 8298bb0bf5 fix test cdist.test.config_install.ConfigInstallRunTestCase
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 11:33:44 +02:00
Nico Schottelius b3cf339d06 fallback to sys.argv[0] by default
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 11:21:53 +02:00
Nico Schottelius cd8695d3eb move create_files_dirs more to up - it is similar to init()
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 08:48:41 +02:00
Nico Schottelius d1708c78b6 refactoring
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 01:38:28 +02:00
Nico Schottelius eaf1721212 begin to migrate to '--output-base-path', shrink context
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 00:52:15 +02:00
Nico Schottelius b9a6cf7c6a remove context from shell
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 00:38:19 +02:00
Nico Schottelius a7fe8b4ed2 port context -> remote
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 00:36:25 +02:00
Nico Schottelius f79727559a ++logs and migrate context -> local
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 00:33:58 +02:00
Nico Schottelius 83c981f477 begin to implement -C --cache-dir
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 00:03:57 +02:00
Nico Schottelius 49d9f1f475 support relative paths in -c argument
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-12 12:56:54 +02:00
Nico Schottelius 263a8a73a7 minor cleanups
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-12 12:11:43 +02:00
Nico Schottelius 32f878ad00 update docs, document exit code bug
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-12 11:42:00 +02:00
Nico Schottelius 4e46cf8ce4 begin to document shell changes
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-07 21:12:21 +02:00
Nico Schottelius 79fea569b9 some shell related cleanups
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-07 20:58:45 +02:00
Nico Schottelius c793825edb re-arrange REMOTE_COPY/EXEC for Shell use
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-07 17:52:34 +02:00
Nico Schottelius 2403fc59ee refactor commandline: merge into its own class (and add first shell code)
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-07 09:24:10 +02:00
Nico Schottelius c1441fc676 enhance singleton testing
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-10 17:21:38 +02:00
Nico Schottelius 8ab760ad90 document unit test
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-10 17:02:19 +02:00
Nico Schottelius b84d3393a0 Merge branch 'remove-singleton-object_id' of https://github.com/asteven/cdist 2013-07-10 16:55:41 +02:00
Steven Armstrong 7205cd5ecf remove that crappy old singleton object_id thingy
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-07-10 16:31:58 +02:00
Nico Schottelius ff50a61344 use shortcut version in __package_opkg
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-10 14:16:56 +02:00
Nico Schottelius dbe65795f5 remove dry_run from object_run
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-05 15:27:34 +02:00
Nico Schottelius 5f318d5de3 print warning in case dry run is activated
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-05 15:12:49 +02:00
Nico Schottelius 5bad25cd6d add dry_run hint to verbose messages, not debug
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-05 15:02:36 +02:00
Nico Schottelius 3c14f7e2f5 add dry run hint
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-05 15:00:23 +02:00
Nico Schottelius ab50d8561b add new type: __cdist
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-04 14:34:17 +02:00
Nico Schottelius 9326adf34b fix refactor error
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-24 13:23:31 +02:00
Nico Schottelius 25bdcb1602 cleanup tests and ... - 100% green
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 22:39:20 +02:00
Nico Schottelius ef24ec4db8 port test_missing_requirements to config_install unit test
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 21:50:21 +02:00
Nico Schottelius e1d8645415 fix unit tests for config_install
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 21:48:15 +02:00
Nico Schottelius 4ec1afc47f also remove obsolete save_cache function
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 16:55:54 +02:00
Nico Schottelius 14a3bf7262 move save_cache into local
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 16:52:56 +02:00
Nico Schottelius 4758daa037 move types into conf/ dir
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 16:38:50 +02:00
Nico Schottelius 347ff8900e split directory creating code off of init
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-21 16:35:19 +02:00
Nico Schottelius b1d661f4c0 merge ResolverTestCase and AutorequireTestCase into ExecutionOrderTestCase
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-20 11:30:20 +02:00
Nico Schottelius b2686f3b13 factor out iterate code to be able to test it for one, two, ... runs
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-20 11:24:47 +02:00
Nico Schottelius c5c5e7b89b remove requirement-finder tests - no need to test assignments and no wildcard support anymore
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-20 11:17:30 +02:00