Skip to content

fix: authentication tests on WSL#2706

Merged
mdelapenya merged 2 commits intotestcontainers:mainfrom
stevenh:fix/auth-tests-wsl
Aug 19, 2024
Merged

fix: authentication tests on WSL#2706
mdelapenya merged 2 commits intotestcontainers:mainfrom
stevenh:fix/auth-tests-wsl

Conversation

@stevenh
Copy link
Copy Markdown
Contributor

@stevenh stevenh commented Aug 8, 2024

Fix docker auth tests to run on WSL by using the local IP instead of localhost, which can be unreliable.

While there refactor the tests to use a helper instead of hand coding each environment setup.

Remove duplicate logging about terminating container as default hooks already provide this.

@stevenh stevenh requested a review from a team as a code owner August 8, 2024 18:33
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 8, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 4bece41
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/66c339c683f1ef0008baf196
😎 Deploy Preview https://deploy-preview-2706--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdelapenya
Copy link
Copy Markdown
Member

I think this is a duplicate of #2705, isn't it?

@stevenh
Copy link
Copy Markdown
Contributor Author

stevenh commented Aug 9, 2024

I think this is a duplicate of #2705, isn't it?

Same issue different location, happy to merge the two if you want.

Fix docker auth tests to run on WSL by using the local IP instead
of localhost, which can be unreliable.

While there refactor the tests to use a helper instead of hand coding
each environment setup.

Remove duplicate logging about terminating container as default hooks
already provide this.
@mdelapenya mdelapenya self-assigned this Aug 19, 2024
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Aug 19, 2024
Copy link
Copy Markdown
Member

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

LGTM, in a follow up, let's reuse what #2705 added for the localhost IP.

Thanks!

@mdelapenya mdelapenya merged commit ca76ee1 into testcontainers:main Aug 19, 2024
mdelapenya added a commit that referenced this pull request Aug 22, 2024
* main:
  chore(deps): bump github/codeql-action from 3.24.9 to 3.25.15 (#2677)
  fix: use of log.Fatal in main (#2739)
  chore: prepare for next minor development cycle (0.34.0)
  chore: use new version (v0.33.0) in modules and examples
  fix: authentication tests on WSL (#2706)
  fix(registry): compatibility with WSL (#2705)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Changes that do not impact the existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants