New L2Switch suite to catch standing issues
[integration/test.git] / test / csit / variables / Variables.py
index 74f3a16e27338c523564075da80f70157a1d4faa..3e82ad969850764e2ac17cc57c3b4b54fc73d904 100644 (file)
@@ -3,51 +3,73 @@ Library for the robot based system test tool of the OpenDaylight project.
 Authors: Baohua Yang@IBM, Denghui Huang@IBM
 Updated: 2013-11-14
 """
-import collections
 
 # Global variables
 CONTROLLER = '127.0.0.1'
 PORT = '8080'
+RESTPORT = '8282'
+RESTCONFPORT = '8181'
 PREFIX = 'http://' + CONTROLLER + ':' + PORT
+PROMPT = '>'
 CONTAINER = 'default'
 USER = 'admin'
 PWD = 'admin'
-AUTH = [u'admin',u'admin']
-HEADERS={'Content-Type': 'application/json'}
-HEADERS_XML={'Content-Type': 'application/xml'}
-ACCEPT_XML={'Accept': 'application/xml'}
-ODL_CONTROLLER_SESSION=None
-TOPO_TREE_LEVEL=2
+AUTH = [u'admin', u'admin']
+SCOPE = 'sdn'
+HEADERS = {'Content-Type': 'application/json'}
+HEADERS_XML = {'Content-Type': 'application/xml'}
+ACCEPT_XML = {'Accept': 'application/xml'}
+ODL_CONTROLLER_SESSION = None
+TOPO_TREE_LEVEL = 2
+TOPO_TREE_DEPTH = 3
+TOPO_TREE_FANOUT = 2
+
+# KARAF Varaiable
+KARAF_SHELL_PORT = '8101'
+KARAF_PROMPT = 'opendaylight-user'
+KARAF_USER = 'karaf'
+KARAF_PASSWORD = 'karaf'
+
+# VM Environment Variables
+LINUX_PROMPT = '>'
 
 # VTN Coordinator Variables
 VTNC = '127.0.0.1'
 VTNCPORT = '8083'
 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
-VTNC_HEADERS={'Content-Type': 'application/json', 'username' : 'admin' , 'password' : 'adminpass'}
+VTNC_HEADERS = {'Content-Type': 'application/json', 'username': 'admin', 'password': 'adminpass'}
+
+VTNWEBAPI = '/vtn-webapi'
+# controllers URL
+CTRLS_CREATE = 'controllers.json'
+CTRLS = 'controllers'
+SW = 'switches'
+
+# vtn URL
+VTNS_CREATE = 'vtns.json'
+VTNS = 'vtns'
 
-VTNWEBAPI='/vtn-webapi'
-#controllers URL
-CTRLS_CREATE='controllers.json'
-CTRLS='controllers'
-SW='switches'
+# vbridge URL
+VBRS_CREATE = 'vbridges.json'
+VBRS = 'vbridges'
 
-#vtn URL
-VTNS_CREATE='vtns.json'
-VTNS='vtns'
+# interfaces URL
+VBRIFS_CREATE = 'interfaces.json'
+VBRIFS = 'interfaces'
 
-#vbridge URL
-VBRS_CREATE='vbridges.json'
-VBRS='vbridges'
+# portmap URL
+PORTMAP_CREATE = 'portmap.json'
 
-#interfaces URL
-VBRIFS_CREATE='interfaces.json'
-VBRIFS='interfaces'
+# vlanmap URL
+VLANMAP_CREATE = 'vlanmaps.json'
 
-#portmap URL
-PORTMAP_CREATE='portmap.json'
+# ports URL
+PORTS = 'ports/detail.json'
 
-#vlanmap URL
-VLANMAP_CREATE='vlanmaps.json'
+# Common APIs
+OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
+OPERATIONAL_TOPO_API = '/restconf/operational/network-topology:network-topology'
 
-#ports URL
-PORTS='ports/detail.json'
+# TOKEN
+AUTH_TOKEN_API = '/oauth2/token'
+REVOKE_TOKEN_API = '/oauth2/revoke'