summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ODL/CI/suites/openstack/neutron/__init__.txt
blob: 4112b32ceca6e1ecaeba10d4443bab30a5aa0593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
*** Settings ***
Documentation     Test suite for Neutron Plugin
Suite Setup       Start Suite
Suite Teardown    Stop Suite
Library     SSHLibrary
Library     Collections
Library     ../../../libraries/RequestsLibrary.py
Library     ../../../libraries/Common.py
Variables   ../../../variables/Variables.py

*** Variables ***
${UserInfo}=  {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "octopus"}}}

** Keywords ***
Start Suite
    Create Session  KeyStoneSession    http://${OPENSTACK}:5000      headers=${HEADERS}
    ${resp}      post    KeyStoneSession     /v2.0/tokens    ${UserInfo}
    Should Be Equal As Strings    ${resp.status_code}     200
    ${result}	To JSON   ${resp.content}
    ${result}   Get From Dictionary   ${result}  access
    ${result}   Get From Dictionary   ${result}  token
    ${TOKEN}	Get From Dictionary   ${result}  id
    ${X-AUTH}	Create Dictionary     X-Auth-Token 	${TOKEN}    Content-Type     application/json      
    Set Global Variable   ${X-AUTH}
Stop Suite
    Delete All Sessions