Fix config files removing hibernate deprecated properties and 38/137338/1
authoradheli.tavares <adheli.tavares@est.tech>
Wed, 21 Feb 2024 15:29:36 +0000 (15:29 +0000)
committeradheli.tavares <adheli.tavares@est.tech>
Wed, 21 Feb 2024 15:31:27 +0000 (15:31 +0000)
changing robot deprecated commands in test files

Issue-ID: POLICY-4929
Change-Id: I09147335700fdd2c27557b533ca4fb88967672a4
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
compose/config/api/apiParameters.yaml
compose/config/api/apiParametersPostgres.yaml
compose/config/clamp/AcRuntimeParameters.yaml
compose/config/pap/papParameters.yaml
compose/config/pap/papParametersPostgres.yaml
csit/resources/tests/api-test.robot
csit/resources/tests/common-library.robot
csit/resources/tests/drools-applications-test.robot
csit/resources/tests/pap-test.robot
csit/resources/tests/xacml-pdp-test.robot

index 5758068..51e7f36 100644 (file)
@@ -17,9 +17,6 @@ spring:
     username: policy_user
     password: policy_user
   jpa:
-    properties:
-      hibernate:
-        dialect: org.hibernate.dialect.MariaDB103Dialect
     hibernate:
       ddl-auto: none
       naming:
index 5163507..c0b23e9 100644 (file)
@@ -17,9 +17,6 @@ spring:
     username: policy_user
     password: policy_user
   jpa:
-    properties:
-      hibernate:
-        dialect: org.hibernate.dialect.PostgreSQLDialect
     hibernate:
       ddl-auto: none
       naming:
index b800e4b..262f10c 100644 (file)
@@ -24,7 +24,6 @@ spring:
         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
     properties:
       hibernate:
-        dialect: org.hibernate.dialect.MariaDB103Dialect
         format_sql: true
 
 security:
index 1f42a57..51aaec3 100644 (file)
@@ -12,9 +12,6 @@ spring:
     username: policy_user
     password: policy_user
   jpa:
-    properties:
-      hibernate:
-        dialect: org.hibernate.dialect.MariaDB103Dialect
     hibernate:
       ddl-auto: none
       naming:
index 15e77f1..30ef775 100644 (file)
@@ -12,9 +12,6 @@ spring:
     username: policy_user
     password: policy_user
   jpa:
-    properties:
-      hibernate:
-        dialect: org.hibernate.dialect.PostgreSQLDialect
     hibernate:
       ddl-auto: none
       naming:
index 9bb2254..bce5823 100644 (file)
@@ -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}
index bc14089..18bfab9 100644 (file)
@@ -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}
index a43f142..d9ade3b 100644 (file)
@@ -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}
index 74d299a..21a37d3 100644 (file)
@@ -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}
index e500a04..cddecab 100644 (file)
@@ -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}