2 Documentation Test suite for Neutron Plugin
5 Library RequestsLibrary
6 Library ../../../libraries/Common.py
7 Variables ../../../variables/Variables.py
10 ${UserInfo} {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}
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}