Skip to content

Commit

Permalink
Update smoke test Java versions (#3248)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Aug 23, 2023
1 parent cdf40b3 commit 5517341
Show file tree
Hide file tree
Showing 20 changed files with 155 additions and 156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -88,12 +88,12 @@ static class Java17Test extends ActuatorMetricsTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends ActuatorMetricsTest {}

@Environment(JAVA_19)
static class Java18Test extends ActuatorMetricsTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends ActuatorMetricsTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends ActuatorMetricsTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends ActuatorMetricsTest {}

@Environment(JAVA_20)
static class Java19Test extends ActuatorMetricsTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends ActuatorMetricsTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -139,12 +139,12 @@ static class Java17Test extends CustomInstrumentationTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends CustomInstrumentationTest {}

@Environment(JAVA_19)
static class Java18Test extends CustomInstrumentationTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends CustomInstrumentationTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends CustomInstrumentationTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends CustomInstrumentationTest {}

@Environment(JAVA_20)
static class Java19Test extends CustomInstrumentationTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends CustomInstrumentationTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static java.util.Collections.emptyMap;

Expand Down Expand Up @@ -43,9 +43,9 @@ static class Java11Test extends DiagnosticExtensionTest {}
@Environment(JAVA_17)
static class Java17Test extends DiagnosticExtensionTest {}

@Environment(JAVA_19)
static class Java18Test extends DiagnosticExtensionTest {}

@Environment(JAVA_20)
static class Java19Test extends DiagnosticExtensionTest {}
static class JavaLatestTest extends DiagnosticExtensionTest {}

@Environment(JAVA_21)
static class JavaPrereleaseTest extends DiagnosticExtensionTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -79,12 +79,12 @@ static class Java17Test extends InheritedAttributesTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends InheritedAttributesTest {}

@Environment(JAVA_19)
static class Java18Test extends InheritedAttributesTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends InheritedAttributesTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends InheritedAttributesTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends InheritedAttributesTest {}

@Environment(JAVA_20)
static class Java19Test extends InheritedAttributesTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends InheritedAttributesTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -127,12 +127,12 @@ static class Java17Test extends JmsTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends JmsTest {}

@Environment(JAVA_19)
static class Java18Test extends JmsTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends JmsTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends JmsTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends JmsTest {}

@Environment(JAVA_20)
static class Java19Test extends JmsTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends JmsTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;

import org.junit.jupiter.api.Test;
Expand All @@ -23,17 +23,17 @@ void checkJavaProfilerDisabled() throws Exception {
}

@Environment(JAVA_8)
static class Java8DisabledTest extends JavaProfilerDisabledTest {}
static class Java8Test extends JavaProfilerDisabledTest {}

@Environment(JAVA_11)
static class Java11DisabledTest extends JavaProfilerDisabledTest {}
static class Java11Test extends JavaProfilerDisabledTest {}

@Environment(JAVA_17)
static class Java17DisabledTest extends JavaProfilerDisabledTest {}

@Environment(JAVA_19)
static class Java19DisabledTest extends JavaProfilerDisabledTest {}
static class Java17Test extends JavaProfilerDisabledTest {}

@Environment(JAVA_20)
static class Java20DisabledTest extends JavaProfilerDisabledTest {}
static class JavaLatestTest extends JavaProfilerDisabledTest {}

@Environment(JAVA_21)
static class JavaPrereleaseTest extends JavaProfilerDisabledTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;

import com.microsoft.applicationinsights.smoketest.schemav2.Data;
Expand Down Expand Up @@ -51,17 +51,17 @@ public static void runTest(boolean expectEnabled, SmokeTestExtension testing)
}

@Environment(JAVA_8)
static class Java8EnabledTest extends JavaProfilerEnabledTest {}
static class Java8Test extends JavaProfilerEnabledTest {}

@Environment(JAVA_11)
static class Java11EnabledTest extends JavaProfilerEnabledTest {}
static class Java11Test extends JavaProfilerEnabledTest {}

@Environment(JAVA_17)
static class Java17EnabledTest extends JavaProfilerEnabledTest {}

@Environment(JAVA_19)
static class Java18EnabledTest extends JavaProfilerEnabledTest {}
static class Java17Test extends JavaProfilerEnabledTest {}

@Environment(JAVA_20)
static class Java19EnabledTest extends JavaProfilerEnabledTest {}
static class JavaLatestTest extends JavaProfilerEnabledTest {}

@Environment(JAVA_21)
static class JavaPrereleaseTest extends JavaProfilerEnabledTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -56,12 +56,12 @@ static class Java17Test extends JettyNativeHandlerTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends JettyNativeHandlerTest {}

@Environment(JAVA_19)
static class Java18Test extends JettyNativeHandlerTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends JettyNativeHandlerTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends JettyNativeHandlerTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends JettyNativeHandlerTest {}

@Environment(JAVA_20)
static class Java19Test extends JettyNativeHandlerTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends JettyNativeHandlerTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static java.util.concurrent.TimeUnit.SECONDS;
Expand Down Expand Up @@ -144,12 +144,12 @@ static class Java17Test extends KafkaTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends KafkaTest {}

@Environment(JAVA_19)
static class Java18Test extends KafkaTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends KafkaTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends KafkaTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends KafkaTest {}

@Environment(JAVA_20)
static class Java19Test extends KafkaTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends KafkaTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -95,12 +95,12 @@ static class Java17Test extends MicrometerTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends MicrometerTest {}

@Environment(JAVA_19)
static class Java18Test extends MicrometerTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends MicrometerTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends MicrometerTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends MicrometerTest {}

@Environment(JAVA_20)
static class Java19Test extends MicrometerTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends MicrometerTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -94,12 +94,12 @@ static class Java17Test extends NonDaemonThreadsTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends NonDaemonThreadsTest {}

@Environment(JAVA_19)
static class Java18Test extends NonDaemonThreadsTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends NonDaemonThreadsTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends NonDaemonThreadsTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends NonDaemonThreadsTest {}

@Environment(JAVA_20)
static class Java19Test extends NonDaemonThreadsTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends NonDaemonThreadsTest {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_11_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_17_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_18_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_19;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_20_OPENJ9;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_21;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8;
import static com.microsoft.applicationinsights.smoketest.EnvironmentValue.JAVA_8_OPENJ9;
import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -58,12 +58,12 @@ static class Java17Test extends PreferForwardedUrlSchemeTest {}
@Environment(JAVA_17_OPENJ9)
static class Java17OpenJ9Test extends PreferForwardedUrlSchemeTest {}

@Environment(JAVA_19)
static class Java18Test extends PreferForwardedUrlSchemeTest {}
@Environment(JAVA_20)
static class JavaLatestTest extends PreferForwardedUrlSchemeTest {}

@Environment(JAVA_18_OPENJ9)
static class Java18OpenJ9Test extends PreferForwardedUrlSchemeTest {}
@Environment(JAVA_20_OPENJ9)
static class JavaLatestOpenJ9Test extends PreferForwardedUrlSchemeTest {}

@Environment(JAVA_20)
static class Java19Test extends PreferForwardedUrlSchemeTest {}
@Environment(JAVA_21)
static class JavaPrereleaseTest extends PreferForwardedUrlSchemeTest {}
}
Loading

0 comments on commit 5517341

Please sign in to comment.