trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackso...@apache.org
Subject [2/2] trafficserver git commit: use the in-build httpbin as origin server
Date Fri, 24 Apr 2015 03:23:52 GMT
use the in-build httpbin as origin server

This closes #183


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

Branch: refs/heads/master
Commit: 231f11e9ac59d028f1b92d44c6ee28af43515ee9
Parents: 609e143
Author: Feifei Cai <ffcai@yahoo-inc.com>
Authored: Wed Apr 22 16:27:32 2015 +0000
Committer: Thomas Jackson <jacksontj@apache.org>
Committed: Thu Apr 23 20:17:11 2015 -0700

----------------------------------------------------------------------
 ci/new_tsqa/tests/test_redirection.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/231f11e9/ci/new_tsqa/tests/test_redirection.py
----------------------------------------------------------------------
diff --git a/ci/new_tsqa/tests/test_redirection.py b/ci/new_tsqa/tests/test_redirection.py
index 99fed96..1100dc1 100644
--- a/ci/new_tsqa/tests/test_redirection.py
+++ b/ci/new_tsqa/tests/test_redirection.py
@@ -15,24 +15,19 @@
 #  limitations under the License.
 
 import requests
-import logging
-
 import helpers
-
 import tsqa.test_cases
 import tsqa.utils
 import tsqa.endpoint
 
-log = logging.getLogger(__name__)
-
-class TestRedirection(helpers.EnvironmentCase):
+class TestRedirection(helpers.EnvironmentCase, tsqa.test_cases.HTTPBinCase):
     @classmethod
     def setUpEnv(cls, env):
         cls.configs['records.config']['CONFIG'].update({
             'proxy.config.http.redirection_enabled': 1,
             'proxy.config.http.number_of_redirections': 10
         })
-        cls.configs['remap.config'].add_line('map / http://httpbin.org');
+        cls.configs['remap.config'].add_line('map / http://127.0.0.1:{0}'.format(cls.http_endpoint.address[1]))
 
     def test_redirection(self):
         server_ports = self.configs['records.config']['CONFIG']['proxy.config.http.server_ports']


Mime
View raw message