use qa_config.py instead of config.py
authorTony Mack <tmack@cs.princeton.edu>
Mon, 31 Mar 2008 16:46:05 +0000 (16:46 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Mon, 31 Mar 2008 16:46:05 +0000 (16:46 +0000)
qaapi/runtests.py
qaapi/system-test.py

index 1890307..9ce212f 100755 (executable)
@@ -19,9 +19,9 @@ def main(args):
         config = Config(args[0])
     else:
         config = Config()
-    config.load("qa/config.py")
+    config.load("qa/qa_config.py")
 
-    plc_configure(config)("testPLC")
+    plc_configure(config)("TestPLC")
     plc_start(config)()
 
     # Add test site, node, person and slice data
index d055c57..5adf26f 100755 (executable)
@@ -37,16 +37,21 @@ VSERVER_PATH = VSERVER_HOME +os.sep+ TEST_VSERVER
 MAILTO = 'tmack@cs.princeton.edu'
 PLCNAME = 'TestPLC'
 
+# Specify a range of available ports to use. These ports must be 
+# allowed by the firewall
+HTTP_PORT_MIN = 51000
+HTTP_PORT_MAX = 51200
 
 # Setup configuration 
 config = Config()
-config.load("qa/config.py")    
+config.load("qa/qa_config.py") 
 config.plcs[PLCNAME]['vserver'] = TEST_VSERVER
 config.plcs[PLCNAME]['ip'] = config.ip
 config.plcs[PLCNAME]['api_path'] = ""
-config.plcs[PLCNAME]['port'] = str(randint(49152, 65535))
+config.plcs[PLCNAME]['port'] = str(randint(HTTP_PORT_MIN, HTTP_PORT_MAX))
 config.plcs[PLCNAME].config.update_api(config.plcs[PLCNAME])
 
+
 # create a vserer for this system test
 vserver_create(config)(TEST_VSERVER, FCDISTRO, MAILTO)