[freeipa PR#3372][opened] Fix `test_webui.test_selinuxusermap`
by stanislavlevin
URL: https://github.com/freeipa/freeipa/pull/3372
Author: stanislavlevin
Title: #3372: Fix `test_webui.test_selinuxusermap`
Action: opened
PR body:
"""
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 on a fresh install will be replaced on
upgrade.
Fixes: https://pagure.io/freeipa/issue/8005
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3372/head:pr3372
git checkout pr3372
4 years, 9 months