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/03/01 06:18:30 UTC
git commit: Updated client to use the renamed getQuota API fields.
Repository: incubator-aurora
Updated Branches:
refs/heads/master 04e04522f -> 83a67bc3f
Updated client to use the renamed getQuota API fields.
Testing Done:
./gradlew clean build.
Bugs closed: AURORA-65
Reviewed at https://reviews.apache.org/r/17347/
Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/83a67bc3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/83a67bc3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/83a67bc3
Branch: refs/heads/master
Commit: 83a67bc3f232cfa27d35b138b2572f291796e1c1
Parents: 04e0452
Author: Suman Karumuri <ma...@apache.org>
Authored: Fri Feb 28 21:13:28 2014 -0800
Committer: Suman Karumuri <sk...@twitter.com>
Committed: Fri Feb 28 21:13:28 2014 -0800
----------------------------------------------------------------------
src/main/python/apache/aurora/client/api/quota_check.py | 2 +-
src/test/python/apache/aurora/client/api/test_quota_check.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/83a67bc3/src/main/python/apache/aurora/client/api/quota_check.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/client/api/quota_check.py b/src/main/python/apache/aurora/client/api/quota_check.py
index 6e818a2..c58bc4b 100644
--- a/src/main/python/apache/aurora/client/api/quota_check.py
+++ b/src/main/python/apache/aurora/client/api/quota_check.py
@@ -88,7 +88,7 @@ class QuotaCheck(object):
return resp
allocated = CapacityRequest(resp.result.getQuotaResult.quota)
- consumed = CapacityRequest(resp.result.getQuotaResult.consumed)
+ consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption)
requested = acquired - released
effective = allocated - consumed - requested
http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/83a67bc3/src/test/python/apache/aurora/client/api/test_quota_check.py
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/client/api/test_quota_check.py b/src/test/python/apache/aurora/client/api/test_quota_check.py
index 4dff351..b2598ad 100644
--- a/src/test/python/apache/aurora/client/api/test_quota_check.py
+++ b/src/test/python/apache/aurora/client/api/test_quota_check.py
@@ -46,7 +46,8 @@ class QuotaCheckTest(unittest.TestCase):
resp = Response(responseCode=response_code, message='test')
resp.result = Result(
- getQuotaResult=GetQuotaResult(quota=deepcopy(allocated), consumed=deepcopy(consumed)))
+ getQuotaResult=GetQuotaResult(
+ quota=deepcopy(allocated), prodConsumption=deepcopy(consumed)))
self._scheduler.getQuota.return_value = resp
def assert_result(self, prod, released, acquired, expected_code=None):