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

fix: skip host network tests in Docker Desktop #1285

Merged
merged 4 commits into from
Jun 14, 2023

Conversation

mdelapenya
Copy link
Collaborator

  • chore: use filepath to build the absolute path in tests
  • fix: skip host network tests in Docker Desktop

What does this PR do?

This PR adds a public function to skip tests in the case Docker Desktop is used. We are also using this new function in 4 tests, that are setting Docker's host network via the HostConfigModifier. Therefore, they will be skipped when run on Docker Desktop.

Why is it important?

This PR fixes the execution of the test suite in those environments where it's not possible to run all the tests. As an example, using the host network is not possible when running Docker Desktop (for Mac or for Windows).

With this change, it's possible now to run the entire test suite across all OSs

@mdelapenya mdelapenya requested a review from a team as a code owner June 13, 2023 14:43
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Jun 13, 2023
@mdelapenya mdelapenya self-assigned this Jun 13, 2023
@netlify
Copy link

netlify bot commented Jun 13, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit cbb9fac
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/648895012e328b0008560e10
😎 Deploy Preview https://deploy-preview-1285--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 settings.

@sonarcloud
Copy link

sonarcloud bot commented Jun 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya mdelapenya merged commit 9fb7a93 into testcontainers:main Jun 14, 2023
62 checks passed
@mdelapenya mdelapenya deleted the fix-host-network-tests branch June 14, 2023 13:58
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.

None yet

1 participant