diff options
author | 2024-01-16 12:21:26 +0000 | |
---|---|---|
committer | 2024-01-16 14:01:45 +0000 | |
commit | caa7adc30ed054d2a5cfea4a1b9a265d5cfb6785 (patch) | |
tree | a873dac6375e1f6e2cff6c443aa9835f75fbea33 /csit/resources/tests/apex-slas-10.robot | |
parent | f2e4da7e296548fb3980fd212e3a67dc83254e1d (diff) |
Remove Dmaap configurations from CSITs
Issue-ID: POLICY-4880
Change-Id: I4f973ef1f7a173eaf5f196d9991d67d584e235fe
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Diffstat (limited to 'csit/resources/tests/apex-slas-10.robot')
-rw-r--r-- | csit/resources/tests/apex-slas-10.robot | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/csit/resources/tests/apex-slas-10.robot b/csit/resources/tests/apex-slas-10.robot index 7639ce95..833bb837 100644 --- a/csit/resources/tests/apex-slas-10.robot +++ b/csit/resources/tests/apex-slas-10.robot @@ -25,14 +25,11 @@ ValidatePolicyExecutionAndEventRateLowComplexity CreateNodeTemplate /policy/api/v1/nodetemplates 200 ${postjson} 1 DeployPolicy Wait Until Keyword Succeeds 2 min 5 sec QueryPolicyStatus ${policyName} defaultGroup apex ${pdpName} onap.policies.native.Apex - GetTopic APEX-CL-MGT2 - Create Session apexSession http://${DMAAP_IP} max_retries=1 + GetKafkaTopic apex-cl-mgt2 ${data}= Get Binary File ${CURDIR}/data/VesEventForVnfPolicy.json - &{headers}= Create Dictionary Content-Type=application/json Accept=application/json ${eventStartTime}= Get Current Date - ${resp}= POST On Session apexSession /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT data=${data} headers=${headers} + ${resp}= Run Process ${CURDIR}/kafka_producer.py unauthenticated.dcae_policy_example_output ${data} ${eventEndTime}= Get Current Date - Should Be Equal As Strings ${resp.status_code} 200 ValidateEventExecution ${eventStartTime} ${eventEndTime} 100 ValidatePolicyExecutionAndEventRateHighComplexity @@ -58,14 +55,11 @@ ValidatePolicyExecutionAndEventRateModerateComplexity CreatePolicy /policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies 200 ${postjson} ${policyName} 1.0.0 DeployPolicy Wait Until Keyword Succeeds 2 min 5 sec QueryPolicyStatus ${policyName} defaultGroup apex ${pdpName} onap.policies.native.Apex - GetTopic APEX-CL-MGT - Create Session apexSession http://${DMAAP_IP} max_retries=1 + GetKafkaTopic apex-cl-mgt ${data}= Get Binary File ${CURDIR}/data/VesEventForPnfPolicy.json - &{headers}= Create Dictionary Content-Type=application/json Accept=application/json ${eventStartTime}= Get Current Date - ${resp}= POST On Session apexSession /events/unauthenticated.DCAE_CL_OUTPUT data=${data} headers=${headers} + ${resp}= Run Process ${CURDIR}/kafka_producer.py unauthenticated.dcae_cl_output ${data} ${eventEndTime}= Get Current Date - Should Be Equal As Strings ${resp.status_code} 200 ValidateEventExecution ${eventStartTime} ${eventEndTime} 10 WaitForPrometheusServer |