aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/cmd
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2016-07-13 08:08:09 +0000
committerrexlee8776 <limingjiang@huawei.com>2016-07-15 02:50:27 +0000
commit1a5b8201bf77cfcea5915b6cc8baca2cd33eba1d (patch)
treed6d4b95e32ae7b6651111f9eedd061c19928e909 /tests/unit/cmd
parent55e2e867e9a3f01b39f619251253470948e250d4 (diff)
change ci from base-on-pod to base-on-scenario (in progress)
1. first need to change in yardstick 2. then change in releng to modify the input parameter JIRA: YARDSTICK-299 Change-Id: I3d707721acbc1d63be34da4e98138f845dc93466 Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'tests/unit/cmd')
-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)