Remove redundant security test (id has been removed for cache in ocf)

Signed-off-by: Kamil Lepek <kamil.lepek94@gmail.com>
This commit is contained in:
Kamil Lepek 2019-10-02 14:06:06 +02:00
parent f08f8aa96e
commit fe0d663c25

View File

@ -81,25 +81,6 @@ def test_fuzzy_start_name(pyocf_ctx, string_randomize, cm, cls):
cache.stop() cache.stop()
@pytest.mark.security
@pytest.mark.parametrize("cm", CacheMode)
@pytest.mark.parametrize("cls", CacheLineSize)
def test_fuzzy_start_id(pyocf_ctx, c_uint16_randomize, cm, cls):
"""
Test whether it is impossible to start cache with invalid cache id value.
:param pyocf_ctx: basic pyocf context fixture
:param c_uint16_randomize: cache id value to start cache with
:param cm: cache mode value to start cache with
:param cls: cache line size value to start cache with
"""
max_id_val = 1 << 14
if c_uint16_randomize > max_id_val:
with pytest.raises(OcfError, match="OCF_ERR_INVAL"):
try_start_cache(cache_id=c_uint16_randomize, cache_mode=cm, cache_line_size=cls)
else:
logger.warning(f"Test skipped for valid cache id value: '{c_uint16_randomize}'. ")
@pytest.mark.security @pytest.mark.security
@pytest.mark.parametrize("cm", CacheMode) @pytest.mark.parametrize("cm", CacheMode)
@pytest.mark.parametrize("cls", CacheLineSize) @pytest.mark.parametrize("cls", CacheLineSize)