2 Library OperatingSystem
3 Library RequestsLibrary
4 Library HttpLibrary.HTTP
9 ${MESSAGE} Hello, world!
14 Should Be Equal ${MESSAGE} Hello, world!
17 [Documentation] Check if /tmp exists
22 [Documentation] Check if www.onap.org can be reached
23 Create Session openo http://www.onap.org
27 [Documentation] Check ${DBC_URI}/info SSL endpoint
28 Create Session heartbeat https://${DMAAPBC_IP}:8443
29 CheckUrl heartbeat ${DBC_URI}/info 204
32 [Documentation] Check ${DBC_URI}/dmaap SSL endpoint
33 Create Session heartbeat https://${DMAAPBC_IP}:8443
34 CheckStatus heartbeat ${DBC_URI}/dmaap "VALID"
36 HTTPS Dmaap dcaeLocations Test
37 [Documentation] Check ${DBC_URI}/dcaeLocations SSL endpoint
38 Create Session heartbeat https://${DMAAPBC_IP}:8443
39 CheckStatus0 heartbeat ${DBC_URI}/dcaeLocations "VALID"
41 HTTPS Dmaap mr_clusters Test
42 [Documentation] Check ${DBC_URI}/mr_clusters SSL endpoint
43 Create Session heartbeat https://${DMAAPBC_IP}:8443
44 CheckStatus0 heartbeat ${DBC_URI}/mr_clusters "VALID"
50 Directory Should Exist ${path}
53 [Arguments] ${session} ${path} ${expect}
54 ${resp}= Get Request ${session} ${path}
55 Should Be Equal As Integers ${resp.status_code} ${expect}
58 [Arguments] ${session} ${path} ${expect}
59 ${resp}= Get Request ${session} ${path}
61 ${val}= Get Json value ${resp.content} /status
63 should be equal as strings ${val} ${expect}
66 [Arguments] ${session} ${path} ${expect}
67 ${resp}= Get Request ${session} ${path}
70 # silliness to strip off the brackets returned for a List to get a Dict
71 ${t1}= Remove String ${resp.content} [
72 ${dict}= Remove String ${t1} ]
74 ${val}= Get Json value ${dict} /status
76 should be equal as strings ${val} ${expect}