Add skip_if_platform marker

Make it easier to skip tests based on platform ID and platform LIKE_ID.

Skip some tests that are not working on Debian-like platforms

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
Christian Heimes
2020-04-27 12:33:26 +02:00
parent 4d2272f966
commit c2608cfe8a
4 changed files with 22 additions and 0 deletions

View File

@@ -982,6 +982,9 @@ class TestIPACommand(IntegrationTest):
assert 'First name: %s' % (modfirst) in cmd.stdout_text
assert 'Last name: %s' % (modlast) in cmd.stdout_text
@pytest.mark.skip_if_platform(
"debian", reason="Crypto policy is not supported on Debian"
)
def test_enabled_tls_protocols(self):
"""Check Apache has same TLS versions enabled as crypto policy