Skip to content

Commit

Permalink
wip: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
smola committed Nov 14, 2024
1 parent bf2c393 commit e55ca18
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,23 @@ class SpringBootOpenLibertySmokeTest extends AbstractServerSmokeTest {

List<String> envParams = new ArrayList<>()
envParams.addAll(defaultJavaProperties)
envParams.addAll(
envParams.addAll([
"-Ddd.writer.type=MultiWriter:TraceStructureWriter:${output.getAbsolutePath()},DDAgentWriter",
"-Ddd.jmxfetch.enabled=false",
"-Ddd.appsec.enabled=true",
"-Ddatadog.slf4j.simpleLogger.defaultLogLevel=debug",
"-Dorg.slf4j.simpleLogger.defaultLogLevel=debug",
"-Ddd.iast.enabled=true", "-Ddd.iast.request-sampling=100",
"-Ddd.iast.enabled=true",
"-Ddd.iast.request-sampling=100",
"-Ddd.integration.spring-boot.enabled=true"
)
])


String javaToolOptions = envParams.stream().collect(Collectors.joining(" "))


ProcessBuilder processBuilder = new ProcessBuilder(command)
processBuilder.environment().put("JAVA_TOOL_OPTIONS", javaToolOptions)
processBuilder.environment().put("JVM_ARGS", javaToolOptions)
processBuilder.directory(new File(buildDirectory))
return processBuilder
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,29 @@ class SpringBootOpenLibertySmokeVulnerabilityTest extends AbstractServerSmokeTes

List<String> envParams = new ArrayList<>()
envParams.addAll(defaultJavaProperties)
envParams.addAll(
envParams.addAll([
"-Ddd.writer.type=MultiWriter:TraceStructureWriter:${output.getAbsolutePath()},DDAgentWriter",
"-Ddd.jmxfetch.enabled=false",
"-Ddd.appsec.enabled=true",
"-Ddatadog.slf4j.simpleLogger.defaultLogLevel=debug",
"-Dorg.slf4j.simpleLogger.defaultLogLevel=debug",
"-Ddd.iast.enabled=true", "-Ddd.iast.request-sampling=100"
)
"-Ddd.iast.enabled=true",
"-Ddd.iast.request-sampling=100"
])


String javaToolOptions = envParams.stream().collect(Collectors.joining(" "))


ProcessBuilder processBuilder = new ProcessBuilder(command)
processBuilder.environment().put("JAVA_TOOL_OPTIONS", javaToolOptions)
processBuilder.environment().put("JVM_ARGS", javaToolOptions)
processBuilder.directory(new File(buildDirectory))
return processBuilder
}

@Override
File createTemporaryFile() {
return new File("${buildDirectory}/tmp/springboot-openliberty.out")
return new File("${buildDirectory}/tmp/springboot-openliberty-iast.out")
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ abstract class AbstractServerSmokeTest extends AbstractSmokeTest {
return remaining
}

@RunLast
//@RunLast
void 'receive telemetry app-started'() {
when:
assumeTrue(testTelemetry())
Expand All @@ -140,7 +140,7 @@ abstract class AbstractServerSmokeTest extends AbstractSmokeTest {
}

@SuppressWarnings('UnnecessaryBooleanExpression')
@RunLast
//@RunLast
void 'receive telemetry app-dependencies-loaded'() {
when:
assumeTrue(testTelemetry())
Expand Down

0 comments on commit e55ca18

Please sign in to comment.