Skip to content

Commit 5e8f1d2

Browse files
committed
pr review
1 parent 2ed4ddb commit 5e8f1d2

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

smoke-tests/src/test/java/io/opentelemetry/smoketest/AgentDebugLoggingTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package io.opentelemetry.smoketest;
77

88
import java.time.Duration;
9+
import org.junit.jupiter.api.DisplayName;
910
import org.junit.jupiter.api.Test;
1011
import org.junit.jupiter.api.condition.DisabledIf;
1112

@@ -24,8 +25,9 @@ protected TargetWaitStrategy getWaitStrategy() {
2425
Duration.ofMinutes(1), ".*DEBUG io.opentelemetry.javaagent.tooling.VersionLogger.*");
2526
}
2627

28+
@DisplayName("verifies that debug logging is working by checking for a debug log on startup")
2729
@Test
28-
void verifyThatDebugLoggingIsWorking() throws Exception {
30+
void verifyLogging() throws Exception {
2931
withTarget(8, () -> {});
3032
}
3133
}

smoke-tests/src/test/java/io/opentelemetry/smoketest/LogsSmokeTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ protected TargetWaitStrategy getWaitStrategy() {
3232
@ParameterizedTest
3333
@ValueSource(ints = {8, 11, 17})
3434
void shouldExportLogs(int jdk) throws Exception {
35-
withTarget(jdk, () -> {
36-
client().get("/greeting").aggregate().join();
37-
Collection<LogRecordData> logs = waitForLogs();
35+
withTarget(
36+
jdk,
37+
() -> {
38+
client().get("/greeting").aggregate().join();
39+
Collection<LogRecordData> logs = waitForLogs();
3840

39-
assertThat(logs).isNotEmpty();
40-
});
41+
assertThat(logs).isNotEmpty();
42+
});
4143
}
4244
}

smoke-tests/src/test/java/io/opentelemetry/smoketest/QuarkusSmokeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected boolean getSetServiceName() {
3737

3838
@ParameterizedTest
3939
@ValueSource(ints = {17, 21, 23}) // Quarkus 3.7+ requires Java 17+
40-
void quarkusSmokeTestOnJdk(int jdk) throws Exception {
40+
void quarkusSmokeTest(int jdk) throws Exception {
4141
withTarget(
4242
jdk,
4343
() -> {

smoke-tests/src/test/java/io/opentelemetry/smoketest/SecurityManagerSmokeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected Map<String, String> getExtraEnv() {
3030

3131
@ParameterizedTest
3232
@ValueSource(ints = {8, 11, 17, 21, 23})
33-
void securityManagerSmokeTestOnJdk(int jdk) throws Exception {
33+
void securityManagerSmokeTest(int jdk) throws Exception {
3434
withTarget(
3535
jdk,
3636
() ->

smoke-tests/src/test/java/io/opentelemetry/smoketest/TargetRunner.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
package io.opentelemetry.smoketest;
27

38
@FunctionalInterface

0 commit comments

Comments
 (0)