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

pytest: Add support for defining domain and realm. #998

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rjeffman
Copy link
Member

@rjeffman rjeffman commented Dec 1, 2022

If running ansible-freeipa tests using pytest against an ipaserver with a domain that was not 'test.local', or did not have a zone for that domain, some tests would fail as the 'ipaserver_domain' was set to 'test.local' and some tests rely on that value to setup variables.

By allowing a user to define a different domain or realm, all tests will succeed if the domain is set correctly, enhancing development experience and allowing, if needed, in the future, tests that require different domains or realms.

@rjeffman rjeffman requested a review from t-woerner December 1, 2022 00:15
@rjeffman rjeffman force-pushed the pytest_allow_configuration_domain_realm branch 3 times, most recently from 6aa01a1 to 386004b Compare December 2, 2022 16:20
tests/utils.py Outdated Show resolved Hide resolved
tests/README.md Outdated Show resolved Hide resolved
@rjeffman rjeffman force-pushed the pytest_allow_configuration_domain_realm branch 2 times, most recently from 1343b21 to 66d8455 Compare January 17, 2023 16:53
@rjeffman rjeffman requested a review from t-woerner January 17, 2023 17:06
@rjeffman rjeffman force-pushed the pytest_allow_configuration_domain_realm branch from 66d8455 to 2066d40 Compare March 6, 2023 19:17
@rjeffman rjeffman force-pushed the pytest_allow_configuration_domain_realm branch from 2066d40 to f972c0e Compare May 16, 2023 20:21
If running ansible-freeipa tests using pytest against an ipaserver with
a domain that was not 'test.local', or did not have a zone for that
domain, some tests would fail as the 'ipaserver_domain' was set to
'test.local' and some tests rely on that value to setup variables.

By allowing a user to define a different domain or realm, all tests
will succeed if the domain is set correctly, enhancing development
experience and allowing, if needed, in the future, tests that require
different domains or realms.
@rjeffman rjeffman force-pushed the pytest_allow_configuration_domain_realm branch from f972c0e to 0b23437 Compare September 18, 2023 12:56
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