mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
ipatests: add new test with --subid installer option
Add a new test for ipa-client-install --subid Add a new test for ipa-server-install --subid Related: https://pagure.io/freeipa/issue/9159 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
49ab92c5ef
commit
952a77caef
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user