Merge "Fix pep8 violations in base/run.py"
[integration.git] / test / csit / variables / Variables.py
1 """
2 Library for the robot based system test tool of the OpenDaylight project.
3 Authors: Baohua Yang@IBM, Denghui Huang@IBM
4 Updated: 2013-11-14
5 """
6
7 # Global variables
8 CONTROLLER = '127.0.0.1'
9 PORT = '8080'
10 RESTPORT = '8282'
11 RESTCONFPORT = '8181'
12 PREFIX = 'http://' + CONTROLLER + ':' + PORT
13 CONTAINER = 'default'
14 USER = 'admin'
15 PWD = 'admin'
16 AUTH = [u'admin', u'admin']
17 SCOPE = 'sdn'
18 HEADERS = {'Content-Type': 'application/json'}
19 HEADERS_XML = {'Content-Type': 'application/xml'}
20 ACCEPT_XML = {'Accept': 'application/xml'}
21 ODL_CONTROLLER_SESSION = None
22 TOPO_TREE_LEVEL = 2
23 TOPO_TREE_DEPTH = 3
24 TOPO_TREE_FANOUT = 2
25 # VTN Coordinator Variables
26 VTNC = '127.0.0.1'
27 VTNCPORT = '8083'
28 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
29 VTNC_HEADERS = {'Content-Type': 'application/json', 'username': 'admin', 'password': 'adminpass'}
30
31 VTNWEBAPI = '/vtn-webapi'
32 # controllers URL
33 CTRLS_CREATE = 'controllers.json'
34 CTRLS = 'controllers'
35 SW = 'switches'
36
37 # vtn URL
38 VTNS_CREATE = 'vtns.json'
39 VTNS = 'vtns'
40
41 # vbridge URL
42 VBRS_CREATE = 'vbridges.json'
43 VBRS = 'vbridges'
44
45 # interfaces URL
46 VBRIFS_CREATE = 'interfaces.json'
47 VBRIFS = 'interfaces'
48
49 # portmap URL
50 PORTMAP_CREATE = 'portmap.json'
51
52 # vlanmap URL
53 VLANMAP_CREATE = 'vlanmaps.json'
54
55 # ports URL
56 PORTS = 'ports/detail.json'
57
58 # nodes
59 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
60
61 # TOKEN
62 AUTH_TOKEN_API = '/oauth2/token'
63 REVOKE_TOKEN_API = '/oauth2/revoke'