Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ void testSecurityManagerWarning() {
try (AgentTestContainer.JarApp app = testAppWithJavaAgent("openjdk:17", AgentFileAccessor.Variant.STANDARD)) {

app.withSecurityManager(null)
.waitingFor(Wait.forLogMessage(expectedMsg, 1))
// using a dummy command since testcontainers 1.21.0 as waiting on stderr msg is not working anymore
// when the container fails to start. Likely related to https://github.com/testcontainers/testcontainers-java/issues/9956
.waitingFor(Wait.forLogMessage(".*processing of -javaagent failed, processJavaStart failed.*", 1))
// we expect startup to fail fast as JVM should not even properly start
.withStartupTimeout(Duration.ofSeconds(1));
.withStartupTimeout(Duration.ofSeconds(3));

app.start();

Expand All @@ -83,7 +85,7 @@ void testSecurityManagerWithPolicy(@TempDir Path temp) throws IOException {

// use a 'grant all' policy for now
Files.write(tempPolicy, Arrays.asList(
"grant codeBase \"file:///tmp/elastic-apm-agent.jar\" {",
"grant codeBase \"file:///agent.jar\" {",
" permission java.security.AllPermission;",
"};"), StandardOpenOption.CREATE
);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<!-- used both for plugin & annotations dependency -->
<version.animal-sniffer>1.17</version.animal-sniffer>

<version.testcontainers>1.20.3</version.testcontainers>
<version.testcontainers>1.21.0</version.testcontainers>

<!-- latest version compiled for java 11 -->
<version.jsonunit>2.38.0</version.jsonunit>
Expand Down
Loading