Skip to content

Commit 2ecccd1

Browse files
committed
Skip tests if cloud edition
Change-Id: Ia33fb46b3f5489999eb66e8991aa0ba20d98facb
1 parent f8c8de8 commit 2ecccd1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/system/singlesite/cmk/gui/test_login.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def require_password_change(site: Site, username: str) -> Iterator[None]:
387387
site.delete_file(pw_change_marker)
388388

389389

390-
@pytest.mark.skip(reason="Flaky test: CMK-37917")
390+
@pytest.mark.skip_if_edition("cloud")
391391
def test_rest_api_access_with_enabled_2fa(site: Site) -> None:
392392
"""you're not supposed to access the rest api if you have 2fa enabled (except for cookie auth)
393393
@@ -458,6 +458,7 @@ def test_invalid_remote_site_login(site: Site) -> None:
458458
assert "check_mk/login.py" in response.url
459459

460460

461+
@pytest.mark.skip_if_edition("cloud")
461462
def test_rest_api_requires_password_change(site: Site) -> None:
462463
"""test that rest api access is blocked when user is required to change password"""
463464

0 commit comments

Comments
 (0)