mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
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:
1 parent
52ee0b0645
commit
3dce88baed
2 files changed
-18
No files matched your search
-6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user