Add @pytest.mark.grab_versions to tests
Change-Id: I7d5374c54c5817f265f85559d46e85eb868ddbff
diff --git a/tcp_tests/tests/system/test_install_cookied_ocata.py b/tcp_tests/tests/system/test_install_cookied_ocata.py
index 125168d..3f3f208 100644
--- a/tcp_tests/tests/system/test_install_cookied_ocata.py
+++ b/tcp_tests/tests/system/test_install_cookied_ocata.py
@@ -23,6 +23,7 @@
class Test_Mcp11_install(object):
"""Test class for testing mcp11 vxlan deploy"""
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_cookied_ocata_ovs_install(self, underlay, openstack_deployed,
show_step):
@@ -35,6 +36,7 @@
"""
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_cookied_ocata_dvr_install(self, underlay, openstack_deployed,
show_step):
@@ -47,6 +49,7 @@
"""
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_cookied_ocata_cicd_oss_install(self, underlay, oss_deployed,
openstack_deployed, sl_deployed,
diff --git a/tcp_tests/tests/system/test_install_k8s.py b/tcp_tests/tests/system/test_install_k8s.py
index 6c926d8..7109497 100644
--- a/tcp_tests/tests/system/test_install_k8s.py
+++ b/tcp_tests/tests/system/test_install_k8s.py
@@ -24,6 +24,7 @@
class Testk8sInstall(object):
"""Test class for testing Kubernetes deploy"""
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
@pytest.mark.cz8116
def test_k8s_install_calico(self, config, show_step,
@@ -126,6 +127,7 @@
k8s_actions.run_conformance()
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
@pytest.mark.cz8115
def test_k8s_install_contrail(self, config, show_step,
@@ -186,6 +188,7 @@
k8s_actions.run_conformance()
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_only_k8s_install(self, config, k8s_deployed, k8s_actions):
"""Test for deploying MCP environment with k8s and check it
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py b/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
index 99f96e2..9235edb 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
@@ -24,6 +24,7 @@
class TestMcp11Install(object):
"""Test class for testing mcp11 vxlan deploy"""
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_mcp11_newton_ovs_install(self, underlay, openstack_deployed,
openstack_actions, show_step):
@@ -45,6 +46,7 @@
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_mcp11_newton_dvr_install(self, underlay, openstack_deployed,
openstack_actions, show_step):
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
index eb33a2f..9579139 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
@@ -47,6 +47,7 @@
openstack_actions.download_tempest_report()
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
@pytest.mark.cz8119
def test_mcp11_ocata_ovs_sl_install(self, underlay, config,
@@ -81,6 +82,7 @@
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
@pytest.mark.cz8120
def test_mcp11_ocata_dvr_install(self,
@@ -103,6 +105,7 @@
openstack_actions.download_tempest_report()
LOG.info("*************** DONE **************")
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
@pytest.mark.cz8120
def test_mcp11_ocata_dvr_sl_install(self, underlay, config,
diff --git a/tcp_tests/tests/system/test_k8s_actions.py b/tcp_tests/tests/system/test_k8s_actions.py
index ae3fa89..d7ee5a1 100644
--- a/tcp_tests/tests/system/test_k8s_actions.py
+++ b/tcp_tests/tests/system/test_k8s_actions.py
@@ -23,6 +23,7 @@
class TestMCPK8sActions(object):
"""Test class for different k8s actions"""
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_k8s_externaldns_coredns(self, show_step, config, k8s_deployed):
"""Test externaldns integration with coredns
diff --git a/tcp_tests/tests/system/test_openstack_service_policy.py b/tcp_tests/tests/system/test_openstack_service_policy.py
index bf1ebb1..3b0e611 100644
--- a/tcp_tests/tests/system/test_openstack_service_policy.py
+++ b/tcp_tests/tests/system/test_openstack_service_policy.py
@@ -243,6 +243,7 @@
"""Test class for testing OpenStack services policy"""
# https://github.com/salt-formulas/salt-formula-nova/pull/17 - Merged
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_policy_for_nova(self, underlay, openstack_deployed, salt_actions,
show_step):
@@ -264,6 +265,7 @@
LOG.info("*************** DONE **************")
# https://github.com/salt-formulas/salt-formula-cinder/pull/13 - Merged
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_policy_for_cinder(self, underlay, openstack_deployed,
salt_actions, show_step):
@@ -289,6 +291,7 @@
LOG.info("*************** DONE **************")
# https://github.com/salt-formulas/salt-formula-heat/pull/5 - Merged
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_policy_for_heat(self, underlay, openstack_deployed, salt_actions,
show_step):
@@ -314,6 +317,7 @@
LOG.info("*************** DONE **************")
# https://github.com/salt-formulas/salt-formula-glance/pull/9 - Merged
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_policy_for_glance(self, underlay, openstack_deployed,
salt_actions, show_step):
@@ -339,6 +343,7 @@
LOG.info("*************** DONE **************")
# https://github.com/salt-formulas/salt-formula-ceilometer/pull/2 - Merged
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
@pytest.mark.skip(reason="Skipped due no have ceilometer in environment")
def test_policy_for_ceilometer(self, underlay, openstack_deployed,
@@ -365,6 +370,7 @@
LOG.info("*************** DONE **************")
# https://github.com/salt-formulas/salt-formula-neutron/pull/8 - Merged
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_policy_for_neutron(self, underlay, openstack_deployed,
salt_actions, show_step):
@@ -390,6 +396,7 @@
LOG.info("*************** DONE **************")
# https://github.com/salt-formulas/salt-formula-keystone/pull/11 - Merged
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_policy_for_keystone(self, underlay, openstack_deployed,
salt_actions, show_step):
diff --git a/tcp_tests/tests/system/test_oss_install.py b/tcp_tests/tests/system/test_oss_install.py
index ec6a6fb..f62f1c8 100644
--- a/tcp_tests/tests/system/test_oss_install.py
+++ b/tcp_tests/tests/system/test_oss_install.py
@@ -22,6 +22,7 @@
class TestOSSInstaller(object):
"""Test class for testing Operational Support System Tools deployment"""
+ @pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_oss_install_default(self, underlay, show_step,
oss_deployed, openstack_deployed,