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/09/26 20:13:31 UTC
git commit: Renaming update to beta-update in client v2
Repository: incubator-aurora
Updated Branches:
refs/heads/master 8edc34b11 -> 9ec2c0d08
Renaming update to beta-update in client v2
Bugs closed: AURORA-757
Reviewed at https://reviews.apache.org/r/26089/
Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/9ec2c0d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/9ec2c0d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/9ec2c0d0
Branch: refs/heads/master
Commit: 9ec2c0d08276aba976541ad1f7f6577c934f1b0a
Parents: 8edc34b
Author: Maxim Khutornenko <ma...@apache.org>
Authored: Fri Sep 26 11:13:14 2014 -0700
Committer: Maxim Khutornenko <ma...@apache.org>
Committed: Fri Sep 26 11:13:14 2014 -0700
----------------------------------------------------------------------
src/main/python/apache/aurora/client/cli/update.py | 2 +-
.../python/apache/aurora/client/cli/test_supdate.py | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/9ec2c0d0/src/main/python/apache/aurora/client/cli/update.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/client/cli/update.py b/src/main/python/apache/aurora/client/cli/update.py
index c6cb98f..b4dd792 100644
--- a/src/main/python/apache/aurora/client/cli/update.py
+++ b/src/main/python/apache/aurora/client/cli/update.py
@@ -143,7 +143,7 @@ class AbortUpdate(Verb):
class Update(Noun):
@property
def name(self):
- return "update"
+ return "beta-update"
@property
def help(self):
http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/9ec2c0d0/src/test/python/apache/aurora/client/cli/test_supdate.py
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/client/cli/test_supdate.py b/src/test/python/apache/aurora/client/cli/test_supdate.py
index 4fb1623..2782fee 100644
--- a/src/test/python/apache/aurora/client/cli/test_supdate.py
+++ b/src/test/python/apache/aurora/client/cli/test_supdate.py
@@ -35,7 +35,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_valid_config())
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'start', self.TEST_JOBSPEC, fp.name])
+ result = cmd.execute(['beta-update', 'start', self.TEST_JOBSPEC, fp.name])
assert result == EXIT_OK
assert mock_api.start_job_update.call_count == 1
@@ -57,7 +57,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_valid_config())
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'pause', self.TEST_JOBSPEC])
+ result = cmd.execute(['beta-update', 'pause', self.TEST_JOBSPEC])
assert result == EXIT_OK
mock_api.pause_job_update.assert_called_with(self.TEST_JOBKEY)
@@ -76,7 +76,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_valid_config())
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'abort', self.TEST_JOBSPEC])
+ result = cmd.execute(['beta-update', 'abort', self.TEST_JOBSPEC])
assert result == EXIT_OK
mock_api.abort_job_update.assert_called_with(self.TEST_JOBKEY)
@@ -95,7 +95,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_valid_config())
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'resume', self.TEST_JOBSPEC])
+ result = cmd.execute(['beta-update', 'resume', self.TEST_JOBSPEC])
assert result == EXIT_OK
mock_api.resume_job_update.assert_called_with(self.TEST_JOBKEY)
@@ -113,7 +113,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_invalid_config('invalid_field=False,'))
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'start', self.TEST_JOBSPEC, fp.name])
+ result = cmd.execute(['beta-update', 'start', self.TEST_JOBSPEC, fp.name])
assert result == EXIT_INVALID_CONFIGURATION
assert mock_api.start_job_update.call_count == 0
@@ -128,7 +128,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_valid_config())
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'resume', self.TEST_JOBSPEC])
+ result = cmd.execute(['beta-update', 'resume', self.TEST_JOBSPEC])
assert result == EXIT_API_ERROR
mock_api.resume_job_update.assert_called_with(self.TEST_JOBKEY)
@@ -147,7 +147,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_valid_config())
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'abort', self.TEST_JOBSPEC])
+ result = cmd.execute(['beta-update', 'abort', self.TEST_JOBSPEC])
assert result == EXIT_API_ERROR
mock_api.abort_job_update.assert_called_with(self.TEST_JOBKEY)
@@ -166,7 +166,7 @@ class TestUpdateCommand(AuroraClientCommandTest):
fp.write(self.get_valid_config())
fp.flush()
cmd = AuroraCommandLine()
- result = cmd.execute(['update', 'pause', self.TEST_JOBSPEC])
+ result = cmd.execute(['beta-update', 'pause', self.TEST_JOBSPEC])
assert result == EXIT_API_ERROR
mock_api.pause_job_update.assert_called_with(self.TEST_JOBKEY)