Import Upstream version 4.12.4

This commit is contained in:
geos_one
2025-08-12 22:28:56 +02:00
parent 03a8170b15
commit 9181ee2487
1629 changed files with 874094 additions and 554378 deletions

View File

@@ -192,6 +192,17 @@ class TestClientInstallation(IntegrationTest):
result = self._uninstall_client()
assert result.returncode == 0
def test_install_client_subid(self):
"""
Test client installation with --subid option
"""
result = self._install_client(extraargs=['-f', '--subid'])
assert result.returncode == 0
# Client installation must configure the 'sssd' profile
# with subid feature
check_authselect_profile(
self.client, default_profile, ('with-sudo', 'with-subid'))
@classmethod
def uninstall(cls, mh):
super(TestClientInstallation, cls).uninstall(mh)
@@ -240,6 +251,23 @@ class TestServerInstallation(IntegrationTest):
check_authselect_profile(
self.master, preconfigured_profile, preconfigured_options)
def test_install_with_subid(self):
"""
Test server installation when --subid option is specified
"""
tasks.install_master(self.master, extra_args=["--subid"])
check_authselect_profile(
self.master, default_profile, ('with-sudo', 'with-subid'))
def test_uninstall_with_subid(self):
"""
Test server uninstallation when --subid option was configured
"""
# uninstall must revert to the preconfigured profile
tasks.uninstall_master(self.master)
check_authselect_profile(
self.master, preconfigured_profile, preconfigured_options)
@classmethod
def uninstall(cls, mh):
# Clean-up the authselect profile and re-use the default 'sssd'