Skip to content
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: introduce wait_for_replication in test_rolecheck_Trust #5635

Closed
wants to merge 1 commit into from

Conversation

mrizwan93
Copy link
Contributor

Test was randomly failing if the query for the server role is
executed before the replication had time to replicate the
changes on cn=adtrust agents,cn=sysaccounts,cn=etc,dc=ipa,dc=test,
as the server role is read using this entry.

related: https://pagure.io/freeipa/issue/8553

Signed-off-by: Mohammad Rizwan myusuf@redhat.com

@mrizwan93 mrizwan93 added the needs review Pull Request is waiting for a review label Mar 12, 2021
Copy link
Contributor

@flo-renaud flo-renaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mrizwan93
thanks for the PR. I have a nitpick: I would enhance the comment to explain why we need to wait for replication:

# wait for replication to propagate the change on cn=adtrust agents,cn=sysaccounts,cn=etc,dc=ipa,dc=test as the ipa server-role-find call is using this entry to build its output

@flo-renaud flo-renaud self-assigned this Mar 12, 2021
@mrizwan93 mrizwan93 force-pushed the fix-backup-rolecheck branch 2 times, most recently from 3c672d6 to 904a786 Compare March 12, 2021 12:20
@flo-renaud
Copy link
Contributor

@mrizwan93 thanks for the fix, LGTM. You can remove the temp commit.

@flo-renaud flo-renaud removed the needs review Pull Request is waiting for a review label Mar 12, 2021
Test was randomly failing if the query for the server role is
executed before the replication had time to replicate the
changes on cn=adtrust agents,cn=sysaccounts,cn=etc,dc=ipa,dc=test,
as the server role is read using this entry.

related: https://pagure.io/freeipa/issue/8553

Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
@mrizwan93 mrizwan93 added ipa-4-9 Mark for backport to ipa 4.9 re-run Trigger a new run of PR-CI labels Mar 15, 2021
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Mar 15, 2021
@mrizwan93
Copy link
Contributor Author

Adding ACK per #5635 (comment)

@mrizwan93 mrizwan93 added the ack Pull Request approved, can be merged label Mar 15, 2021
@flo-renaud flo-renaud added the pushed Pull Request has already been pushed label Mar 17, 2021
@flo-renaud
Copy link
Contributor

master:

  • 40aeec9 ipatests: introduce wait_for_replication in test_rolecheck_Trust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged ipa-4-9 Mark for backport to ipa 4.9 pushed Pull Request has already been pushed
Projects
None yet
3 participants