Include standby tests for CI scope
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
This commit is contained in:
@@ -36,6 +36,7 @@ from api.cas.ioclass_config import IoClass
|
||||
from api.cas.core import CoreStatus
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
def test_standby_neg_cli_params():
|
||||
"""
|
||||
@@ -104,6 +105,7 @@ def test_standby_neg_cli_params():
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
def test_activate_neg_cli_params():
|
||||
"""
|
||||
@@ -183,6 +185,7 @@ def test_activate_neg_cli_params():
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
def test_standby_neg_cli_management():
|
||||
"""
|
||||
@@ -258,6 +261,7 @@ def test_standby_neg_cli_management():
|
||||
cache.stop()
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
def test_start_neg_cli_flags():
|
||||
"""
|
||||
@@ -311,6 +315,7 @@ def test_start_neg_cli_flags():
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
def test_activate_without_detach():
|
||||
"""
|
||||
@@ -373,6 +378,7 @@ def test_activate_without_detach():
|
||||
TestRun.fail("The cache exported object is not a block device")
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("active_cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
@pytest.mark.require_disk("standby_cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
def test_activate_neg_cache_line_size():
|
||||
@@ -463,6 +469,7 @@ def test_activate_neg_cache_line_size():
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
def test_standby_init_with_preexisting_metadata():
|
||||
@@ -520,6 +527,7 @@ def test_standby_init_with_preexisting_metadata():
|
||||
TestRun.LOGGER.error("Standby cache instance is not running!")
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
@@ -570,6 +578,7 @@ def test_standby_init_with_preexisting_filesystem(filesystem):
|
||||
TestRun.LOGGER.error("Standby cache instance is not running!")
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("caches", DiskTypeSet([DiskType.nand, DiskType.optane]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("caches"))
|
||||
def test_standby_activate_with_corepool():
|
||||
@@ -627,6 +636,7 @@ def test_standby_activate_with_corepool():
|
||||
TestRun.fail(f"First core status should be active but is {core.get_status()}.")
|
||||
|
||||
|
||||
@pytest.mark.CI
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.parametrizex("cache_line_size", CacheLineSize)
|
||||
def test_standby_start_stop(cache_line_size):
|
||||
|
Reference in New Issue
Block a user