2 Documentation Test suite for Neutron Plugin
3 Suite Setup Start Suite
4 Suite Teardown Stop Suite
7 Library RequestsLibrary
8 Library ../../../libraries/Common.py
9 Resource ../../../variables/Variables.robot
12 ${OSTENANTNAME} "admin"
15 ${OSUSERDOMAINNAME} "Default"
16 ${OSPROJECTDOMAINNAME} "Default"
17 ${PASSWORD} {"user":{"name":${OSUSERNAME},"domain":{"name": ${OSUSERDOMAINNAME}},"password":${OSPASSWORD}}}
18 ${SCOPE} {"project":{"name":${OSTENANTNAME},"domain":{"name": ${OSPROJECTDOMAINNAME}}}}
19 ${UserInfo} {"auth":{"identity":{"methods":["password"],"password":${PASSWORD}},"scope":${SCOPE}}}
20 ${KEYSTONEURL} http://${KEYSTONE}:5000
24 Create Session KeyStoneSession ${KEYSTONEURL} headers=${HEADERS}
25 ${resp} post KeyStoneSession /v3/auth/tokens ${UserInfo}
26 Should Be Equal As Strings ${resp.status_code} 201
27 ${TOKEN} Get From Dictionary ${resp.headers} X-Subject-Token
28 ${X-AUTH} Create Dictionary X-Auth-Token=${TOKEN} Content-Type=application/json
29 ${X-AUTH-NOCONTENT} Create Dictionary X-Auth-Token=${TOKEN}
30 Set Global Variable ${X-AUTH}
31 Set Global Variable ${X-AUTH-NOCONTENT}