From ac779d374ca12099eaeb8e5d89e65df37fd8a8f4 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Thu, 1 Feb 2018 14:16:56 -0500 Subject: improved message to deployment-handler and on API * added errored_scopes and scope_prefixes to the message to deployment-handler - to prevent erroneous removal of policies * hardcoded condition for scope not found 404 at policy-engine to separate it from error on the scope retrieval 400 * adjusting the web API message in sync with notification to deployment-handler * unit test coverage 74% Change-Id: Ie736a1b7aee0631b6785669c6b765bd240dd77b8 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov --- policyhandler/policy_consts.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'policyhandler/policy_consts.py') diff --git a/policyhandler/policy_consts.py b/policyhandler/policy_consts.py index f6a1a9e..bcac080 100644 --- a/policyhandler/policy_consts.py +++ b/policyhandler/policy_consts.py @@ -1,6 +1,6 @@ # org.onap.dcae # ================================================================================ -# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,3 +24,11 @@ POLICY_VERSION = "policyVersion" POLICY_NAME = "policyName" POLICY_BODY = 'policy_body' POLICY_CONFIG = 'config' + +CATCH_UP = "catch_up" +LATEST_POLICIES = "latest_policies" +REMOVED_POLICIES = "removed_policies" +ERRORED_POLICIES = "errored_policies" +ERRORED_SCOPES = "errored_scopes" +SCOPE_PREFIXES = "scope_prefixes" +POLICY_FILTER = "policy_filter" -- cgit 1.2.3-korg