From eec3ec56597ca4ac75520571a88d1476f59e4e12 Mon Sep 17 00:00:00 2001 From: weikeyou Date: Fri, 26 Jan 2018 17:02:13 +0800 Subject: [PATCH] The return value of get_test_container has conflict between task_state and status modify the task_state value in get_test_container function from 'container_creating' to None. Change-Id: I73e1ea8f6ad454adb3bd49a5b560774bdcb0a61a Closes-bug: #1745571 --- zun/tests/unit/db/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zun/tests/unit/db/utils.py b/zun/tests/unit/db/utils.py index 1369fb743..cbdd1176d 100644 --- a/zun/tests/unit/db/utils.py +++ b/zun/tests/unit/db/utils.py @@ -57,7 +57,7 @@ def get_test_container(**kwargs): 'command': kwargs.get('command', 'fake_command'), 'status': kwargs.get('status', 'Running'), 'status_reason': kwargs.get('status_reason', 'Created Successfully'), - 'task_state': kwargs.get('task_state', 'container_creating'), + 'task_state': kwargs.get('task_state', None), 'environment': kwargs.get('environment', {'key1': 'val1', 'key2': 'val2'}), 'cpu': kwargs.get('cpu', 1.0),