cdist/cdist/test
Darko Poljak da274e5ef3 Redefine/reimplement CDIST_ORDER_DEPENDENCY
CDIST_ORDER_DEPENDENCY now defines type order dependency context.
cdist (emulator) maintains global state variables, as files,
order_dep_state and typeorder_dep, and per object state variable,
as file, typeorder_dep.

If order_dep_state exists then this defines that order dependency is
turned on.
If order_dep_state does not exist then order dependency is turned off.

If order dependency is on then objects created after it is turned on are
recorded into:
    * global typeorder_dep, in case of init manifest
    * object's typeorder_dep, in case of type's manifest.

If order dependency is on then requirement is injected, where object
created before current, is read from:
    * global typeorder_dep, in case of init manifest
    * object's typeorder_dep, in case of type's manifest.

Every time order dependency is turned off, typeorder_dep files are
removed, which means that type order list is cleared, context is
cleaned.

In the end cdist cleans after itself, i.e. mentioned files are removed.

When running type manifest is finished typeorder_dep file is removed.
When running config finishes global typeorder_dep and order_dep_state
files are removed.

Global type order recording is untouched.
Furthermore, for completeness, type order is now recorded for each object
too.
2019-11-27 15:04:47 +01:00
..
autil Fix unit test. 2017-08-11 01:20:45 +02:00
banner pep8 2016-07-05 20:44:24 +02:00
capture_output Save output streams. 2018-01-09 09:31:40 +01:00
capture_output_disabled Support disabling saving output streams 2018-02-07 18:12:15 +01:00
cdist_object object_id = '/' is invalid 2017-08-10 19:08:44 +02:00
cdist_type Add/keep empty directories 2019-11-27 14:51:28 +01:00
code Save output streams. 2018-01-09 09:31:40 +01:00
config Detect dependency cycle as soon as possible 2019-05-01 14:19:08 +02:00
configuration Add timestamping log option to config file. 2018-09-27 18:55:33 +02:00
emulator Redefine/reimplement CDIST_ORDER_DEPENDENCY 2019-11-27 15:04:47 +01:00
exec Bypass Configuration singleton from other tests if any. 2018-10-10 12:34:31 +02:00
explorer Save output streams. 2018-01-09 09:31:40 +01:00
fixtures/remote use posix -L in favour of longopts 2014-02-13 21:02:18 +01:00
inventory Add/keep empty directories 2019-11-27 14:51:28 +01:00
manifest Save output streams. 2018-01-09 09:31:40 +01:00
message pep8 2016-07-05 20:44:24 +02:00
util lib/cdist => cdist (pypi) 2012-10-25 17:21:58 +02:00
__init__.py Merge inventory from beta branch. 2017-07-20 22:04:44 +02:00
__main__.py Make cdist.test return exit code. 2018-10-10 10:37:29 +02:00