From 7e140184968cffdc80b5bcd8b27804cdb112ce83 Mon Sep 17 00:00:00 2001 From: Eric Kao Date: Mon, 19 Jun 2017 17:03:13 -0700 Subject: [PATCH] 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 --- tests/scenario/test_congress_basic_ops.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/scenario/test_congress_basic_ops.py b/tests/scenario/test_congress_basic_ops.py index 5c4ddc6..a37da26 100644 --- a/tests/scenario/test_congress_basic_ops.py +++ b/tests/scenario/test_congress_basic_ops.py @@ -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",