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

Re-enable testcontainers tests #546

Merged
merged 3 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
testcontainers:1.19.8 - enable tests
  • Loading branch information
Kehrlann committed Nov 4, 2024
commit b39b4419f273b622b7fac22f16bf225ce8b81af8
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
nginx:1-alpine-slim
testcontainers/ryuk:0.10.2
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,16 @@

import static org.assertj.core.api.Assertions.assertThat;

// This test is pulling testcontainers/ryuk docker image version with many known vulnerabilities. It should be ignored until testcontainers change this image.
// ISSUE: /~https://github.com/oracle/graalvm-reachability-metadata/issues/250
class TestcontainersTest {
private static final boolean DEBUG = false;

// DO NOT REMOVE THIS! READ THE COMMENT ABOVE THE CLASS
// tests should be disabled until testconatiners/ryuk is fixed
private static final boolean IS_DISABLED = true;

@BeforeAll
static void beforeAll() {
// DO NOT REMOVE THIS! READ THE COMMENT ABOVE THE CLASS
if (IS_DISABLED) {
return;
}
System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", DEBUG ? "debug" : "warn");
}

@Test
void test() throws Exception {
// DO NOT REMOVE THIS! READ THE COMMENT ABOVE THE CLASS
if (IS_DISABLED) {
return;
}

try (GenericContainer<?> nginx = new GenericContainer<>("nginx:1-alpine-slim")) {
nginx.withExposedPorts(80).start();
HttpClient httpClient = HttpClient.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bundles": [],
"resources": {
"includes": [
{
"pattern": "\\Qtestcontainers.properties\\E"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ryuk.container.image=testcontainers/ryuk:0.10.2
Loading