aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/cmd/commands
diff options
context:
space:
mode:
authorliang gao <jean.gaoliang@huawei.com>2016-07-18 03:09:33 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-07-18 03:09:34 +0000
commit3a3ccbd79d47333ce7626674c68a4cdfac44020d (patch)
tree93c83b3ff059aeb496e4b840214cbedef1f4688d /tests/unit/cmd/commands
parent428c72a39bde85d29fae024e1f3d38f5a177f292 (diff)
parent1a5b8201bf77cfcea5915b6cc8baca2cd33eba1d (diff)
Merge "change ci from base-on-pod to base-on-scenario (in progress)"
Diffstat (limited to 'tests/unit/cmd/commands')
-rw-r--r--tests/unit/cmd/commands/test_task.py5
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)