Add a new function into Common to compare two XML files
[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 import collections
7
8 # Global variables
9 CONTROLLER = '10.125.136.52'
10 PORT = '8080'
11 PREFIX = 'http://' + CONTROLLER + ':' + PORT
12 CONTAINER = 'default'
13 USER = 'admin'
14 PWD = 'admin'
15 AUTH = [u'admin',u'admin']
16 HEADERS={'Content-Type': 'application/json'}
17 HEADERS_XML={'Content-Type': 'application/xml'}
18 ACCEPT_XML={'Accept': 'application/xml'}
19 ODL_CONTROLLER_SESSION=None
20 TOPO_TREE_LEVEL=2
21
22 # VTN Coordinator Variables
23 VTNC = '127.0.0.1'
24 VTNCPORT = '8083'
25 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
26 VTNC_HEADERS={'Content-Type': 'application/json', 'username' : 'admin' , 'password' : 'adminpass'}
27
28 VTNWEBAPI='/vtn-webapi'
29 #controllers URL
30 CTRLS_CREATE='controllers.json'
31 CTRLS='controllers'
32 SW='switches'
33
34 #vtn URL
35 VTNS_CREATE='vtns.json'
36 VTNS='vtns'
37
38 #vbridge URL
39 VBRS_CREATE='vbridges.json'
40 VBRS='vbridges'
41
42 #interfaces URL
43 VBRIFS_CREATE='interfaces.json'
44 VBRIFS='interfaces'
45
46 #portmap URL
47 PORTMAP_CREATE='portmap.json'
48
49 #vlanmap URL
50 VLANMAP_CREATE='vlanmaps.json'
51
52 #ports URL
53 PORTS='ports/detail.json'