Merge "Fix CSIT for PMSH"
[integration/csit.git] / tests / policy / drools-applications / drools-applications-test.robot
index 2104566..2ab0581 100644 (file)
@@ -35,10 +35,10 @@ Controller
     Log    Creating session https://${DROOLS_IP}:9696
     ${session}=    Create Session      policy  https://${DROOLS_IP}:9696   auth=${auth}
     ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json
-    ${resp}=   Get Request     policy  /policy/pdp/engine/controllers/frankfurt/drools/facts     headers=${headers}
+    ${resp}=   Get Request     policy  /policy/pdp/engine/controllers/usecases/drools/facts     headers=${headers}
     Log    Received response from policy ${resp.text}
     Should Be Equal As Strings    ${resp.status_code}     200
-    Should Be Equal As Strings    ${resp.json()['frankfurt']}  0
+    Should Be Equal As Strings    ${resp.json()['usecases']}  0
 
 MakeTopics
     [Documentation]    Creates the Policy topics
@@ -122,9 +122,9 @@ DeployXacmlPolicies
     ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json
     ${resp}=   Post Request     policy  /policy/pap/v1/pdps/deployments/batch    data=${postjson}     headers=${headers}
     Log    Received response from pap ${resp.text}
-    Should Be Equal As Strings    ${resp.status_code}     200
+    Should Be Equal As Strings    ${resp.status_code}     202
     ${result}=     Run Process        ${SCR2}/wait_topic.sh     POLICY-PDP-PAP
-    ...            responseTo    xacml    ACTIVE
+    ...            responseTo    xacml    ACTIVE    restart
     Log    Received status ${result.stdout}
     Should Be Equal As Integers        ${result.rc}    0
     Should Contain    ${result.stdout}    onap.restart.tca
@@ -140,7 +140,7 @@ DeployDroolsPolicies
     ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json
     ${resp}=   Post Request     policy  /policy/pap/v1/pdps/deployments/batch    data=${postjson}     headers=${headers}
     Log    Received response from pap ${resp.text}
-    Should Be Equal As Strings    ${resp.status_code}     200
+    Should Be Equal As Strings    ${resp.status_code}     202
     ${result}=     Run Process        ${SCR2}/wait_topic.sh     POLICY-PDP-PAP
     ...            responseTo    drools    ACTIVE
     Log    Received status ${result.stdout}