summaryrefslogtreecommitdiffstats
path: root/test/csit/tests/vvp/sanity/test1.robot
blob: 27612fdb8e4235448019c3e2ee8e573c3f62a4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
*** Settings ***
Library           Collections
Library           OperatingSystem
Library           RequestsLibrary
Library           json

# http://localhost:9090/vvp/v1/engmgr/vendors
# vvp-engagementmgr

*** Test Cases ***
Get Requests health check ok
    [Tags]    get
    CreateSession    vvp-engagementmgr    http://localhost:9090
    ${headers}=    Create Dictionary    Accept=application/json    Content-Type=application/json
    ${resp}=    Get Request    vvp-engagementmgr    /vvp/v1/engmgr/vendors    headers=&{headers}
    Should Be Equal As Strings    ${resp.status_code}    200
    @{ITEMS}=    Copy List    ${resp.json()}
    : FOR    ${ELEMENT}    IN    @{ITEMS}
    \    Log    ${ELEMENT['uuid']} ${ELEMENT['name']}