Split component tests into 3 separate groups

- Split component tests into 3 groups: component_ccp,
component_ccp_heavy, component_k8s

Change-Id: If9f82c565c9fcbc4aa3f74cf516c2db29c1bf843
This commit is contained in:
asledzinskiy 2016-10-10 15:18:38 +03:00
parent 07204d077d
commit 155e1dad9a
9 changed files with 13 additions and 13 deletions

View File

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

View File

@ -35,7 +35,7 @@ def clean_repos(node):
@pytest.mark.ccp_cli_errexit_codes
@pytest.mark.ccp_cli_error_in_fetch
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
@pytest.mark.component_ccp
class TestCppCliErrorInFetch(object):
"""Check exit codes when fetch is failing
@ -78,7 +78,7 @@ class TestCppCliErrorInFetch(object):
@pytest.mark.ccp_cli_errexit_codes
@pytest.mark.ccp_cli_build_exit_code
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
@pytest.mark.component_ccp
class TestCppCliBuildExitCode(object):
"""Check exit codes when build is failing
@ -112,7 +112,7 @@ class TestCppCliBuildExitCode(object):
@pytest.mark.ccp_cli_errexit_codes
@pytest.mark.ccp_cli_deploy_exit_code
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
@pytest.mark.component_ccp
class TestCppCliDeploy(object):
"""Check exit codes when deploy is failing
@ -130,7 +130,7 @@ class TestCppCliDeploy(object):
clean_repos(admin_node)
@pytest.mark.component
@pytest.mark.component_ccp
class TestCppCliErrorInShowDep(object):
"""Check exit codes when show-dep is failing"""

View File

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

View File

@ -28,7 +28,7 @@ LOG = logger.logger
@pytest.mark.ccp_cli_reconfig
@pytest.mark.ccp_cli_redeploy
@pytest.mark.revert_snapshot(ext.SNAPSHOT.ccp_deployed)
@pytest.mark.component
@pytest.mark.component_ccp_heavy
def test_deploy_and_reconfig_keystone(config, ccpcluster,
k8s_actions, underlay):

View File

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

View File

@ -21,7 +21,7 @@ LOG = logger.logger
@pytest.mark.k8s_dashboard
@pytest.mark.component
@pytest.mark.component_k8s
class TestK8sDashboard(object):
kube_settings = {

View File

@ -19,7 +19,7 @@ from fuel_ccp_tests.helpers import ext
LOG = logger.logger
@pytest.mark.component
@pytest.mark.component_k8s
class TestLVMPluginUsage(object):
"""Tests using k8s' LVM plugin.

View File

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

View File

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