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

[Backport][ipa-4-8] ipatests: refactor new tests in test_smb #5065

Closed
wants to merge 2 commits into from

Conversation

rcritten
Copy link
Contributor

This PR was opened automatically because PR #4994 was pushed to master and backport to ipa-4-8 is required.

The test had two problems:
* if it was failing,  samba services were not started and all other
tests also failed
* Utility for copying keys obscured fatal problems i.e. if file does not
exist or can not be parsed.

Fixed by moving the check to separate test and raising exceptions in
KerberosKeyCopier on any unexpected problem.
Fixture enable_smb_client_dns_lookup_kdc had an unobvious structure
"contextmanage inside pytest fixture". Replaced with simple pytest
fixture.
@rcritten
Copy link
Contributor Author

PR was ACKed automatically because this is backport of PR #4994. Wait for CI to finish before pushing. In case of questions or problems contact @wladich who is author of the original PR.

@rcritten rcritten added the ack Pull Request approved, can be merged label Aug 26, 2020
@abbra abbra added the pushed Pull Request has already been pushed label Aug 27, 2020
@abbra
Copy link
Contributor

abbra commented Aug 27, 2020

ipa-4-8:

  • d560505 ipatests: refactor test for login using cifs alias principal
  • f3c6fb3 ipatests: simplify fixture

@abbra abbra closed this Aug 27, 2020
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 pushed Pull Request has already been pushed
Projects
None yet
3 participants