[ADMIN] Add Illia Halych in INFO.yaml
[integration/csit.git] / tests / music / music-distributed-kv-store-suite / music-distributed-kv-store-test.robot
1 *** Settings ***
2 Library       OperatingSystem
3 Library       RequestsLibrary
4 Library       json
5
6 *** Variables ***
7 ${MESSAGE}    {"ping": "ok"}
8
9 #global variables
10 ${generatedAID}
11
12 *** Test Cases ***
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
21
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
31
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
41
42 #DKV RegisterDomain
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
52
53 *** Keywords ***