diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2024-02-21 15:29:36 +0000 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2024-02-21 15:31:27 +0000 |
commit | 8361cb0e3663a610a46bc5ea8a0cc783ade26f89 (patch) | |
tree | 3a69b393e9eda3c7b66e0c446c2bab60f53ad523 /csit | |
parent | dd836dc2d2bd379fba19b395c912d32f1bc7ee38 (diff) |
Fix config files removing hibernate deprecated properties and
changing robot deprecated commands in test files
Issue-ID: POLICY-4929
Change-Id: I09147335700fdd2c27557b533ca4fb88967672a4
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit')
-rw-r--r-- | csit/resources/tests/api-test.robot | 4 | ||||
-rw-r--r-- | csit/resources/tests/common-library.robot | 14 | ||||
-rw-r--r-- | csit/resources/tests/drools-applications-test.robot | 6 | ||||
-rw-r--r-- | csit/resources/tests/pap-test.robot | 2 | ||||
-rw-r--r-- | csit/resources/tests/xacml-pdp-test.robot | 4 |
5 files changed, 15 insertions, 15 deletions
diff --git a/csit/resources/tests/api-test.robot b/csit/resources/tests/api-test.robot index 9bb2254e..bce58231 100644 --- a/csit/resources/tests/api-test.robot +++ b/csit/resources/tests/api-test.robot @@ -131,13 +131,13 @@ GetReq [Arguments] ${url} ${auth}= PolicyAdminAuth ${resp}= PerformGetRequest ${POLICY_API_IP} ${url} 200 null ${auth} - [return] ${resp} + RETURN ${resp} DeleteReq [Arguments] ${url} ${expectedstatus} ${auth}= PolicyAdminAuth ${resp}= PerformDeleteRequest ${POLICY_API_IP} ${url} ${expectedstatus} ${auth} - [return] ${resp} + RETURN ${resp} CreatePolicyType [Arguments] ${url} ${expectedstatus} ${jsonfile} ${policytypename} ${policytypeversion} diff --git a/csit/resources/tests/common-library.robot b/csit/resources/tests/common-library.robot index bc140897..18bfab99 100644 --- a/csit/resources/tests/common-library.robot +++ b/csit/resources/tests/common-library.robot @@ -8,7 +8,7 @@ Library json PolicyAdminAuth ${policyadmin}= Create list policyadmin zb!XztG34 - [return] ${policyadmin} + RETURN ${policyadmin} PerformPostRequest [Arguments] ${domain} ${url} ${expectedstatus} ${postjson} ${params} ${auth} @@ -17,7 +17,7 @@ PerformPostRequest ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= POST On Session policy ${url} data=${postjson} params=${params} headers=${headers} expected_status=${expectedstatus} Log Received response from policy ${resp.text} - [return] ${resp} + RETURN ${resp} PerformPutRequest [Arguments] ${domain} ${url} ${expectedstatus} ${params} ${auth} @@ -26,7 +26,7 @@ PerformPutRequest ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= PUT On Session policy ${url} params=${params} headers=${headers} expected_status=${expectedstatus} Log Received response from policy ${resp.text} - [return] ${resp} + RETURN ${resp} PerformGetRequest [Arguments] ${domain} ${url} ${expectedstatus} ${params} ${auth} @@ -35,7 +35,7 @@ PerformGetRequest ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= GET On Session policy ${url} params=${params} headers=${headers} expected_status=${expectedstatus} Log Received response from policy ${resp.text} - [return] ${resp} + RETURN ${resp} PerformDeleteRequest [Arguments] ${domain} ${url} ${expectedstatus} ${auth} @@ -113,7 +113,7 @@ GetMetrics ${session}= Create Session policy http://${domain} auth=${auth} ${resp}= GET On Session policy ${context_path}metrics expected_status=200 Log Received response from policy ${resp.text} - [return] ${resp} + RETURN ${resp} QueryPrometheus [Arguments] ${query} @@ -121,7 +121,7 @@ QueryPrometheus ${resp}= GET http://${PROMETHEUS_IP}/api/v1/query ${params} Status Should Be OK Log Received response from Prometheus ${resp.text} - [return] ${resp.json()} + RETURN ${resp.json()} ValidateResponseTime [Arguments] ${job} ${uri} ${method} ${timeLimit} @@ -135,7 +135,7 @@ CheckKafkaTopic [Arguments] ${topic} ${expected_status} ${resp}= Run Process ${CURDIR}/kafka_consumer.py ${topic} 60 ${expected_status} ${KAFKA_IP} Should Contain ${resp.stdout} ${expected_status} - [Return] ${resp.stdout} + RETURN ${resp.stdout} GetKafkaTopic [Arguments] ${topic} diff --git a/csit/resources/tests/drools-applications-test.robot b/csit/resources/tests/drools-applications-test.robot index a43f1422..d9ade3b7 100644 --- a/csit/resources/tests/drools-applications-test.robot +++ b/csit/resources/tests/drools-applications-test.robot @@ -154,7 +154,7 @@ PeformGetRequest ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= GET On Session policy ${url} headers=${headers} expected_status=${expectedstatus} Log Received response from policy ${resp.text} - [return] ${resp} + RETURN ${resp} PerformPostRequest [Arguments] ${url} ${params} ${domain} ${jsonfile} ${filepath} ${contenttype} ${expectedstatus} @@ -165,11 +165,11 @@ PerformPostRequest ${headers}= Create Dictionary Accept=application/${contenttype} Content-Type=application/${contenttype} ${resp}= POST On Session policy ${url} params=${params} data=${postjson} headers=${headers} expected_status=${expectedstatus} Log Received response from policy ${resp.text} - [return] ${resp} + RETURN ${resp} OnSet [Arguments] ${file} ${data}= Get File ${file} ${resp}= Run Process ${CURDIR}/kafka_producer.py unauthenticated.dcae_cl_output ${data} ${KAFKA_IP} Log Response from kafka ${resp.stdout} - [Return] ${resp.stdout} + RETURN ${resp.stdout} diff --git a/csit/resources/tests/pap-test.robot b/csit/resources/tests/pap-test.robot index 74d299a5..21a37d3b 100644 --- a/csit/resources/tests/pap-test.robot +++ b/csit/resources/tests/pap-test.robot @@ -10,7 +10,7 @@ GetReq [Arguments] ${url} ${auth}= PolicyAdminAuth ${resp}= PerformGetRequest ${POLICY_PAP_IP} ${url} 200 null ${auth} - [return] ${resp} + RETURN ${resp} ValidateResponseTimeForPap [Arguments] ${uri} ${method} diff --git a/csit/resources/tests/xacml-pdp-test.robot b/csit/resources/tests/xacml-pdp-test.robot index e500a04c..cddecab9 100644 --- a/csit/resources/tests/xacml-pdp-test.robot +++ b/csit/resources/tests/xacml-pdp-test.robot @@ -113,10 +113,10 @@ PdpxGetReq [Arguments] ${url} ${hcauth}= PolicyAdminAuth ${resp}= PerformGetRequest ${POLICY_PDPX_IP} ${url} 200 null ${hcauth} - [return] ${resp} + RETURN ${resp} DecisionPostReq [Arguments] ${postjson} ${abbr} ${hcauth}= PolicyAdminAuth ${resp}= PerformPostRequest ${POLICY_PDPX_IP} /policy/pdpx/v1/decision 200 ${postjson} ${abbr} ${hcauth} - [return] ${resp} + RETURN ${resp} |