ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhuvnesh2...@apache.org
Subject ambari git commit: AMBARI-15550: PXF should use hostname instead of localhost in pxf urls - fixed test case
Date Thu, 24 Mar 2016 19:18:32 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 706bc29c3 -> 126c226d8


AMBARI-15550: PXF should use hostname instead of localhost in pxf urls - fixed test case


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/126c226d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/126c226d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/126c226d

Branch: refs/heads/trunk
Commit: 126c226d814dabc103255996be20d7b0a0f6e955
Parents: 706bc29
Author: Bhuvnesh Chaudhary <bchaudhary@pivotal.io>
Authored: Thu Mar 24 12:19:27 2016 -0700
Committer: Bhuvnesh Chaudhary <bchaudhary@pivotal.io>
Committed: Thu Mar 24 12:19:27 2016 -0700

----------------------------------------------------------------------
 .../src/test/python/stacks/2.3/PXF/test_alerts_api_status.py    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/126c226d/ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py b/ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py
index e5fd67a..ee187e2 100644
--- a/ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py
+++ b/ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py
@@ -47,15 +47,16 @@ class TestAlertsApiStatus(RMFTestCase):
 
     mock_response = '{ "version": "v14"}'
     makeHTTPCall_mock.return_value = mock_response
+    BASE_URL = "http://localhost:51200/pxf/"
 
-    version = api_status._get_pxf_protocol_version()
+    version = api_status._get_pxf_protocol_version(BASE_URL)
     self.assertEqual(version, "v14")
 
     mock_response = 'BAD RESPONSE'
     makeHTTPCall_mock.return_value = mock_response
 
     try:
-      api_status._get_pxf_protocol_version()
+      api_status._get_pxf_protocol_version(BASE_URL)
       self.fail()
     except Exception as e:
       self.assertEqual(str(e), "version could not be found in response BAD RESPONSE")


Mime
View raw message