Allow HTTPEndpoint cases to set the port #

Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/8987fca2
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/8987fca2
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/8987fca2

Branch: refs/heads/master
Commit: 8987fca2d748ce534ac279347d43a7f7ed965a12
Parents: 015ef82
Author: Thomas Jackson <[email protected]>
Authored: Fri Jan 23 15:26:45 2015 -0800
Committer: Thomas Jackson <[email protected]>
Committed: Fri Jan 23 15:26:45 2015 -0800

----------------------------------------------------------------------
 tsqa/test_cases.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/8987fca2/tsqa/test_cases.py
----------------------------------------------------------------------
diff --git a/tsqa/test_cases.py b/tsqa/test_cases.py
index 35319a8..33f9dc0 100644
--- a/tsqa/test_cases.py
+++ b/tsqa/test_cases.py
@@ -108,12 +108,13 @@ class DynamicHTTPEndpointCase(unittest.TestCase):
     '''
     This class will set up a dynamic http endpoint that is local to this class
     '''
+    endpoint_port = 0
     @classmethod
-    def setUpClass(cls, port=0):
+    def setUpClass(cls):
         # get a logger
         cls.log = logging.getLogger(__name__)
 
-        cls.http_endpoint = tsqa.endpoint.DynamicHTTPEndpoint(port=port)
+        cls.http_endpoint = 
tsqa.endpoint.DynamicHTTPEndpoint(port=cls.endpoint_port)
         cls.http_endpoint.start()
 
         cls.http_endpoint.ready.wait()

Reply via email to