Checking that CBS is registered in consul 16/87016/2
authorgrabinsk <maciej.grabinski@nokia.com>
Mon, 6 May 2019 09:26:25 +0000 (11:26 +0200)
committergrabinsk <maciej.grabinski@nokia.com>
Mon, 6 May 2019 11:13:21 +0000 (13:13 +0200)
Change-Id: I9bd1e275d7212aab09a43a654a2f10af389c28d6
Issue-ID: INT-989
Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
tests/dcaegen2/prh-testcases/resources/prh_library.robot

index 74c3c5d..0727169 100644 (file)
@@ -1,5 +1,6 @@
 *** Settings ***
 Library           RequestsLibrary
+Library           Collections
 Library           PrhLibrary.py
 Resource          ../../../common.robot
 
@@ -54,9 +55,10 @@ Verify AAI not responding is logged
     Ensure Container Is Running   aai_simulator
 
 Check CBS ready
-    ${resp}=    Get Request    ${consul_setup_session}    /v1/catalog/service/cbs
+    ${resp}=    Get Request    ${consul_setup_session}    /v1/catalog/services
     Should Be Equal As Strings    ${resp.status_code}    200
-    Log    CBS ${resp.content}
+    Log    Service Catalog response: ${resp.content}
+    Dictionary Should Contain Key    ${resp.json()}    cbs    |Consul service catalog should contain CBS entry
 
 Check recorded PNF_READY notification
     [Arguments]    ${expected_event_pnf_ready_in_dpaap}