New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipatests: Test ipa-cert-fix warns when startup directive is missing from CS.cfg #5855
Conversation
32aeb57
to
db22edc
Compare
Hi @mrizwan93 The test needs to have different expectations depending on the version of pki-server that is installed. |
db22edc
to
8088773
Compare
|
||
if (tasks.get_pki_version(self.master) | ||
< tasks.parse_version('10.11.0')): | ||
assert err_msg1 and err_msg2 in result.stderr_text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above assert is equivalent to assert (err_msg1 is not None) and (err_msg2 in stderr), which is not what the test should check.
6c96d94
to
88f6550
Compare
Hi @mrizwan93 |
…rom CS.cfg Earlier it used to fail when startup directive missing from CS.cfg. With dogtagpki/pki#3466, it changed to display a warning than failing. related: https://pagure.io/freeipa/issue/8890 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
88f6550
to
b79f375
Compare
master:
|
Hi @mrizwan93 |
In freeipa#5855 was looking into stdout_text for warning instead of stderr_text, hence was failing for pki version > 10.11.0. related: https://pagure.io/freeipa/issue/8890 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
In freeipa#5855 was looking into stdout_text for warning instead of stderr_text, hence was failing for pki version > 10.11.0. related: https://pagure.io/freeipa/issue/8890 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
In freeipa#5855 was looking into stdout_text for warning instead of stderr_text, hence was failing for pki version > 10.11.0. related: https://pagure.io/freeipa/issue/8890 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
In #5855 was looking into stdout_text for warning instead of stderr_text, hence was failing for pki version > 10.11.0. related: https://pagure.io/freeipa/issue/8890 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
In freeipa#5855 was looking into stdout_text for warning instead of stderr_text, hence was failing for pki version > 10.11.0. related: https://pagure.io/freeipa/issue/8890 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
In #5855 was looking into stdout_text for warning instead of stderr_text, hence was failing for pki version > 10.11.0. related: https://pagure.io/freeipa/issue/8890 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Earlier it used to fail when startup directive missing from CS.cfg.
With dogtagpki/pki#3466, it changed to display
a warning than failing.
related: https://pagure.io/freeipa/issue/8890
Signed-off-by: Mohammad Rizwan myusuf@redhat.com