Unit test bugfix: Remove the zte-pod1 in unit test. 23/23123/1
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>
Thu, 13 Oct 2016 15:57:41 +0000 (23:57 +0800)
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>
Thu, 13 Oct 2016 16:06:41 +0000 (00:06 +0800)
Change-Id: I5e8be7d22800f67e475660fa1a557af62e8c9b1f
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
tests/cli_test.py
tests/qtip_server_test.py

index 12d0abb..43a1108 100644 (file)
@@ -11,7 +11,7 @@ class TestClass:
           '-f',
           'compute'], "You have specified a lab that is not present in test_cases"),
         (['-l',
-          'zte-pod1',
+          'default',
           '-f',
           'test'], "Test File Does not exist in test_list")
     ])
@@ -26,10 +26,10 @@ class TestClass:
 
     @pytest.mark.parametrize("test_input, expected", [
         (['-l',
-          'zte-pod1',
+          'default',
           '-f',
-          'storage'], [('fuel', '/home', './test_cases/zte-pod1/storage/fio_bm.yaml'),
-                       ('fuel', '/home', './test_cases/zte-pod1/storage/fio_vm.yaml')])
+          'storage'], [('fuel', '/home', './test_cases/default/storage/fio_bm.yaml'),
+                       ('fuel', '/home', './test_cases/default/storage/fio_vm.yaml')])
     ])
     @mock.patch('func.cli.args_handler.prepare_and_run_benchmark')
     def test_cli_successful(self, mock_args_handler, test_input, expected):
index 9def21f..81bb302 100644 (file)
@@ -46,7 +46,7 @@ class TestClass:
           'result': 0}),
         ({'installer_type': 'fuel',
           'installer_ip': '10.20.0.2',
-          'pod_name': 'zte-pod1',
+          'pod_name': 'default',
           'max_minutes': 20,
           'suite_name': 'compute',
           'type': 'VM',
@@ -56,7 +56,7 @@ class TestClass:
          {'job_id': '',
           'installer_type': 'fuel',
           'installer_ip': '10.20.0.2',
-          'pod_name': 'zte-pod1',
+          'pod_name': 'default',
           'suite_name': 'compute',
           'max_minutes': 20,
           'type': 'VM',