From d972d1edd7c5e3c6eddae695c85ed4ead07849b8 Mon Sep 17 00:00:00 2001 From: vzhestkov Date: Wed, 31 Jul 2024 10:29:08 +0200 Subject: [PATCH] Skip the tests if running with non-root user --- tests/pytests/scenarios/dns/multimaster/test_dns.py | 1 + tests/pytests/scenarios/dns/test_dns.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/pytests/scenarios/dns/multimaster/test_dns.py b/tests/pytests/scenarios/dns/multimaster/test_dns.py index 5e0fc4c80f..f049099b71 100644 --- a/tests/pytests/scenarios/dns/multimaster/test_dns.py +++ b/tests/pytests/scenarios/dns/multimaster/test_dns.py @@ -8,6 +8,7 @@ @pytest.mark.skip_unless_on_linux +@pytest.mark.skip_if_not_root def test_multimaster_dns( salt_mm_master_1, salt_mm_minion_1, diff --git a/tests/pytests/scenarios/dns/test_dns.py b/tests/pytests/scenarios/dns/test_dns.py index df19d928c0..9b9ef0cdba 100644 --- a/tests/pytests/scenarios/dns/test_dns.py +++ b/tests/pytests/scenarios/dns/test_dns.py @@ -8,6 +8,7 @@ @pytest.mark.skip_unless_on_linux +@pytest.mark.skip_if_not_root def test_dns_change(master, minion, salt_cli, etc_hosts, caplog, master_alive_interval): """ Verify a minion will pick up a master's dns change if it's been disconnected.