test: run two classes on the default application, whose profiles change nothing (#8857)

Ec2QuotaDefaultOffIntegrationTest's profile set standard-on-demand-vcpus to 5,
the value the test config already has, and the profile of
CloudWatchLogsMetricFilterRetryIntegrationTest set nothing at all: it kept the
class off a shared application because the class resets all state over HTTP,
which many classes on the default application and on shared profiles already
do. Both classes now run on the default application, so two
applications fewer are built.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-18 09:00:45 -04:00
1 parent 52ee0b0645
commit 3dce88baed
2 files changed
-18

No files matched your search

@@ -3,8 +3,6 @@ package io.floci.aws.services.cloudwatch.logs;
import io.floci.aws.services.cloudwatch.metrics.CloudWatchMetricsService;
import io.floci.aws.testing.RestAssuredJsonUtils;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.QuarkusTestProfile;
import io.quarkus.test.junit.TestProfile;
import io.quarkus.test.junit.mockito.InjectSpy;
import io.restassured.response.Response;
import jakarta.inject.Inject;
@@ -26,11 +24,7 @@ import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
@QuarkusTest
@TestProfile(CloudWatchLogsMetricFilterRetryIntegrationTest.ResetIsolationProfile.class)
class CloudWatchLogsMetricFilterRetryIntegrationTest {
/** HTTP reset wipes every service; do not share this application with other test classes. */
public static class ResetIsolationProfile implements QuarkusTestProfile {}
@InjectSpy CloudWatchMetricsService metrics;
@Inject CloudWatchLogsMetricFilterService publications;
private static final String REGION = "eu-west-1";
@@ -1,24 +1,12 @@
package io.floci.aws.services.ec2;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.QuarkusTestProfile;
import io.quarkus.test.junit.TestProfile;
import org.junit.jupiter.api.Test;
import java.util.Map;
import static io.restassured.RestAssured.given;
@QuarkusTest
@TestProfile(Ec2QuotaDefaultOffIntegrationTest.Disabled.class)
class Ec2QuotaDefaultOffIntegrationTest {
public static class Disabled implements QuarkusTestProfile {
@Override
public Map<String, String> getConfigOverrides() {
return Map.of("floci.services.servicequotas.standard-on-demand-vcpus", "5");
}
}
@Test
void defaultOffKeepsSixMicroInstancesAcceptable() {
try {