mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: fix TestUserPermissions::test_selinux_user_optimized
This test requires SELinux and fails if selinux is disabled (because it's calling semanage login -l). The vagrant images currently in use in the nightly tests are configured with selinux disabled. Add skipif marker when selinux is disabled. Fixes: https://pagure.io/freeipa/issue/7974 Reviewed-By: François Cami <fcami@redhat.com>
This commit is contained in:
parent
c191c2573e
commit
910ff25bad
@ -9,6 +9,7 @@ import pytest
|
||||
|
||||
from ipaplatform.osinfo import osinfo
|
||||
from ipaplatform.paths import paths
|
||||
from ipaplatform.tasks import tasks as platformtasks
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.pytest_ipa.integration import tasks
|
||||
|
||||
@ -70,6 +71,9 @@ class TestUserPermissions(IntegrationTest):
|
||||
# call ipa user-del --preserve
|
||||
self.master.run_command(['ipa', 'user-del', '--preserve', testuser])
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not platformtasks.is_selinux_enabled(),
|
||||
reason="Test needs SELinux enabled")
|
||||
@pytest.mark.xfail(
|
||||
osinfo.id == 'fedora' and osinfo.version_number <= (28,),
|
||||
reason='sssd ticket 3819', strict=True)
|
||||
|
Loading…
Reference in New Issue
Block a user