2 Library OperatingSystem
3 Library RequestsLibrary
7 ${MESSAGE} {"ping": "ok"}
13 DKV Check Distributed KV Store API Docker Container
14 [Documentation] Checks if DKV docker container is running
15 ${rc} ${output}= Run and Return RC and Output docker ps
16 Log To Console *********************
17 Log To Console retrurn_code = ${rc}
18 Log To Console output = ${output}
19 Should Be Equal As Integers ${rc} 0
20 Should Contain ${output} nexus3.onap.org:10001/onap/music/distributed-kv-store
22 DKV LoadDefaultProperties
23 [Documentation] Loads default configuration files into Consul
24 Create Session dkv ${DKV_HOSTNAME}:${DKV_PORT}
25 &{headers}= Create Dictionary Content-Type=application/json Accept=application/json
26 ${resp}= Get Request dkv /v1/config/load-default headers=${headers}
27 Log To Console *********************
28 Log To Console response = ${resp}
29 Log To Console body = ${resp.text}
30 Should Be Equal As Integers ${resp.status_code} 200
32 DKV FetchDefaultProperties
33 [Documentation] Fetches all default keys from Consul
34 Create Session dkv ${DKV_HOSTNAME}:${DKV_PORT}
35 &{headers}= Create Dictionary Content-Type=application/json Accept=application/json
36 ${resp}= Get Request dkv /v1/getconfigs headers=${headers}
37 Log To Console *********************
38 Log To Console response = ${resp}
39 Log To Console body = ${resp.text}
40 Should Be Equal As Integers ${resp.status_code} 200
43 # [Documentation] Send a POST request to create a domain
44 # Create Session dkv ${DKV_HOSTNAME}:${DKV_PORT}
45 # ${data}= Get Binary File ${CURDIR}${/}data${/}register_domain.json
46 # &{headers}= Create Dictionary Content-Type=application/json Accept=application/json
47 # ${resp}= Post Request dkv v1/register data=${data} headers=${headers}
48 # Log To Console *********************
49 # Log To Console response = ${resp}
50 # Log To Console body = ${resp.text}
51 # Should Be Equal As Integers ${resp.status_code} 200