-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
check for docker availability #2110
Comments
There is a similar feature request here: #343 . However, this feature request is much simpler. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
The PR #2605 can be used as follows: |
In java one can use the following:
|
* Sketch of LiveTest * Got an incremental deployment * testcontainers/testcontainers-java#2110 (comment) * A bit more debug info printed * JTH bump * Was missing the urn:oasis:names:tc:SAML:2.0:bindings: prefix on binding * Updating comment to reflect current stumper * Apparently including lots of XML in SamlSecurityRealm.toString() causes Jetty to silently refuse to serve 302s, maybe due to Stapler-Trace headers or something? * Forgot to update current failure * Fixed WebClient mistakes; now failing with the same error as ATH! * Need to go back to redirecting after logging in * Fixed a CCE also observed in ATH * jenkinsci/jenkins-test-harness#281 released * authenticationOKFromURL * authenticationOKPostBinding * authenticationFail * Formatting tweaks
For others searching for a similar solution, this works in the current version of TestContainers: |
It would be good to have a way to check whether Docker is actually available or not, as a simple static boolean function, e.g.
public static boolean DockerClient.isDockerAvailable()
. That would allow us to use JUnit/TestNG-specific ways to skip tests which require docker containers.The text was updated successfully, but these errors were encountered: