aboutsummaryrefslogtreecommitdiffstats
path: root/tests/main/expectations.json
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2020-02-27 12:45:54 -0500
committerAlex Shatov <alexs@att.com>2020-02-27 12:45:54 -0500
commit78ff88f9b3a3d32f941b3b9fedc2abfbaba291cb (patch)
tree5670dddc0e0cd9f793d419420b61ad0559639497 /tests/main/expectations.json
parent715fc8a36ac1809cd3e36cbb6cfb7107ebb038ea (diff)
5.1.0 policy-handler - policy-updates from new PDP5.1.0
DCAEGEN2-1851: - policy-handler now supports the policy-update notification from the new policy-engine thru DMaaP MR = no policy-filters - only policy-id values - see README for discoverable config settings of dmaap_mr client = DMaaP MR client has the same flexibility as policy_engine = set the query.timeout to high value like 15000 (default) - requests to DMaaP MR go through a single blocking connection - first catch-up only after draining the policy-updates from DMaaP MR on the first loop - safe parsing of messages from DMaaP MR - policy-engine changed the data type for policy-version field from int to string that is expected to have the semver value - related change to deployment-handler (DCAEGEN2-2085) has to be deployed to handle the non-numeric policyVersion - on new PDP API: http /policy_latest and policy-updates return the new data from the new PDP API with the following fields added/renamed by the policy-handler to keep other policy related parts intact in R4-R6 (see pdp_api/policy_utils.py) * policyName = policy_id + "." + policyVersion.replace(".","-") + ".xml" * policyVersion = str(metadata["policy-version"]) * "config" - is the renamed "properties" from the new PDP API response - enabled the /catch_up and the periodic auto-catch-up for the new PDP API - enabled GET /policies_latest - returns the latest policies for the deployed components - POST /policies_latest - still disabled since no support for the policy-filters is provided for the new PDP API - fixed hiding the Authorization value on comparing the configs - logging of secrets is now sha256 to see whether they changed - added X-ONAP-RequestID to headers the same way as X-ECOMP-RequestID - on policy-update process the removal first, then addition - changed the pool_connections=1 (number of pools) on PDP and DH sides == only a single destination is expected for each - log the exception as fatal into error.log - other minor fixes and refactoring - unit-test coverage 74% - integration testing is requested DCAEGEN2-1976: - policy-handler is enhanced to get user/password from env vars for PDP and DMaaP MR clients and overwriting the Authorization field in https headers received from the discoverable config = to override the Authorization value on policy_engine, set the environment vars $PDP_USER and $PDP_PWD in policy-handler container = to override the Authorization value on dmaap_mr, if using https and user-password authentication, set the environment vars $DMAAP_MR_USER and $DMAAP_MR_PWD in policy-handler container Change-Id: Iad8eab9e20e615a0e0d2822f4735dc64c50aa55c Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-1851 Issue-ID: DCAEGEN2-1976
Diffstat (limited to 'tests/main/expectations.json')
-rw-r--r--tests/main/expectations.json2839
1 files changed, 2839 insertions, 0 deletions
diff --git a/tests/main/expectations.json b/tests/main/expectations.json
new file mode 100644
index 0000000..4f93930
--- /dev/null
+++ b/tests/main/expectations.json
@@ -0,0 +1,2839 @@
+{
+ "tests/main/test_policyhandler.py::WebServerTest::test_web_all_policies_latest": [
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "0": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "3": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem",
+ "test_scope_prefix.pdp_decision_amet",
+ "test_scope_prefix.pdp_decision_ametist",
+ "test_scope_prefix.pdp_decision_consectetur",
+ "test_scope_prefix.pdp_decision_dolor",
+ "test_scope_prefix.pdp_decision_ipsum",
+ "test_scope_prefix.pdp_decision_sit"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_amet",
+ "policy-id": "test_scope_prefix.pdp_decision_amet",
+ "policy-version": "5.5.5"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 4,
+ "policy_updated_to_ver": 5,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ }
+ ],
+ "tests/main/test_policyhandler.py::WebServerTest::test_web_policies_latest": [
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": {
+ "policyName": "test_scope_prefix.Config_amet.*"
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": "*",
+ "status_code": 200
+ }
+ ],
+ "tests/main/test_policyhandler.py::WebServerTest::test_web_policy_latest": [
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_sit"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_sit": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ }
+ ],
+ "tests/main/test_policyhandler.py::WebServerTest::test_zzzzz_shutdown": [
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": null,
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": ["garbage-to-be-ignored"],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "0": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "3": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem",
+ "test_scope_prefix.pdp_decision_amet",
+ "test_scope_prefix.pdp_decision_ametist",
+ "test_scope_prefix.pdp_decision_consectetur",
+ "test_scope_prefix.pdp_decision_dolor",
+ "test_scope_prefix.pdp_decision_ipsum",
+ "test_scope_prefix.pdp_decision_sit"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_amet",
+ "policy-id": "test_scope_prefix.pdp_decision_amet",
+ "policy-version": "5.5.5"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 4,
+ "policy_updated_to_ver": 5,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": true,
+ "latest_policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
+ "policyVersion": "1.1.1",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
+ "policyVersion": "7.7.7",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
+ "policyVersion": "6.6.6",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
+ "policyVersion": "3.3.3",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
+ "policyVersion": "2.2.2",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
+ "policyVersion": "4.4.4",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_sit"
+ }
+ },
+ "policy_filter_matches": {},
+ "removed_policies": {}
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ }
+ ],
+ "tests/main/test_policyhandler.py::WebServerTest::test_zzz_policy_updates_and_catch_ups": [
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": null,
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": ["garbage-to-be-ignored"],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "0": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "3": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem",
+ "test_scope_prefix.pdp_decision_amet",
+ "test_scope_prefix.pdp_decision_ametist",
+ "test_scope_prefix.pdp_decision_consectetur",
+ "test_scope_prefix.pdp_decision_dolor",
+ "test_scope_prefix.pdp_decision_ipsum",
+ "test_scope_prefix.pdp_decision_sit"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_amet",
+ "policy-id": "test_scope_prefix.pdp_decision_amet",
+ "policy-version": "5.5.5"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 4,
+ "policy_updated_to_ver": 5,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": true,
+ "latest_policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
+ "policyVersion": "1.1.1",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
+ "policyVersion": "7.7.7",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
+ "policyVersion": "6.6.6",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
+ "policyVersion": "3.3.3",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
+ "policyVersion": "2.2.2",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
+ "policyVersion": "4.4.4",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_sit"
+ }
+ },
+ "policy_filter_matches": {},
+ "removed_policies": {}
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [
+ "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update1\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1\",\"success-count\":3,\"failure-count\":0}]}"
+ ],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "1.1.1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "7.7.7": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "6.6.6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "3.3.3": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "2.2.2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "4.4.4": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1-update1"
+ },
+ "properties": {
+ "policy_hello": "world! - updated 1",
+ "policy_updated_from_ver": "1.1.1",
+ "policy_updated_to_ver": "1.1.1-update1",
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": false,
+ "latest_policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world! - updated 1",
+ "policy_updated_from_ver": "1.1.1",
+ "policy_updated_to_ver": "1.1.1-update1",
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1-update1"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1-update1.xml",
+ "policyVersion": "1.1.1-update1",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ }
+ },
+ "policy_filter_matches": {},
+ "removed_policies": {}
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [
+ "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"99.0.0\",\"policy-id\":\"not-dcae.expect-be-ignored-55\",\"policy-version\":\"522.522.522\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"9.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_ipsum\",\"policy-version\":\"2.2.2\",\"success-count\":3,\"failure-count\":0},{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"9.0.0\",\"policy-id\":\"not-dcae.expect-be-ignored\",\"policy-version\":\"22.22.22\",\"success-count\":3,\"failure-count\":0}]}",
+ "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"99.9.9\",\"policy-id\":\"not-dcae.expect-be-ignored-55\",\"policy-version\":\"5522.5522.522\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.testing\",\"policy-type-version\":\"9.0.0\",\"policy-id\":\"not-dcae.expect-be-ignored\",\"policy-version\":\"22.22.22\",\"success-count\":3,\"failure-count\":0}]}"
+ ],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "1.1.1-update1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "7.7.7": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "6.6.6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "3.3.3": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "2.2.2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "4.4.4": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_ipsum"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {}
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": false,
+ "latest_policies": {},
+ "policy_filter_matches": {},
+ "removed_policies": {
+ "test_scope_prefix.pdp_decision_ipsum": true
+ }
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [
+ "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update1\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1\",\"success-count\":3,\"failure-count\":0}]}",
+ "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update2\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update1\",\"success-count\":3,\"failure-count\":0}]}",
+ "{\"deployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update3\",\"success-count\":3,\"failure-count\":0}],\"undeployed-policies\":[{\"policy-type\":\"onap.policies.monitoring.cdap.tca.hi.lo.app\",\"policy-type-version\":\"1.0.0\",\"policy-id\":\"test_scope_prefix.pdp_decision_Lorem\",\"policy-version\":\"1.1.1-update2\",\"success-count\":3,\"failure-count\":0}]}"
+ ],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "1.1.1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "7.7.7": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "6.6.6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "3.3.3": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "2.2.2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "4.4.4": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic auth",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1-update3"
+ },
+ "properties": {
+ "policy_hello": "world! - updated 3",
+ "policy_updated_from_ver": "1.1.1-update2",
+ "policy_updated_to_ver": "1.1.1-update3",
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": false,
+ "latest_policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world! - updated 3",
+ "policy_updated_from_ver": "1.1.1-update2",
+ "policy_updated_to_ver": "1.1.1-update3",
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1-update3"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1-update3.xml",
+ "policyVersion": "1.1.1-update3",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ }
+ },
+ "policy_filter_matches": {},
+ "removed_policies": {}
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic auth",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ }
+ ],
+ "tests/main/test_pz_catch_up.py::test_catch_up": [
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": null,
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": ["garbage-to-be-ignored"],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "0": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "3": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic YWxleC1QRFBfVVNFUjphbGV4LVBEUF9QV0Q=",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem",
+ "test_scope_prefix.pdp_decision_amet",
+ "test_scope_prefix.pdp_decision_ametist",
+ "test_scope_prefix.pdp_decision_consectetur",
+ "test_scope_prefix.pdp_decision_dolor",
+ "test_scope_prefix.pdp_decision_ipsum",
+ "test_scope_prefix.pdp_decision_sit"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_amet",
+ "policy-id": "test_scope_prefix.pdp_decision_amet",
+ "policy-version": "5.5.5"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 4,
+ "policy_updated_to_ver": 5,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": true,
+ "latest_policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
+ "policyVersion": "1.1.1",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
+ "policyVersion": "7.7.7",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
+ "policyVersion": "6.6.6",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
+ "policyVersion": "3.3.3",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
+ "policyVersion": "2.2.2",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
+ "policyVersion": "4.4.4",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_sit"
+ }
+ },
+ "policy_filter_matches": {},
+ "removed_policies": {}
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "0": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "3": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic YWxleC1QRFBfVVNFUjphbGV4LVBEUF9QV0Q=",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem",
+ "test_scope_prefix.pdp_decision_amet",
+ "test_scope_prefix.pdp_decision_ametist",
+ "test_scope_prefix.pdp_decision_consectetur",
+ "test_scope_prefix.pdp_decision_dolor",
+ "test_scope_prefix.pdp_decision_ipsum",
+ "test_scope_prefix.pdp_decision_sit"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_amet",
+ "policy-id": "test_scope_prefix.pdp_decision_amet",
+ "policy-version": "5.5.5"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 4,
+ "policy_updated_to_ver": 5,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": true,
+ "latest_policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
+ "policyVersion": "1.1.1",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
+ "policyVersion": "7.7.7",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
+ "policyVersion": "6.6.6",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
+ "policyVersion": "3.3.3",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
+ "policyVersion": "2.2.2",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
+ "policyVersion": "4.4.4",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_sit"
+ }
+ },
+ "policy_filter_matches": {},
+ "removed_policies": {}
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": ["garbage-to-be-ignored", "garbage-to-be-ignored"],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy_versions": {
+ "0": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_amet",
+ "policy_versions": {
+ "5.5.5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ametist",
+ "policy_versions": {
+ "6": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy_versions": {
+ "5": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_dolor",
+ "policy_versions": {
+ "2": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy_versions": {
+ "1": true
+ }
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "pending_update": false,
+ "policy_id": "test_scope_prefix.pdp_decision_sit",
+ "policy_versions": {
+ "3": true
+ }
+ }
+ },
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Accept": "application/json",
+ "Authorization": "Basic YWxleC1QRFBfVVNFUjphbGV4LVBEUF9QV0Q=",
+ "ClientAuth": "Basic user",
+ "Content-Type": "application/json",
+ "Environment": "TEST",
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "ONAPComponent": "policy_handler",
+ "ONAPInstance": "*",
+ "ONAPName": "DCAE",
+ "action": "configure",
+ "resource": {
+ "policy-id": [
+ "test_scope_prefix.pdp_decision_Lorem",
+ "test_scope_prefix.pdp_decision_amet",
+ "test_scope_prefix.pdp_decision_ametist",
+ "test_scope_prefix.pdp_decision_consectetur",
+ "test_scope_prefix.pdp_decision_dolor",
+ "test_scope_prefix.pdp_decision_ipsum",
+ "test_scope_prefix.pdp_decision_sit"
+ ]
+ }
+ },
+ "method": "post",
+ "params": null,
+ "uri": "https://unit-test-pdp-server:8081000/decision/v1/"
+ },
+ "res": {
+ "policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_amet": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_amet",
+ "policy-id": "test_scope_prefix.pdp_decision_amet",
+ "policy-version": "5.5.5"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 4,
+ "policy_updated_to_ver": 5,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_amet"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "properties": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "X-ECOMP-RequestID": "*",
+ "X-ONAP-RequestID": "*"
+ },
+ "json": {
+ "catch_up": true,
+ "latest_policies": {
+ "test_scope_prefix.pdp_decision_Lorem": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 0,
+ "policy_updated_to_ver": 1,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_Lorem",
+ "policy-id": "test_scope_prefix.pdp_decision_Lorem",
+ "policy-version": "1.1.1"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_Lorem.1-1-1.xml",
+ "policyVersion": "1.1.1",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_Lorem"
+ },
+ "test_scope_prefix.pdp_decision_ametist": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 6,
+ "policy_updated_to_ver": 7,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ametist",
+ "policy-id": "test_scope_prefix.pdp_decision_ametist",
+ "policy-version": "7.7.7"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ametist.7-7-7.xml",
+ "policyVersion": "7.7.7",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ametist"
+ },
+ "test_scope_prefix.pdp_decision_consectetur": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 5,
+ "policy_updated_to_ver": 6,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_consectetur",
+ "policy-id": "test_scope_prefix.pdp_decision_consectetur",
+ "policy-version": "6.6.6"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_consectetur.6-6-6.xml",
+ "policyVersion": "6.6.6",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_consectetur"
+ },
+ "test_scope_prefix.pdp_decision_dolor": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 2,
+ "policy_updated_to_ver": 3,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_dolor",
+ "policy-id": "test_scope_prefix.pdp_decision_dolor",
+ "policy-version": "3.3.3"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_dolor.3-3-3.xml",
+ "policyVersion": "3.3.3",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_dolor"
+ },
+ "test_scope_prefix.pdp_decision_ipsum": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 1,
+ "policy_updated_to_ver": 2,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_ipsum",
+ "policy-id": "test_scope_prefix.pdp_decision_ipsum",
+ "policy-version": "2.2.2"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_ipsum.2-2-2.xml",
+ "policyVersion": "2.2.2",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_ipsum"
+ },
+ "test_scope_prefix.pdp_decision_sit": {
+ "policy_body": {
+ "config": {
+ "policy_hello": "world!",
+ "policy_updated_from_ver": 3,
+ "policy_updated_to_ver": 4,
+ "updated_policy_id": "test_scope_prefix.pdp_decision_sit"
+ },
+ "metadata": {
+ "description": "description for test_scope_prefix.pdp_decision_sit",
+ "policy-id": "test_scope_prefix.pdp_decision_sit",
+ "policy-version": "4.4.4"
+ },
+ "policyName": "test_scope_prefix.pdp_decision_sit.4-4-4.xml",
+ "policyVersion": "4.4.4",
+ "type": "unit.test.type.policies",
+ "version": "1.0.0"
+ },
+ "policy_id": "test_scope_prefix.pdp_decision_sit"
+ }
+ },
+ "policy_filter_matches": {},
+ "removed_policies": {}
+ },
+ "method": "put",
+ "params": {
+ "cfy_tenant_name": "default_tenant"
+ },
+ "uri": "http://unit-test-deployment_handler:8188000/policy"
+ },
+ "res": {
+ "server_instance_uuid": "e17fc584-7b06-4777-81c5-5da4337d6d16"
+ },
+ "status_code": 200
+ },
+ {
+ "request": {
+ "headers": {
+ "Authorization": "Basic YWxleC1ETUFBUF9NUl9VU0VSOmFsZXgtRE1BQVBfTVJfUFdE",
+ "Content-Type": "application/json",
+ "X-ONAP-RequestID": "*",
+ "X-ECOMP-RequestID": "*"
+ },
+ "json": null,
+ "method": "get",
+ "params": {
+ "timeout": 15000
+ },
+ "uri": "https://unit-test-dmaap-mr:280800000/events/unit-test-topicname/unit-test-consumegroup/unit-test-consumerid"
+ },
+ "res": [],
+ "status_code": 200
+ }
+ ]
+} \ No newline at end of file