Automatically load library policy files at start
harness.py loads library policy from disk files to DB uniqueness constraint added on library policy name. devstack plugin updated to install library policy files to default location updated congress stand-alone install instruction Partially implements: blueprint policy-library Closes-Bug: 1693619 Closes-Bug: 1693672 Change-Id: I51097081f6576755751231feb5ed2b0be642d91e
This commit is contained in:
parent
4d21599164
commit
7e14018496
|
@ -196,6 +196,10 @@ class TestPolicyLibraryBasicOps(manager_congress.ScenarioPolicyBase):
|
|||
response = self.admin_manager.congress_client.list_library_policy()
|
||||
initial_state = response['results']
|
||||
|
||||
self.assertGreater(
|
||||
len(initial_state), 0, 'library policy shows no policies, '
|
||||
'indicating failed load-on-startup.')
|
||||
|
||||
test_policy = {
|
||||
"name": "test_policy",
|
||||
"description": "test policy description",
|
||||
|
|
Loading…
Reference in New Issue