Add system and component marks

Change-Id: I054095262b8c7552fd99e26aa0138c4bd3776363
This commit is contained in:
Tatyana Leontovich 2016-09-14 14:13:48 +03:00
parent 9748cca200
commit 672282a487
10 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,7 @@ from fuel_ccp_tests.helpers import ext
@pytest.mark.do_dry_run @pytest.mark.do_dry_run
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed) @pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
class TestDryRun(object): class TestDryRun(object):
"""Deploy OpenStack from prebuilt yaml templates """Deploy OpenStack from prebuilt yaml templates

View File

@ -42,6 +42,7 @@ def admin_node(config, underlay, ccpcluster):
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed) @pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
class TestCppCliNormalMessageInShowDep(object): class TestCppCliNormalMessageInShowDep(object):
"""Check info messages when show-dep is success""" """Check info messages when show-dep is success"""
@ -176,6 +177,7 @@ class TestCppCliNormalMessageInShowDep(object):
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed) @pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
class TestCppCliErrorMessageInShowDep(object): class TestCppCliErrorMessageInShowDep(object):
"""Check error messages when show-dep is failing""" """Check error messages when show-dep is failing"""

View File

@ -34,6 +34,7 @@ def clean_repos(node):
@pytest.mark.ccp_cli_errexit_codes @pytest.mark.ccp_cli_errexit_codes
@pytest.mark.ccp_cli_error_in_fetch @pytest.mark.ccp_cli_error_in_fetch
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed) @pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
class TestCppCliErrorInFetch(object): class TestCppCliErrorInFetch(object):
"""Check exit codes when fetch is failing """Check exit codes when fetch is failing
@ -64,6 +65,7 @@ class TestCppCliErrorInFetch(object):
@pytest.mark.ccp_cli_errexit_codes @pytest.mark.ccp_cli_errexit_codes
@pytest.mark.ccp_cli_build_exit_code @pytest.mark.ccp_cli_build_exit_code
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed) @pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
class TestCppCliBuildExitCode(object): class TestCppCliBuildExitCode(object):
"""Check exit codes when build is failing """Check exit codes when build is failing
@ -91,6 +93,7 @@ class TestCppCliBuildExitCode(object):
@pytest.mark.ccp_cli_errexit_codes @pytest.mark.ccp_cli_errexit_codes
@pytest.mark.ccp_cli_deploy_exit_code @pytest.mark.ccp_cli_deploy_exit_code
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed) @pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
class TestCppCliDeploy(object): class TestCppCliDeploy(object):
"""Check exit codes when deploy is failing """Check exit codes when deploy is failing
@ -105,6 +108,7 @@ class TestCppCliDeploy(object):
clean_repos(admin_node) clean_repos(admin_node)
@pytest.mark.component
class TestCppCliErrorInShowDep(object): class TestCppCliErrorInShowDep(object):
"""Check exit codes when show-dep is failing""" """Check exit codes when show-dep is failing"""

View File

@ -122,6 +122,7 @@ class AppControllerResoucesStatus(object):
@pytest.mark.AppController @pytest.mark.AppController
@pytest.mark.component
class TestAppController(object): class TestAppController(object):
kube_settings = { kube_settings = {

View File

@ -18,5 +18,6 @@ expected_namespaces = ('default', 'kube-system')
@pytest.mark.parametrize('ns', expected_namespaces) @pytest.mark.parametrize('ns', expected_namespaces)
@pytest.mark.component
def test_exist_namespace(k8scluster, ns): def test_exist_namespace(k8scluster, ns):
k8scluster.api.namespaces.get(name=ns) k8scluster.api.namespaces.get(name=ns)

View File

@ -18,5 +18,6 @@ expected_services = ('kubernetes',)
@pytest.mark.parametrize('service', expected_services) @pytest.mark.parametrize('service', expected_services)
@pytest.mark.component
def test_exist_service(k8scluster, service): def test_exist_service(k8scluster, service):
k8scluster.api.services.get(name=service) k8scluster.api.services.get(name=service)

View File

@ -31,6 +31,7 @@ class FuelCCPInstallerConfigMixin:
@pytest.mark.fuel_ccp_installer @pytest.mark.fuel_ccp_installer
@pytest.mark.system
class TestFuelCCPInstaller(base_test.SystemBaseTest, class TestFuelCCPInstaller(base_test.SystemBaseTest,
FuelCCPInstallerConfigMixin): FuelCCPInstallerConfigMixin):
"""Test class for testing k8s deployed by fuel-ccp-installer """Test class for testing k8s deployed by fuel-ccp-installer
@ -226,6 +227,7 @@ class TestFuelCCPInstaller(base_test.SystemBaseTest,
@pytest.mark.fuel_ccp_installer_idempotency @pytest.mark.fuel_ccp_installer_idempotency
@pytest.mark.system
class TestFuelCCPInstallerIdempotency(base_test.SystemBaseTest, class TestFuelCCPInstallerIdempotency(base_test.SystemBaseTest,
FuelCCPInstallerConfigMixin): FuelCCPInstallerConfigMixin):

View File

@ -31,6 +31,7 @@ class TestDeployOpenstack(base_test.SystemBaseTest):
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed) @pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.deploy_openstack @pytest.mark.deploy_openstack
@pytest.mark.fail_snapshot @pytest.mark.fail_snapshot
@pytest.mark.smoke
def test_fuel_ccp_deploy_microservices(self, ccpcluster, k8s_actions): def test_fuel_ccp_deploy_microservices(self, ccpcluster, k8s_actions):
"""Deploy base environment """Deploy base environment

View File

@ -18,6 +18,7 @@ from fuel_ccp_tests.helpers import ext
@pytest.mark.fuel_ccp_scale_k8s @pytest.mark.fuel_ccp_scale_k8s
@pytest.mark.system
class TestLCMScaleK8s(base_test.SystemBaseTest): class TestLCMScaleK8s(base_test.SystemBaseTest):
"""Test class for testing k8s scale by fuel-ccp-installer """Test class for testing k8s scale by fuel-ccp-installer

View File

@ -54,6 +54,7 @@ class TestFuelCCPNetCheckerMixin:
@pytest.mark.usefixtures("check_netchecker_files") @pytest.mark.usefixtures("check_netchecker_files")
@pytest.mark.system
class TestFuelCCPNetChecker(SystemBaseTest, TestFuelCCPNetCheckerMixin): class TestFuelCCPNetChecker(SystemBaseTest, TestFuelCCPNetCheckerMixin):
"""Test class for network connectivity verification in k8s""" """Test class for network connectivity verification in k8s"""