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

tests: tweaks to the way routes are tested #1303

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Aug 16, 2024

tests: tweak tutil to take addr and path instead of url

This commit avoids the hardcoded URL and uses the addr that the
echo server is using. This makes it easier to run the tests on
a different port.

Mostly auto-generated via sed (unfortunately some manual tweaking
was needed because the coding style is not very consistent).

internal/tutils/tutils.go Outdated Show resolved Hide resolved
@mvo5 mvo5 force-pushed the err-type-ErrServerClosed branch 7 times, most recently from 00a1706 to c2d70b4 Compare August 17, 2024 07:12
ezr-ondrej
ezr-ondrej previously approved these changes Aug 19, 2024
Copy link
Collaborator

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

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

🧡

@ezr-ondrej
Copy link
Collaborator

Nice improvement ;)

@mvo5 mvo5 marked this pull request as ready for review August 19, 2024 09:16
schuellerf
schuellerf previously approved these changes Aug 19, 2024
croissanne
croissanne previously approved these changes Aug 19, 2024
Copy link
Member

@croissanne croissanne left a comment

Choose a reason for hiding this comment

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

yay

This commit avoids the hardcoded URL and uses the addr that the
echo server is using. This makes it easier to run the tests on
a different port.

Mostly auto-generated via `sed` (unfortunately some manual tweaking
was needed because the coding style is not very consistent).
@mvo5
Copy link
Contributor Author

mvo5 commented Aug 19, 2024

Meh, sorry, had to force push to fix a conflict, diff is trivial https://github.com/osbuild/image-builder/compare/c2d70b4805738be87ce106ba38cedf68b2bc3a9c..cb493e970114a44e52feb6807a3132195219cade but this will need one more approval now.

Copy link
Contributor

@schuellerf schuellerf left a comment

Choose a reason for hiding this comment

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

🥳

Copy link
Collaborator

@lzap lzap left a comment

Choose a reason for hiding this comment

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

Seems green now, merging thanks.

@lzap lzap merged commit 767cb9c into osbuild:main Aug 19, 2024
12 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.

5 participants