You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ja...@apache.org on 2015/04/11 02:04:27 UTC
[3/4] trafficserver-qa git commit: Deprecate the old endpoint_url
method
Deprecate the old endpoint_url method
Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/0529e05d
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/0529e05d
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/0529e05d
Branch: refs/heads/master
Commit: 0529e05d232e35bf99f76b23787b1b1e43046cab
Parents: 6b2d7bb
Author: Thomas Jackson <ja...@apache.org>
Authored: Fri Apr 10 17:02:31 2015 -0700
Committer: Thomas Jackson <ja...@apache.org>
Committed: Fri Apr 10 17:02:31 2015 -0700
----------------------------------------------------------------------
tsqa/test_cases.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/0529e05d/tsqa/test_cases.py
----------------------------------------------------------------------
diff --git a/tsqa/test_cases.py b/tsqa/test_cases.py
index a621016..bd96b2f 100644
--- a/tsqa/test_cases.py
+++ b/tsqa/test_cases.py
@@ -19,6 +19,7 @@ Some base test cases that do environment handling for you
import logging
import os
+import warnings
import httpbin
@@ -180,6 +181,8 @@ class HTTPBinCase(unittest.TestCase):
'''
Get the url for the local dynamic endpoint given a path
'''
+ warnings.warn(('"endpoint_url" has been deprecated. The same function is '
+ 'available under "http_endpoint.url"'))
if path and not path.startswith('/'):
path = '/' + path
return 'http://127.0.0.1:{0}{1}'.format(self.http_endpoint.address[1],