congress/congress/tests/policy_engines
Eric Kao 94fdc38c86 Add policy creation with rules or from policy library
persistent_create_policy_with_rules method added to agnostic runtime
to transactionally create policy along with rules. The main work is
done by the persistent_insert_rules method extended to allow creation
of the target policy along with the rule inserts.

Database transactions added in persistent_insert_rules to make sure
all changes (policy add and rules insert) can be committed or rolled
back together.

DB table locking expanded to the `policies` table in the policy
creation case to prevent conflicting policy changes from other nodes.

policy_model add_item API method extended to accept policy item with
rules, (exclusive) or parameter specifying ID of library policy to
activate.

Partially implements: blueprint policy-library
Partial-Bug: 1693622

Change-Id: I2a83ac11b7014d417ff7553f602a8bb96a9adc34
2017-07-17 16:26:24 -07:00
..
__init__.py Add missing __init__.py to tests/policy_engines 2015-02-27 15:39:42 -08:00
brokentest_agnostic.py Use more specific asserts in tests 2017-02-28 03:14:25 +00:00
disabled_test_vmplacement.py Disable old DSE code 2016-08-10 12:18:48 -07:00
test_agnostic.py Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
test_agnostic_dse2.py Remove unnecessary setUp function in testcase 2017-03-30 15:58:19 +08:00
test_agnostic_performance.py Fix ParserError 2017-06-23 11:12:23 +05:30