From bbf59429cf462ae417a16afa631c87f495e261df Mon Sep 17 00:00:00 2001 From: Chenfei Gao Date: Tue, 21 May 2019 22:43:25 -0400 Subject: Modify legacy API and policy provider to support version enabled features in legacy db provider Includes: a) Modify legacy API endpoints to retrieve the latest version of legacy policies b) Modify legacy policy providers to support newly added version enabled features in db provider c) Fix corresponding junit test failures Issue-ID: POLICY-1777 Change-Id: I641170b37e2929b5060414832d4b8395493cecdc Signed-off-by: Chenfei Gao --- .../policies/vDNS.policy.guard.frequency.input.ver1.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main/src/test/resources/policies/vDNS.policy.guard.frequency.input.ver1.json (limited to 'main/src/test/resources/policies/vDNS.policy.guard.frequency.input.ver1.json') diff --git a/main/src/test/resources/policies/vDNS.policy.guard.frequency.input.ver1.json b/main/src/test/resources/policies/vDNS.policy.guard.frequency.input.ver1.json new file mode 100644 index 00000000..6dc54cb8 --- /dev/null +++ b/main/src/test/resources/policies/vDNS.policy.guard.frequency.input.ver1.json @@ -0,0 +1,15 @@ +{ + "policy-id" : "guard.frequency.scaleout", + "policy-version" : "1", + "content" : { + "actor": "SO", + "recipe": "scaleOut", + "targets": ".*", + "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", + "limit": "1", + "timeWindow": "10", + "timeUnits": "minute", + "guardActiveStart": "00:00:01-05:00", + "guardActiveEnd": "23:59:59-05:00" + } +} -- cgit 1.2.3-korg