Enable all unit tests except two failed cases 49/25049/3
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 29 Nov 2016 01:37:41 +0000 (09:37 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 29 Nov 2016 02:01:39 +0000 (10:01 +0800)
- `test_ping` in `env_setup_test` still halts
- `test_prepare_and_run_benchmark_successful` in `args_handler_test` fails
- excluded `pep8` since already coverred by opnfv-lint task

Change-Id: Ib5ea20c37a27e356aea6d8eed3750b3269bd67f4
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
tests/unit/api/qtip_server_test.py
tests/unit/utils/args_handler_test.py
tests/unit/utils/create_zones_test.py
tests/unit/utils/env_setup_test.py
tests/unit/utils/spawn_vm_test.py
tox.ini

index 3e92fcb..96544c9 100644 (file)
@@ -25,7 +25,6 @@ def side_effect_pass():
 
 
 class TestClass:
-    @pytest.mark.skip(reason="(yujunz) to be fixed")
     @pytest.mark.parametrize("body, expected", [
         ({'installer_type': 'fuel',
           'installer_ip': '10.20.0.2'},
@@ -100,7 +99,6 @@ class TestClass:
         delete_reply = app_client.delete("/api/v1.0/jobs/%s" % id)
         assert "successful" in delete_reply.data
 
-    @pytest.mark.skip(reason="(yujunz) to be fixed")
     @pytest.mark.parametrize("body, expected", [
         ([{'installer_type': 'fuel',
            'installer_ip': '10.20.0.2'},
index 2934715..5cbe766 100644 (file)
@@ -12,7 +12,7 @@ import qtip.utils.args_handler
 
 
 class TestClass:
-    @pytest.mark.skip(reason="(yujunz) to be fixed")
+    @pytest.mark.skip("(yujunz) test fails")
     @pytest.mark.parametrize("test_input, expected", [
         (['fuel', '/home', 'benchmarks/testplan/default/network/iperf_bm.yaml'],
          ['fuel', '/home', "iperf",
index 48f6c10..8b1e97c 100644 (file)
@@ -51,7 +51,6 @@ class NovaMock(MagicMock):
 
 
 class TestClass:
-    @pytest.mark.skip(reason="(yujunz) to be fixed")
     @pytest.mark.parametrize("test_input, expected", [
         (['compute1', 'compute2'],
          ['create:compute1:compute1',
index 5aa21b1..c40801c 100644 (file)
@@ -78,7 +78,7 @@ class TestClass:
         result = filecmp.cmp(get_output("hosts"), "config/hosts")
         assert result
 
-    @pytest.mark.skip(reason="(yujunz) test halt, to be fixed")
+    @pytest.mark.skip("(yujunz) to be fixed")
     def test_ping(self, capfd):
         test_class = Env_setup()
         mock_ips = mock.Mock(return_value=["127.0.0.1", "10.20.0.29"])
index 3527346..ba23737 100644 (file)
@@ -32,7 +32,6 @@ class HeatMock(MagicMock):
 
 
 class TestClass:
-    @pytest.mark.skip(reason="(yujunz) to be fixed")
     @pytest.mark.parametrize("test_input, expected", [
         ({'availability_zone': ['compute1', 'compute1'],
           'OS_image': ['QTIP_CentOS', 'QTIP_CentOS'],
diff --git a/tox.ini b/tox.ini
index d3564a2..7d17af6 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py27,pep8
+envlist = py27
 skipsdist = True
 
 [testenv]