Step 1: Move vm scripts to the right place
[integration/test.git] / csit / suites / openstack / neutron / __init__.robot
1 *** Settings ***
2 Documentation     Test suite for Neutron Plugin
3 Library           SSHLibrary
4 Library           Collections
5 Library           RequestsLibrary
6 Library           ../../../libraries/Common.py
7 Variables         ../../../variables/Variables.py
8
9 *** Variables ***
10 ${UserInfo}       {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}
11
12 *** Keywords ***
13 Start Suite
14     Create Session    KeyStoneSession    http://${OPENSTACK}:5000    headers=${HEADERS}
15     ${resp}    post    KeyStoneSession    /v2.0/tokens    ${UserInfo}
16     Should Be Equal As Strings    ${resp.status_code}    200
17     ${result}    To JSON    ${resp.content}
18     ${result}    Get From Dictionary    ${result}    access
19     ${result}    Get From Dictionary    ${result}    token
20     ${TOKEN}    Get From Dictionary    ${result}    id
21     ${X-AUTH}    Create Dictionary    X-Auth-Token=${TOKEN}    Content-Type=application/json
22     Set Global Variable    ${X-AUTH}
23
24 Stop Suite
25     Delete All Sessions