d822ea539995d60ca1c1508f51adcb70ce477dd9
[integration/test.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 PROMPT = '>'
14 CONTAINER = 'default'
15 USER = 'admin'
16 PWD = 'admin'
17 AUTH = [u'admin', u'admin']
18 SCOPE = 'sdn'
19 HEADERS = {'Content-Type': 'application/json'}
20 HEADERS_XML = {'Content-Type': 'application/xml'}
21 ACCEPT_XML = {'Accept': 'application/xml'}
22 ODL_CONTROLLER_SESSION = None
23 TOPO_TREE_LEVEL = 2
24 TOPO_TREE_DEPTH = 3
25 TOPO_TREE_FANOUT = 2
26
27 # KARAF Varaiable
28 KARAF_SHELL_PORT = '8101'
29 KARAF_PROMPT = 'opendaylight-user'
30 KARAF_USER = 'karaf'
31 KARAF_PASSWORD = 'karaf'
32
33 # VM Environment Variables
34 LINUX_PROMPT = '>'
35
36 # VTN Coordinator Variables
37 VTNC = '127.0.0.1'
38 VTNCPORT = '8083'
39 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
40 VTNC_HEADERS = {'Content-Type': 'application/json', 'username': 'admin', 'password': 'adminpass'}
41
42 VTNWEBAPI = '/vtn-webapi'
43 # controllers URL
44 CTRLS_CREATE = 'controllers.json'
45 CTRLS = 'controllers'
46 SW = 'switches'
47
48 # vtn URL
49 VTNS_CREATE = 'vtns.json'
50 VTNS = 'vtns'
51
52 # vbridge URL
53 VBRS_CREATE = 'vbridges.json'
54 VBRS = 'vbridges'
55
56 # interfaces URL
57 VBRIFS_CREATE = 'interfaces.json'
58 VBRIFS = 'interfaces'
59
60 # portmap URL
61 PORTMAP_CREATE = 'portmap.json'
62
63 # vlanmap URL
64 VLANMAP_CREATE = 'vlanmaps.json'
65
66 # ports URL
67 PORTS = 'ports/detail.json'
68
69 # nodes
70 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
71
72 # TOKEN
73 AUTH_TOKEN_API = '/oauth2/token'
74 REVOKE_TOKEN_API = '/oauth2/revoke'