Merge "Can't pause a async action using cli"
This commit is contained in:
@@ -249,7 +249,7 @@ class Update(command.ShowOne):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--state',
|
'--state',
|
||||||
dest='state',
|
dest='state',
|
||||||
choices=['IDLE', 'RUNNING', 'SUCCESS', 'ERROR', 'CANCELLED'],
|
choices=['PAUSED', 'RUNNING', 'SUCCESS', 'ERROR', 'CANCELLED'],
|
||||||
help='Action execution state')
|
help='Action execution state')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--output',
|
'--output',
|
||||||
|
@@ -125,7 +125,7 @@ class TestCLIActionExecutions(base.BaseCommandTest):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_update(self):
|
def test_update(self):
|
||||||
states = ['IDLE', 'RUNNING', 'SUCCESS', 'ERROR', 'CANCELLED']
|
states = ['PAUSED', 'RUNNING', 'SUCCESS', 'ERROR', 'CANCELLED']
|
||||||
|
|
||||||
for state in states:
|
for state in states:
|
||||||
action_ex_dict = copy.deepcopy(ACTION_EX_DICT)
|
action_ex_dict = copy.deepcopy(ACTION_EX_DICT)
|
||||||
@@ -156,7 +156,7 @@ class TestCLIActionExecutions(base.BaseCommandTest):
|
|||||||
self.assertEqual(expected_result, result[1])
|
self.assertEqual(expected_result, result[1])
|
||||||
|
|
||||||
def test_update_invalid_state(self):
|
def test_update_invalid_state(self):
|
||||||
states = ['PAUSED', 'WAITING', 'DELAYED']
|
states = ['IDLE', 'WAITING', 'DELAYED']
|
||||||
|
|
||||||
# Redirect the stderr so it doesn't show during tox
|
# Redirect the stderr so it doesn't show during tox
|
||||||
_stderr = sys.stderr
|
_stderr = sys.stderr
|
||||||
|
Reference in New Issue
Block a user