aboutsummaryrefslogtreecommitdiffstats
path: root/csit/api/tests/api-test.robot
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2022-08-17 19:20:27 -0500
committerjhh <jorge.hernandez-herrero@att.com>2022-09-22 18:37:48 -0500
commit9f9719efe369b856118e0f3496ccaa87ba863e58 (patch)
tree1599ab4e537c0a6c497c68dbce7c480bb00efb6b /csit/api/tests/api-test.robot
parent16b4c43e304b53b0fcfa7ee40247fb88c1ab27ac (diff)
Support onap..tcagen2 v2.0.0 and mysql 8.x
Issue-ID: POLICY-4317 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Idf1b05c11edd061cdd6f52e5051b7a6a0fd1884e Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'csit/api/tests/api-test.robot')
-rw-r--r--csit/api/tests/api-test.robot17
1 files changed, 13 insertions, 4 deletions
diff --git a/csit/api/tests/api-test.robot b/csit/api/tests/api-test.robot
index 4eb48888..d9ca2a97 100644
--- a/csit/api/tests/api-test.robot
+++ b/csit/api/tests/api-test.robot
@@ -28,8 +28,12 @@ CreateTCAPolicyTypeV1
CreatePolicyType /policy/api/v1/policytypes 406 onap.policy.monitoring.tcagen2.v1.json null null
CreateTCAPolicyTypeV2
- [Documentation] Create a policy type named 'onap.policies.monitoring.tcagen2' and version '2.0.0'
- CreatePolicyType /policy/api/v1/policytypes 200 onap.policy.monitoring.tcagen2.v2.json onap.policies.monitoring.tcagen2 2.0.0
+ [Documentation] Create an existing policy type with modification and keeping the same version should result in error.
+ CreatePolicyType /policy/api/v1/policytypes 406 onap.policy.monitoring.tcagen2.v2.json null null
+
+CreateTCAPolicyTypeV3
+ [Documentation] Create a policy type named 'onap.policies.monitoring.tcagen2' and version '3.0.0'
+ CreatePolicyType /policy/api/v1/policytypes 200 onap.policy.monitoring.tcagen2.v3.json onap.policies.monitoring.tcagen2 3.0.0
RetrieveMonitoringPolicyTypes
[Documentation] Retrieve all monitoring related policy types
@@ -102,6 +106,11 @@ DeleteSpecificPolicyTypeV2
DeleteReq /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/2.0.0 200
DeleteReq /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/2.0.0 404
+DeleteSpecificPolicyTypeV3
+ [Documentation] Delete a policy type named 'onap.policies.monitoring.tcagen2' and version '3.0.0'
+ DeleteReq /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/3.0.0 200
+ DeleteReq /policy/api/v1/policytypes/onap.policies.monitoring.tcagen2/versions/3.0.0 404
+
Metrics
[Documentation] Verify policy-api is exporting prometheus metrics
${auth}= PolicyAdminAuth
@@ -115,7 +124,7 @@ Metrics
Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies",} 1.0
Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="POST",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes",} 1.0
Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policy/api/v1/policies/{policyId}/versions/{policyVersion}",} 1.0
- Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}",} 2.0
+ Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}",} 3.0
Should Contain ${resp.text} http_server_requests_seconds_count{exception="None",method="DELETE",outcome="SUCCESS",status="200",uri="/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}",} 1.0
Should Contain ${resp.text} http_server_requests_seconds_sum
Should Contain ${resp.text} http_server_requests_seconds_max
@@ -176,4 +185,4 @@ FetchNodeTemplate
[Arguments] ${url} ${keyword}
[Documentation] Fetch the specific node template
${resp}= GetReq ${url}
- Dictionary Should Contain Value ${resp.json()[0]} ${keyword} \ No newline at end of file
+ Dictionary Should Contain Value ${resp.json()[0]} ${keyword}