URL: https://github.com/freeipa/freeipa/pull/4152
Author: rcritten
Title: #4152: [Backport][ipa-4-8] Make assert_error compatible with Python 3.6
Action: opened
PR body:
"""
This PR was opened automatically because PR #4144 was pushed to master and backport to ipa-4-8 is required.
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4152/head:pr4152
git checkout pr4152
URL: https://github.com/freeipa/freeipa/pull/4106
Author: wladich
Title: #4106: ipatests: fix compatibility with python2 (import ConfigParser)
Action: opened
PR body:
"""
Patch ba4aaa73 backported remote_ini_file utility which requires
`configparser` module. But in python2 this module was named ConfigParser.
As we need to support both python2 and python3 in branch ipa-4-6,
I have added try-except block to allow fallback to python2 verstion import.
Related to: https://pagure.io/SSSD/sssd/issue/3937
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4106/head:pr4106
git checkout pr4106
URL: https://github.com/freeipa/freeipa/pull/4141
Author: serg-cymbaluk
Title: #4141: [Backport][ipa-4-7] Fix occasional 'whoami.data is undefined' error in FreeIPA web UI
Action: opened
PR body:
"""
Manual backport of https://github.com/freeipa/freeipa/pull/3138
'Metadata' phase (Web UI initialization flow) doesn't wait "whoami" response.
It causes the error when on the next phase "whoami" data is undefined.
To avoid this "whoami" request now has flag async = false,
so init_metadata waits until it will be completed.
Ticket: https://pagure.io/freeipa/issue/7917
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4141/head:pr4141
git checkout pr4141
URL: https://github.com/freeipa/freeipa/pull/4144
Author: tiran
Title: #4144: Make assert_error compatible with Python 3.6
Action: opened
PR body:
"""
The re.Pattern class was introduced in Python 3.7. Use duck-typing to
distinguish between str and re pattern object.
Fixes: https://pagure.io/freeipa/issue/8179
Signed-off-by: Christian Heimes <cheimes(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4144/head:pr4144
git checkout pr4144
URL: https://github.com/freeipa/freeipa/pull/4146
Author: wladich
Title: #4146: ipatests: make assert_error function compatible with python version < 3.7
Action: opened
PR body:
"""
In 3d779b4 assert_error was changed to handle both strings and compiled
regexp objects in argument `pattern`. For this it used expression
`isinstance(pattern, re.Pattern)`. re.Pattern object was introduced in
python 3.7, so the tests which call this function can not be executed
with older versions of python though and for now we claim support for
python 3.6+.
Fixed by replacing the condition with duck-typing check.
Fixes: https://pagure.io/freeipa/issue/8179
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4146/head:pr4146
git checkout pr4146