mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix test_webui.test_selinuxusermap
A previous refactoring of SELinux tests has have a wrong assumption about the user field separator within ipaSELinuxUserMapOrder. That was '$$', but should be just '$'. Actually, '.ldif' and '.update' files are passed through Python template string substitution: > $$ is an escape; it is replaced with a single $. > $identifier names a substitution placeholder matching > a mapping key of "identifier" This means that the text to be substituted on should not be escaped. The wrong ipaSELinuxUserMapOrder previously set will be replaced on upgrade. Fixes: https://pagure.io/freeipa/issue/7996 Fixes: https://pagure.io/freeipa/issue/8005 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
committed by
Alexander Bokovoy
parent
be7f54d40c
commit
ac1ea0ec67
@@ -322,6 +322,9 @@ class LDAPUpdate:
|
||||
if not self.sub_dict.get("SELINUX_USERMAP_DEFAULT"):
|
||||
self.sub_dict["SELINUX_USERMAP_DEFAULT"] = \
|
||||
platformconstants.SELINUX_USERMAP_DEFAULT
|
||||
if not self.sub_dict.get("SELINUX_USERMAP_ORDER"):
|
||||
self.sub_dict["SELINUX_USERMAP_ORDER"] = \
|
||||
platformconstants.SELINUX_USERMAP_ORDER
|
||||
self.api = create_api(mode=None)
|
||||
self.api.bootstrap(in_server=True,
|
||||
context='updates',
|
||||
|
||||
Reference in New Issue
Block a user