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

ipa: do not attempt to kinit if features are already detected #135

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

pbrezina
Copy link
Member

kinit was run every time this property was accessed. This caused
"Calling exit but enter was not called" exception in pytest-mh
under special conditions:

  • a test fails in a way that leaves IPA inoperable
  • IPA restore does not work
  • new test has builtwith marker that access IPA.features

In this case kinit was called, failed and exepction was thrown.
pytest-mh then skipped setup but attempted to teardown

kinit was run every time this property was accessed. This caused
"Calling exit but enter was not called" exception in pytest-mh
under special conditions:

- a test fails in a way that leaves IPA inoperable
- IPA restore does not work
- new test has `builtwith` marker that access IPA.features

In this case kinit was called, failed and exepction was thrown.
pytest-mh then skipped setup but attempted to teardown
@pbrezina
Copy link
Member Author

The condition is also handled directly in next-actions/pytest-mh#92 but it is still good to avoid unnecessary kinit call.

Copy link
Contributor

@justin-stephenson justin-stephenson left a comment

Choose a reason for hiding this comment

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

Ack.

@pbrezina pbrezina merged commit 7bcb65e into SSSD:master Nov 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants