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

Force test:// URI to be used in mocked connections #163

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Nov 19, 2024

Prior to 801ce47 any URL could be used when mocking and it had preconfigured responses, but this regressed and could cause real system connections to go through.

This forces the URL to use the test:// scheme which still allows the use of test:///path/to/host/definitions as documented.

Fixes: 801ce47 ("Use test:///default in tests")
Reference: https://libvirt.org/uri.html#test-test-uris

Prior to 801ce47 any URL could be used
when mocking and it had preconfigured responses, but this regressed and
could cause real system connections to go through.

This forces the URL to use the test:// scheme which still allows the use
of test:///path/to/host/definitions as documented.

Fixes: 801ce47 ("Use test:///default in tests")
Reference: https://libvirt.org/uri.html#test-test-uris
Copy link
Contributor

@stejskalleos stejskalleos left a comment

Choose a reason for hiding this comment

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

Tested together with theforeman/foreman#10377 & it fixed the issue.

Copy link

@evgeni evgeni left a comment

Choose a reason for hiding this comment

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

This fixes the test regression we've seen in Foreman, thanks!

@ekohl ekohl marked this pull request as ready for review November 20, 2024 10:11
@ekohl ekohl requested a review from nofaralfasi November 20, 2024 10:13
@ekohl ekohl added the bug label Nov 20, 2024
@ekohl ekohl merged commit 47cface into fog:master Nov 20, 2024
7 checks passed
@ekohl ekohl deleted the force-test-urls branch November 20, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants