diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2020-08-20 09:15:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-20 09:15:15 +0000 |
commit | 8673ca75e16353d8f4bc352e9b45c0f6c141da44 (patch) | |
tree | cdc958d895539922ac3c7cc071e05c5d473f5db8 /tests/policy/xacml-pdp | |
parent | 593176002156698f7c9e080594d53749bf91994d (diff) | |
parent | bd5f1dc0e617f25ce38ae0723710c43619ec6fd8 (diff) |
Merge "Update to new tcagen2 policy type"
Diffstat (limited to 'tests/policy/xacml-pdp')
-rw-r--r-- | tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json | 4 | ||||
-rw-r--r-- | tests/policy/xacml-pdp/xacml-pdp-test.robot | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json b/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json index 3003d9a8..8ec03fe5 100644 --- a/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json +++ b/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json @@ -4,14 +4,14 @@ "policies": [ { "onap.restart.tca": { - "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "type": "onap.policies.monitoring.tcagen2", "version": "1.0.0", "type_version": "1.0.0", "metadata": { "policy-id": "onap.restart.tca" }, "properties": { - "tca_policy": { + "tca.policy": { "domain": "measurementsForVfScaling", "metricsPerEventName": [ { diff --git a/tests/policy/xacml-pdp/xacml-pdp-test.robot b/tests/policy/xacml-pdp/xacml-pdp-test.robot index 6e2fa008..150c97e6 100644 --- a/tests/policy/xacml-pdp/xacml-pdp-test.robot +++ b/tests/policy/xacml-pdp/xacml-pdp-test.robot @@ -52,7 +52,7 @@ CreateMonitorPolicy Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json - ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies data=${postjson} headers=${headers} + ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/1.0.0/policies data=${postjson} headers=${headers} Log Received response from policy4 ${resp.text} ${postjsonobject} To Json ${postjson} Should Be Equal As Strings ${resp.status_code} 200 |