diff options
author | liang gao <jean.gaoliang@huawei.com> | 2016-07-18 03:09:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-07-18 03:09:34 +0000 |
commit | 3a3ccbd79d47333ce7626674c68a4cdfac44020d (patch) | |
tree | 93c83b3ff059aeb496e4b840214cbedef1f4688d /tests/unit | |
parent | 428c72a39bde85d29fae024e1f3d38f5a177f292 (diff) | |
parent | 1a5b8201bf77cfcea5915b6cc8baca2cd33eba1d (diff) |
Merge "change ci from base-on-pod to base-on-scenario (in progress)"
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/cmd/commands/test_task.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/cmd/commands/test_task.py b/tests/unit/cmd/commands/test_task.py index 5b404c48d..ccb0f2aec 100644 --- a/tests/unit/cmd/commands/test_task.py +++ b/tests/unit/cmd/commands/test_task.py @@ -62,11 +62,12 @@ class TaskCommandsTestCase(unittest.TestCase): cfg = \ {'precondition': {'installer_type': 'compass', - 'deploy_scenarios': 'os-nosdn' + 'deploy_scenarios': 'os-nosdn', + 'pod_name': 'huawei-pod1' } } t = task.TaskParser('/opt') - mock_os.environ.get.side_effect = ['compass', 'os-nosdn'] + mock_os.environ.get.side_effect = ['compass', 'os-nosdn', 'huawei-pod1'] result = t._check_precondition(cfg) self.assertTrue(result) |