You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by ma...@apache.org on 2014/12/19 23:49:20 UTC

incubator-aurora git commit: Fixing build break.

Repository: incubator-aurora
Updated Branches:
  refs/heads/master 8c841060b -> 84ad65091


Fixing build break.

Couple of tests changes escaped in https://reviews.apache.org/r/29165

Testing Done:
./pants src/test/python:all

Reviewed at https://reviews.apache.org/r/29275/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/84ad6509
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/84ad6509
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/84ad6509

Branch: refs/heads/master
Commit: 84ad650914887796f94842f1e70ba9ffe0d2c4e1
Parents: 8c84106
Author: Maxim Khutornenko <ma...@apache.org>
Authored: Fri Dec 19 14:48:58 2014 -0800
Committer: -l <ma...@apache.org>
Committed: Fri Dec 19 14:48:58 2014 -0800

----------------------------------------------------------------------
 src/test/python/apache/aurora/client/api/test_api.py          | 2 +-
 src/test/python/apache/aurora/client/hooks/test_hooked_api.py | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/84ad6509/src/test/python/apache/aurora/client/api/test_api.py
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/client/api/test_api.py b/src/test/python/apache/aurora/client/api/test_api.py
index c91e74e..7390d1c 100644
--- a/src/test/python/apache/aurora/client/api/test_api.py
+++ b/src/test/python/apache/aurora/client/api/test_api.py
@@ -70,7 +70,7 @@ class TestJobUpdateApis(unittest.TestCase):
 
   @classmethod
   def mock_api(cls):
-    api = AuroraClientAPI(Cluster(name="foo"))
+    api = AuroraClientAPI(Cluster(name="foo"), 'test-client')
     mock_proxy = create_autospec(spec=SchedulerThriftApiSpec, spec_set=True, instance=True)
     api._scheduler_proxy = mock_proxy
     return api, mock_proxy

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/84ad6509/src/test/python/apache/aurora/client/hooks/test_hooked_api.py
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/client/hooks/test_hooked_api.py b/src/test/python/apache/aurora/client/hooks/test_hooked_api.py
index c2063f2..a1f474e 100644
--- a/src/test/python/apache/aurora/client/hooks/test_hooked_api.py
+++ b/src/test/python/apache/aurora/client/hooks/test_hooked_api.py
@@ -38,7 +38,8 @@ def test_api_methods_exist(method_name):
 
 def test_api_methods_params(method_name):
   cluster = create_autospec(spec=Cluster, instance=True)
-  api = HookedAuroraClientAPI(cluster=cluster)  # cant use mock here; need to inspect methods
+  # cant use mock here; need to inspect methods
+  api = HookedAuroraClientAPI(cluster=cluster, user_agent="test-client")
 
   hooked_method = getattr(api, method_name)
   nonhooked_method = getattr(super(HookedAuroraClientAPI, api), method_name)