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/01/09 01:00:40 UTC

git commit: Fixing test_update test.

Updated Branches:
  refs/heads/master c7fa8bb27 -> 05b27bc27


Fixing test_update test.

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


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

Branch: refs/heads/master
Commit: 05b27bc27e3a98df01142f1e7297529e2611f285
Parents: c7fa8bb
Author: Maxim Khutornenko <ma...@apache.org>
Authored: Wed Jan 8 16:00:13 2014 -0800
Committer: Maxim Khutornenko <mk...@twitter.com>
Committed: Wed Jan 8 16:00:13 2014 -0800

----------------------------------------------------------------------
 src/test/python/apache/aurora/client/commands/test_update.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/05b27bc2/src/test/python/apache/aurora/client/commands/test_update.py
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/client/commands/test_update.py b/src/test/python/apache/aurora/client/commands/test_update.py
index ccc3ee9..5d1c197 100644
--- a/src/test/python/apache/aurora/client/commands/test_update.py
+++ b/src/test/python/apache/aurora/client/commands/test_update.py
@@ -136,7 +136,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
     api.populateJobConfig.return_value = populate
     configs = []
     for i in range(20):
-      task_config = Mock(spec=TaskConfig)
+      task_config = TaskConfig(numCpus=1.0, ramMb=1, diskMb=1)
       configs.append(task_config)
     populate.result.populateJobResult.populated = set(configs)
     return populate
@@ -163,7 +163,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
     scheduler.getTasksStatus.return_value = status_response
     schedule_status = Mock(spec=ScheduleStatusResult)
     status_response.result.scheduleStatusResult = schedule_status
-    mock_task_config = Mock()
+    task_config = TaskConfig(numCpus=1.0, ramMb=10, diskMb=1)
     # This should be a list of ScheduledTask's.
     schedule_status.tasks = []
     for i in range(20):
@@ -173,7 +173,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
       task_status.assignedTask.taskId = "Task%s" % i
       task_status.assignedTask.slaveId = "Slave%s" % i
       task_status.slaveHost = "Slave%s" % i
-      task_status.assignedTask.task = mock_task_config
+      task_status.assignedTask.task = task_config
       schedule_status.tasks.append(task_status)
 
   @classmethod