mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
test: run the Docker end-to-end classes nightly and on pull requests that change their service (#9310)
This commit is contained in:
1 parent
b504a2e9c2
commit
0b232e7f06
113 files changed
+715
-271
No files matched your search
@@ -9,8 +9,8 @@ class AppSyncJsResolverDockerJsonTest {
|
||||
|
||||
@Test
|
||||
void carriageReturnResolverCodeRemainsValidJson() throws Exception {
|
||||
String code = AppSyncJsResolverDockerIntegrationTest.COMMENT_CR_RESOLVER;
|
||||
String request = "{\"code\":\"" + AppSyncJsResolverDockerIntegrationTest.escape(code) + "\"}";
|
||||
String code = AppSyncJsResolverDockerNightlyIntegrationTest.COMMENT_CR_RESOLVER;
|
||||
String request = "{\"code\":\"" + AppSyncJsResolverDockerNightlyIntegrationTest.escape(code) + "\"}";
|
||||
|
||||
assertEquals(code, new ObjectMapper().readTree(request).get("code").asText());
|
||||
}
|
||||
|
||||
+3
-1
@@ -10,6 +10,7 @@ import io.restassured.response.ValidatableResponse;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@@ -34,7 +35,8 @@ import static org.hamcrest.Matchers.nullValue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
class AppSyncJsResolverDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class AppSyncJsResolverDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260205/us-east-1/appsync/aws4_request";
|
||||
+1
-1
@@ -99,7 +99,7 @@ class RedshiftServerlessCfnIntegrationTest {
|
||||
/**
|
||||
* The metadata behaviour under test needs no PostgreSQL container, so the runtime is replaced:
|
||||
* these tests then run without Docker, and the real container and proxy are exercised by
|
||||
* {@code RedshiftServerlessRuntimeIntegrationTest}.
|
||||
* {@code RedshiftServerlessRuntimeDockerNightlyIntegrationTest}.
|
||||
*/
|
||||
@InjectMock
|
||||
RedshiftServerlessRuntime runtime;
|
||||
|
||||
+5
-3
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -29,12 +30,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
* commons-compress} (a real {@code Cargo.toml} inside a real gzipped tarball), not a captured
|
||||
* fixture: what this class needs to prove is the real container's behavior, not a client
|
||||
* library's fidelity to the wire format, the same reasoning {@link
|
||||
* CodeArtifactNuGetDockerIntegrationTest}'s own class-level documentation gives for NuGet.
|
||||
* CodeArtifactNuGetDockerNightlyIntegrationTest}'s own class-level documentation gives for NuGet.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class CodeArtifactCargoDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CodeArtifactCargoDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH = "AWS4-HMAC-SHA256 Credential=AKID/20260904/us-east-1/codeartifact/aws4_request";
|
||||
private static final String DOMAIN = "cargo-sidecar-domain";
|
||||
@@ -70,7 +72,7 @@ class CodeArtifactCargoDockerIntegrationTest {
|
||||
|
||||
/**
|
||||
* {@code config.json} must be rooted at the exact endpoint {@code GetRepositoryEndpoint}
|
||||
* itself returns, the same requirement {@link CodeArtifactNuGetDockerIntegrationTest}'s own
|
||||
* itself returns, the same requirement {@link CodeArtifactNuGetDockerNightlyIntegrationTest}'s own
|
||||
* service-index test proves for NuGet: a real {@code cargo} client's own sparse-registry
|
||||
* resolver only trusts an absolute {@code dl}/{@code api} rooted at the address it already
|
||||
* reached this response through.
|
||||
+4
-2
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.floci.aws.testing.CodeArtifactRequests.putPackageOriginConfiguration;
|
||||
import static io.restassured.RestAssured.given;
|
||||
@@ -34,7 +35,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class CodeArtifactCargoExternalConnectionDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CodeArtifactCargoExternalConnectionDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH = "AWS4-HMAC-SHA256 Credential=AKID/20260904/us-east-1/codeartifact/aws4_request";
|
||||
private static final String DOMAIN = "cargo-external-connection-domain";
|
||||
@@ -235,7 +237,7 @@ class CodeArtifactCargoExternalConnectionDockerIntegrationTest {
|
||||
|
||||
/**
|
||||
* Releases every Kellnr container this class started (see {@code
|
||||
* CodeArtifactCargoDockerIntegrationTest#releasesItsOwnKellnrContainerSoALaterUnrelatedResetDoesNotHaveToStopIt}'s
|
||||
* CodeArtifactCargoDockerNightlyIntegrationTest#releasesItsOwnKellnrContainerSoALaterUnrelatedResetDoesNotHaveToStopIt}'s
|
||||
* own javadoc for why this is a real ordered {@code @Test} and not {@code @AfterAll}),
|
||||
* including the mixed-case test's own separate repository.
|
||||
*/
|
||||
+5
-3
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.floci.aws.testing.CodeArtifactRequests.cargoCrateBytes;
|
||||
import static io.floci.aws.testing.CodeArtifactRequests.cargoPublishBody;
|
||||
@@ -27,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
* repository's own, and the destination's), not a mock standing in for either. See {@link
|
||||
* CodeArtifactCargoUpstreamRepositoryImporterTest} for the mocked, deterministic coverage of the
|
||||
* claim/fence/walk/archived-propagation logic this test does not re-exercise, mirroring {@link
|
||||
* CodeArtifactCargoExternalConnectionDockerIntegrationTest}'s own shape and reasoning for why a
|
||||
* CodeArtifactCargoExternalConnectionDockerNightlyIntegrationTest}'s own shape and reasoning for why a
|
||||
* live test earns its place alongside a thorough mocked one: the one thing mocks cannot prove is
|
||||
* that the real synthesized wire body this importer builds from one Kellnr's own real sparse-index
|
||||
* line is actually accepted by a second, genuinely different Kellnr container.
|
||||
@@ -35,7 +36,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class CodeArtifactCargoUpstreamRepositoryDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CodeArtifactCargoUpstreamRepositoryDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH = "AWS4-HMAC-SHA256 Credential=AKID/20260904/us-east-1/codeartifact/aws4_request";
|
||||
private static final String DOMAIN = "cargo-upstream-repo-domain";
|
||||
@@ -204,7 +206,7 @@ class CodeArtifactCargoUpstreamRepositoryDockerIntegrationTest {
|
||||
|
||||
/**
|
||||
* Releases every Kellnr container this class started: see {@code
|
||||
* CodeArtifactCargoDockerIntegrationTest}'s own javadoc note on why this is a real ordered
|
||||
* CodeArtifactCargoDockerNightlyIntegrationTest}'s own javadoc note on why this is a real ordered
|
||||
* {@code @Test} and not {@code @AfterAll}.
|
||||
*/
|
||||
@Test
|
||||
+4
-2
@@ -17,6 +17,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -59,7 +60,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class CodeArtifactNpmDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CodeArtifactNpmDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH = "AWS4-HMAC-SHA256 Credential=AKID/20260904/us-east-1/codeartifact/aws4_request";
|
||||
private static final String DOMAIN = "npm-sidecar-domain";
|
||||
@@ -79,7 +81,7 @@ class CodeArtifactNpmDockerIntegrationTest {
|
||||
RestAssuredJsonUtils.configureAwsContentTypes();
|
||||
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
try (InputStream in = CodeArtifactNpmDockerIntegrationTest.class
|
||||
try (InputStream in = CodeArtifactNpmDockerNightlyIntegrationTest.class
|
||||
.getResourceAsStream("/codeartifact/npm-publish-fixture.json")) {
|
||||
publishFixture = in.readAllBytes();
|
||||
}
|
||||
+3
-1
@@ -12,6 +12,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
@@ -41,7 +42,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class CodeArtifactNuGetDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CodeArtifactNuGetDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH = "AWS4-HMAC-SHA256 Credential=AKID/20260904/us-east-1/codeartifact/aws4_request";
|
||||
private static final String DOMAIN = "nuget-sidecar-domain";
|
||||
+4
-2
@@ -15,6 +15,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -54,7 +55,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class CodeArtifactPypiDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CodeArtifactPypiDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH = "AWS4-HMAC-SHA256 Credential=AKID/20260904/us-east-1/codeartifact/aws4_request";
|
||||
private static final String NON_DEFAULT_REGION_AUTH =
|
||||
@@ -847,7 +849,7 @@ class CodeArtifactPypiDockerIntegrationTest {
|
||||
* named right: {@code ContainerTeardowns.stopAll} runs every {@code ContainerTeardown} on
|
||||
* {@code /state/reset}, and this is what stops a live container.
|
||||
*
|
||||
* <p>Ordered before every other test, for the same reason {@code CodeArtifactNpmDockerIntegrationTest}'s
|
||||
* <p>Ordered before every other test, for the same reason {@code CodeArtifactNpmDockerNightlyIntegrationTest}'s
|
||||
* equivalent reset test runs first: a reset stops every container this process's pool is
|
||||
* tracking, not just the one this test starts, so running it after the other tests would sweep
|
||||
* up their containers too and break the baseline comparison for a reason unrelated to whether
|
||||
+4
-2
@@ -24,6 +24,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
@@ -67,9 +68,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* daemon, like the other {@code *DockerIntegrationTest} classes.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(CodeBuildServiceRoleDockerIntegrationTest.Profile.class)
|
||||
@TestProfile(CodeBuildServiceRoleDockerNightlyIntegrationTest.Profile.class)
|
||||
@Timeout(value = 10, unit = TimeUnit.MINUTES)
|
||||
class CodeBuildServiceRoleDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CodeBuildServiceRoleDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CONTENT_TYPE = "application/x-amz-json-1.1";
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
+4
-4
@@ -11,7 +11,7 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -30,7 +30,7 @@ import static org.hamcrest.Matchers.hasKey;
|
||||
* default account that the scheduler thread starts in.
|
||||
*
|
||||
* <p>This is the daily-mode counterpart to
|
||||
* {@link CurNonDefaultAccountEmissionIntegrationTest}, which covers the
|
||||
* {@link CurNonDefaultAccountEmissionDockerNightlyIntegrationTest}, which covers the
|
||||
* synchronous path. Without {@code CurEmissionScheduler#runUnderAccount}, the
|
||||
* staging write would land in the default account's S3 partition while
|
||||
* DuckDB would try to read it from account 111111111111 — triggering
|
||||
@@ -38,8 +38,8 @@ import static org.hamcrest.Matchers.hasKey;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@EnabledIfEnvironmentVariable(named = "FLOCI_DUCK_CROSS_CONTAINER_TEST", matches = "1|true|yes")
|
||||
class CurDailyEmissionAccountIsolationIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CurDailyEmissionAccountIsolationDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CONTENT_TYPE = "application/x-amz-json-1.1";
|
||||
private static final String ACCOUNT_ID = "111111111111";
|
||||
+4
-10
@@ -11,7 +11,7 @@ import jakarta.inject.Inject;
|
||||
import org.hamcrest.Matchers;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -29,16 +29,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
* {@link EmissionEngine} -> {@link ParquetEmitter} -> DuckDB sidecar ->
|
||||
* Parquet object readable from Floci S3.
|
||||
*/
|
||||
/*
|
||||
* Requires the {@code floci-duck} sidecar plus a host-network where the
|
||||
* sidecar can reach Floci's S3 service. Opt in via
|
||||
* {@code FLOCI_DUCK_CROSS_CONTAINER_TEST=1}; see
|
||||
* {@link ParquetEmitterIntegrationTest} for prerequisites.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(RdsMockProfile.class)
|
||||
@EnabledIfEnvironmentVariable(named = "FLOCI_DUCK_CROSS_CONTAINER_TEST", matches = "1|true|yes")
|
||||
class CurEmissionIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CurEmissionDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CONTENT_TYPE = "application/x-amz-json-1.1";
|
||||
private static final String AUTH =
|
||||
@@ -105,7 +99,7 @@ class CurEmissionIntegrationTest {
|
||||
"\"ReportName\":\"sync-status\"," +
|
||||
"\"TimeUnit\":\"MONTHLY\",\"Format\":\"Parquet\",\"Compression\":\"Parquet\"," +
|
||||
"\"AdditionalSchemaElements\":[]," +
|
||||
"\"S3Bucket\":\"" + destBucket + "\",\"S3Region\":\"us-east-1\"}}";
|
||||
"\"S3Bucket\":\"" + destBucket + "\",\"S3Prefix\":\"billing/\",\"S3Region\":\"us-east-1\"}}";
|
||||
|
||||
given()
|
||||
.contentType(CONTENT_TYPE)
|
||||
+4
-7
@@ -6,7 +6,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
@@ -21,15 +21,12 @@ import static org.hamcrest.Matchers.equalTo;
|
||||
* the Parquet read/write would fall back to the default account and fail with
|
||||
* {@code NoSuchBucket} or write into a same-named default-account bucket.
|
||||
*
|
||||
* <p>Requires the {@code floci-duck} sidecar plus a host-network where the
|
||||
* sidecar can reach Floci's S3 service. Opt in via
|
||||
* {@code FLOCI_DUCK_CROSS_CONTAINER_TEST=1}; see
|
||||
* {@link ParquetEmitterIntegrationTest} for prerequisites.
|
||||
* <p>Starts the {@code floci-duck} sidecar, so it runs nightly.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(RdsMockProfile.class)
|
||||
@EnabledIfEnvironmentVariable(named = "FLOCI_DUCK_CROSS_CONTAINER_TEST", matches = "1|true|yes")
|
||||
class CurNonDefaultAccountEmissionIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class CurNonDefaultAccountEmissionDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CONTENT_TYPE = "application/x-amz-json-1.1";
|
||||
private static final String ACCOUNT_ID = "111111111111";
|
||||
+3
-13
@@ -9,7 +9,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
@@ -34,20 +34,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* {@code floci/floci-duck:latest} on first run. Same prerequisite as
|
||||
* {@code AthenaIntegrationTest}.
|
||||
*/
|
||||
/*
|
||||
* Requires the {@code floci-duck} sidecar container plus a network where
|
||||
* the sidecar can reach Floci's S3 service via {@code host.docker.internal}.
|
||||
* That works on macOS / Windows Docker Desktop out of the box, but Linux
|
||||
* CI runners don't resolve that hostname unless the container is started
|
||||
* with {@code --add-host=host.docker.internal:host-gateway}, which Floci's
|
||||
* {@code FlociDuckManager} doesn't do today. Opt in via
|
||||
* {@code FLOCI_DUCK_CROSS_CONTAINER_TEST=1} (e.g. local macOS, or a CI
|
||||
* runner that adds the host alias).
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@EnabledIfEnvironmentVariable(named = "FLOCI_DUCK_CROSS_CONTAINER_TEST", matches = "1|true|yes")
|
||||
class ParquetEmitterIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class ParquetEmitterDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Instant JAN_15 = Instant.parse("2026-01-15T00:00:00Z");
|
||||
private static final Instant JAN_16 = Instant.parse("2026-01-16T00:00:00Z");
|
||||
+3
-1
@@ -5,6 +5,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
@@ -12,7 +13,8 @@ import static org.hamcrest.Matchers.not;
|
||||
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class DocDbIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class DocDbDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String FORM = "application/x-www-form-urlencoded";
|
||||
private static final String CLUSTER_ID = "my-docdb-cluster";
|
||||
+3
-1
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static io.restassured.http.ContentType.URLENC;
|
||||
@@ -21,7 +22,8 @@ import static org.hamcrest.Matchers.containsString;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class DocDbGlobalClusterIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class DocDbGlobalClusterDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CLUSTER_ID = "gc-read-back-cluster";
|
||||
|
||||
+3
-1
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static io.restassured.http.ContentType.URLENC;
|
||||
@@ -23,7 +24,8 @@ import static org.hamcrest.Matchers.not;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class DocDbTagIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class DocDbTagDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CLUSTER = "tag-test-cluster";
|
||||
private static final String INSTANCE = "tag-test-instance";
|
||||
+3
-1
@@ -14,6 +14,7 @@ import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.postgresql.util.PSQLException;
|
||||
|
||||
import java.sql.Connection;
|
||||
@@ -47,7 +48,8 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||
@TestProfile(SidecarServiceSettingsProfile.class)
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
@Tag("docker")
|
||||
class DsqlExternalBackendIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class DsqlExternalBackendDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
DockerClient dockerClient;
|
||||
+5
-3
@@ -22,6 +22,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
@@ -44,9 +45,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
/** The DynamoDB API served by an external DynamoDB Local, reached at FLOCI_SERVICES_DYNAMODB_LOCAL_ENDPOINT. */
|
||||
@QuarkusTest
|
||||
@TestProfile(DynamoDbLocalBackendIntegrationTest.LocalProfile.class)
|
||||
@EnabledIfEnvironmentVariable(named = DynamoDbLocalBackendIntegrationTest.ENDPOINT_VARIABLE, matches = ".+")
|
||||
class DynamoDbLocalBackendIntegrationTest {
|
||||
@TestProfile(DynamoDbLocalBackendDockerNightlyIntegrationTest.LocalProfile.class)
|
||||
@EnabledIfEnvironmentVariable(named = DynamoDbLocalBackendDockerNightlyIntegrationTest.ENDPOINT_VARIABLE, matches = ".+")
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class DynamoDbLocalBackendDockerNightlyIntegrationTest {
|
||||
|
||||
static final String ENDPOINT_VARIABLE = "FLOCI_SERVICES_DYNAMODB_LOCAL_ENDPOINT";
|
||||
|
||||
+4
-2
@@ -23,6 +23,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.ArrayList;
|
||||
@@ -49,7 +50,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(IndependentServiceSettingsProfile.class)
|
||||
class Ec2VolumeBlockDeviceDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class Ec2VolumeBlockDeviceDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
Ec2Service ec2Service;
|
||||
@@ -69,7 +71,7 @@ class Ec2VolumeBlockDeviceDockerIntegrationTest {
|
||||
@Inject
|
||||
EmulatorConfig config;
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(Ec2VolumeBlockDeviceDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(Ec2VolumeBlockDeviceDockerNightlyIntegrationTest.class);
|
||||
|
||||
private final List<String> containersToClean = new ArrayList<>();
|
||||
private final List<String> volumesToClean = new ArrayList<>();
|
||||
+3
-1
@@ -14,6 +14,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -29,7 +30,8 @@ import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class SecurityGroupFirewallDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class SecurityGroupFirewallDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String METADATA_AND_WEB_SERVERS = """
|
||||
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
||||
+4
-2
@@ -21,6 +21,7 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
@@ -39,8 +40,9 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
* Docker network: the stand-in for a Lambda function or an instance in the same VPC.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(EcsAwsvpcTaskAddressDockerIntegrationTest.VpcNetworksProfile.class)
|
||||
class EcsAwsvpcTaskAddressDockerIntegrationTest {
|
||||
@TestProfile(EcsAwsvpcTaskAddressDockerNightlyIntegrationTest.VpcNetworksProfile.class)
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsAwsvpcTaskAddressDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String SUBNET = Ec2Service.defaultSubnetId("us-east-1", "a", "000000000000");
|
||||
+3
-1
@@ -13,6 +13,7 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
@@ -35,7 +36,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
@QuarkusTest
|
||||
@TestProfile(ScopedServiceSettingsProfile.class)
|
||||
class EcsEssentialContainerExitDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsEssentialContainerExitDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
DockerClient docker;
|
||||
+3
-1
@@ -19,6 +19,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Arrays;
|
||||
@@ -39,7 +40,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(ScopedServiceSettingsProfile.class)
|
||||
class EcsLinuxParametersDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsLinuxParametersDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String ECS_CT = "application/x-amz-json-1.1";
|
||||
+5
-3
@@ -30,6 +30,7 @@ import org.jboss.logging.Logger;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
@@ -56,10 +57,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* <p>Skipped without a Linux Docker daemon, which security-group enforcement requires.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(EcsSecurityGroupTaskRoleDockerIntegrationTest.ProtectedTaskRoleProfile.class)
|
||||
class EcsSecurityGroupTaskRoleDockerIntegrationTest {
|
||||
@TestProfile(EcsSecurityGroupTaskRoleDockerNightlyIntegrationTest.ProtectedTaskRoleProfile.class)
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsSecurityGroupTaskRoleDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EcsSecurityGroupTaskRoleDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EcsSecurityGroupTaskRoleDockerNightlyIntegrationTest.class);
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String SUBNET = Ec2Service.defaultSubnetId("us-east-1", "a", "000000000000");
|
||||
private static final String NETWORK = "floci-ecs-sg-task-role-it";
|
||||
+3
-1
@@ -22,6 +22,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -46,7 +47,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(ValidateSignaturesProfile.class)
|
||||
class EcsServiceDiscoveryDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsServiceDiscoveryDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String SUBNET = Ec2Service.defaultSubnetId("us-east-1", "a", "000000000000");
|
||||
+4
-2
@@ -24,6 +24,7 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
@@ -44,8 +45,9 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
* reach each other on localhost, and every one of them answers at the task's ENI address.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(EcsSharedTaskNetworkDockerIntegrationTest.SharedTaskNetworkProfile.class)
|
||||
class EcsSharedTaskNetworkDockerIntegrationTest {
|
||||
@TestProfile(EcsSharedTaskNetworkDockerNightlyIntegrationTest.SharedTaskNetworkProfile.class)
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsSharedTaskNetworkDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String SUBNET = Ec2Service.defaultSubnetId("us-east-1", "a", "000000000000");
|
||||
+3
-1
@@ -19,6 +19,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -43,7 +44,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
class EcsContainerManagerEphemeralVolumesDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsContainerManagerEphemeralVolumesDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
EcsContainerManager manager;
|
||||
+3
-1
@@ -19,6 +19,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
@@ -34,7 +35,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class EcsContainerManagerFirelensDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsContainerManagerFirelensDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String IMAGE = TestImages.BUSYBOX;
|
||||
/** A real FireLens router image: Floci writes the generated config to its own
|
||||
+3
-1
@@ -28,6 +28,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -58,7 +59,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* Docker volume inheritance the app cannot even start because {@code /shared/wrapper} is absent.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class EcsContainerManagerVolumesFromDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsContainerManagerVolumesFromDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String BUSYBOX_IMAGE = TestImages.BUSYBOX;
|
||||
|
||||
+3
-1
@@ -22,6 +22,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.time.Instant;
|
||||
@@ -51,7 +52,8 @@ import static org.mockito.Mockito.when;
|
||||
* <p>Skipped without a Docker daemon, like the other {@code *DockerIntegrationTest} classes.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class EcsCredentialsProxyDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EcsCredentialsProxyDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
DockerClient dockerClient;
|
||||
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.when;
|
||||
/**
|
||||
* Covers the checks that never need a real Docker daemon. The parts that actually launch and
|
||||
* verify a container are proved end to end in
|
||||
* {@code EcsCredentialsProxyDockerIntegrationTest} instead: mocking the exec/callback plumbing
|
||||
* {@code EcsCredentialsProxyDockerNightlyIntegrationTest} instead: mocking the exec/callback plumbing
|
||||
* that {@link EcsCredentialsProxy#ensureProxyOn} depends on would mostly test the mock, not the
|
||||
* behaviour a runtime that silently drops {@code LinkLocalIPs} is meant to be caught by.
|
||||
*/
|
||||
|
||||
+5
-3
@@ -19,6 +19,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
@@ -29,9 +30,10 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class EksControlPlaneLogsDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksControlPlaneLogsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksControlPlaneLogsDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksControlPlaneLogsDockerNightlyIntegrationTest.class);
|
||||
private static final String TEST_IMAGE = "alpine:3.21";
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
@@ -58,7 +60,7 @@ class EksControlPlaneLogsDockerIntegrationTest {
|
||||
void requireDocker() {
|
||||
boolean dockerAvailable = isDockerAvailable();
|
||||
if (!dockerAvailable) {
|
||||
LOG.warn("Docker daemon is not available; skipping EksControlPlaneLogsDockerIntegrationTest");
|
||||
LOG.warn("Docker daemon is not available; skipping EksControlPlaneLogsDockerNightlyIntegrationTest");
|
||||
}
|
||||
Assumptions.assumeTrue(dockerAvailable, "Docker daemon must be available for EKS control plane logs integration test");
|
||||
}
|
||||
+4
-2
@@ -19,6 +19,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.UUID;
|
||||
@@ -36,9 +37,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(CloudFormationSettingsProfile.class)
|
||||
class EksImdsDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksImdsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksImdsDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksImdsDockerNightlyIntegrationTest.class);
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
private static final String POD = "imds-client";
|
||||
private static final String IMDS = "http://169.254.169.254/latest/meta-data/";
|
||||
+5
-3
@@ -15,6 +15,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.UUID;
|
||||
@@ -41,9 +42,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(S3IamEnforcementProfile.class)
|
||||
class EksIrsaDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksIrsaDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksIrsaDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksIrsaDockerNightlyIntegrationTest.class);
|
||||
private static final String FORM = "application/x-www-form-urlencoded";
|
||||
|
||||
/**
|
||||
@@ -77,7 +79,7 @@ class EksIrsaDockerIntegrationTest {
|
||||
void requireDocker() {
|
||||
boolean dockerAvailable = DockerAvailability.answers(dockerClient);
|
||||
if (!dockerAvailable) {
|
||||
LOG.warn("Docker daemon is not available; skipping EksIrsaDockerIntegrationTest");
|
||||
LOG.warn("Docker daemon is not available; skipping EksIrsaDockerNightlyIntegrationTest");
|
||||
}
|
||||
Assumptions.assumeTrue(dockerAvailable, "Docker daemon must be available for EKS IRSA integration test");
|
||||
}
|
||||
+4
-2
@@ -13,6 +13,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.UUID;
|
||||
@@ -28,9 +29,10 @@ import java.util.UUID;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(RdsMockProfile.class)
|
||||
class EksNodeMountPropagationDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksNodeMountPropagationDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksNodeMountPropagationDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksNodeMountPropagationDockerNightlyIntegrationTest.class);
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
private static final String POD = "mount-propagation";
|
||||
|
||||
+4
-2
@@ -20,6 +20,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Arrays;
|
||||
@@ -49,9 +50,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(EksPodIdentityProfile.class)
|
||||
class EksPodIdentityAgentDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksPodIdentityAgentDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksPodIdentityAgentDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksPodIdentityAgentDockerNightlyIntegrationTest.class);
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
private static final String POD = "pod-identity-client";
|
||||
private static final String CREDENTIALS_URL = "http://169.254.170.23/v1/credentials";
|
||||
+5
-3
@@ -26,6 +26,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.api.extension.RegisterExtension;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -60,9 +61,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
@TestProfile(RdsMockProfile.class)
|
||||
// Bounded cluster/workload waits total 285 s; allow Docker setup and cleanup as well.
|
||||
@Timeout(value = 6, unit = TimeUnit.MINUTES)
|
||||
class EksRegistryHostsDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksRegistryHostsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksRegistryHostsDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksRegistryHostsDockerNightlyIntegrationTest.class);
|
||||
private static final String JSON = "application/json";
|
||||
private static final String POD = "registry-hosts-pod";
|
||||
// Not "000000000000": the generated ECR mirror only covers the default account, so this account's
|
||||
@@ -94,7 +96,7 @@ class EksRegistryHostsDockerIntegrationTest {
|
||||
void requireDocker() {
|
||||
boolean dockerAvailable = DockerAvailability.answers(dockerClient);
|
||||
if (!dockerAvailable) {
|
||||
LOG.warn("Docker daemon is not available; skipping EksRegistryHostsDockerIntegrationTest");
|
||||
LOG.warn("Docker daemon is not available; skipping EksRegistryHostsDockerNightlyIntegrationTest");
|
||||
}
|
||||
Assumptions.assumeTrue(dockerAvailable, "Docker daemon must be available for the registry-hosts integration test");
|
||||
}
|
||||
+5
-3
@@ -14,6 +14,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.UUID;
|
||||
@@ -31,9 +32,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(RdsMockProfile.class)
|
||||
class EksStorageClassDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksStorageClassDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksStorageClassDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksStorageClassDockerNightlyIntegrationTest.class);
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
|
||||
@Inject
|
||||
@@ -48,7 +50,7 @@ class EksStorageClassDockerIntegrationTest {
|
||||
void requireDocker() {
|
||||
boolean dockerAvailable = DockerAvailability.answers(dockerClient);
|
||||
if (!dockerAvailable) {
|
||||
LOG.warn("Docker daemon is not available; skipping EksStorageClassDockerIntegrationTest");
|
||||
LOG.warn("Docker daemon is not available; skipping EksStorageClassDockerNightlyIntegrationTest");
|
||||
}
|
||||
Assumptions.assumeTrue(dockerAvailable, "Docker daemon must be available for EKS storage class integration test");
|
||||
}
|
||||
+5
-3
@@ -12,6 +12,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
@@ -23,9 +24,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class EksVpcRouteProgrammingDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EksVpcRouteProgrammingDockerNightlyIntegrationTest {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(EksVpcRouteProgrammingDockerIntegrationTest.class);
|
||||
private static final Logger LOG = Logger.getLogger(EksVpcRouteProgrammingDockerNightlyIntegrationTest.class);
|
||||
private static final String TEST_IMAGE = "alpine:3.21";
|
||||
|
||||
@Inject
|
||||
@@ -43,7 +45,7 @@ class EksVpcRouteProgrammingDockerIntegrationTest {
|
||||
void requireDocker() {
|
||||
boolean dockerAvailable = isDockerAvailable();
|
||||
if (!dockerAvailable) {
|
||||
LOG.warn("Docker daemon is not available; skipping EksVpcRouteProgrammingDockerIntegrationTest");
|
||||
LOG.warn("Docker daemon is not available; skipping EksVpcRouteProgrammingDockerNightlyIntegrationTest");
|
||||
}
|
||||
Assumptions.assumeTrue(dockerAvailable, "Docker daemon must be available for VPC route programming integration test");
|
||||
}
|
||||
+3
-1
@@ -14,6 +14,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.net.Socket;
|
||||
import java.net.URI;
|
||||
@@ -38,7 +39,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class ElastiCacheClusterAccessStringIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class ElastiCacheClusterAccessStringDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH_HEADER =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260412/us-east-1/elasticache/aws4_request";
|
||||
+3
-1
@@ -11,6 +11,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -35,7 +36,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class ElastiCacheClusterIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class ElastiCacheClusterDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH_HEADER =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260412/us-east-1/elasticache/aws4_request";
|
||||
+3
-1
@@ -12,6 +12,7 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import io.restassured.response.Response;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.api.extension.RegisterExtension;
|
||||
import software.amazon.awssdk.core.sync.RequestBody;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
@@ -39,7 +40,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(CloudFormationSettingsProfile.class)
|
||||
class EmrServerlessHiveDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EmrServerlessHiveDockerNightlyIntegrationTest {
|
||||
|
||||
private static final ObjectMapper JSON = new ObjectMapper();
|
||||
private static final String REGION = "us-east-1";
|
||||
+3
-1
@@ -14,6 +14,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.sql.Connection;
|
||||
@@ -34,7 +35,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* integration test.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class FirehoseRedshiftDeliveryIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class FirehoseRedshiftDeliveryDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
FirehoseService firehoseService;
|
||||
+1
-1
@@ -171,7 +171,7 @@ class UnknownAccessKeyEnforcementIntegrationTest {
|
||||
@Test
|
||||
void aQueryManagementCallSignedWithTheRootStandInIsAllowed() {
|
||||
// What a test fixture does when it sets up IAM state under enforcement, and what
|
||||
// EksIrsaDockerIntegrationTest relies on now that an unsigned CreateRole is refused.
|
||||
// EksIrsaDockerNightlyIntegrationTest relies on now that an unsigned CreateRole is refused.
|
||||
given()
|
||||
.contentType("application/x-www-form-urlencoded")
|
||||
.header("Authorization", "AWS4-HMAC-SHA256 Credential=test/20260101/us-east-1/iam/aws4_request, "
|
||||
|
||||
+3
-1
@@ -13,6 +13,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.time.Duration;
|
||||
@@ -30,7 +31,8 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||
* SQS OnFailure destination, and the shard goes on with the next record.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class KinesisEsmOnFailureDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class KinesisEsmOnFailureDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String BASE_PATH = "/2015-03-31";
|
||||
private static final String REGION = "us-east-1";
|
||||
+3
-1
@@ -10,6 +10,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.UUID;
|
||||
@@ -23,7 +24,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* the test config to 1 s then 2 s) and that Invoke's Qualifier selects the alias's asynchronous settings.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class LambdaAsyncRetryDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class LambdaAsyncRetryDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String BASE_PATH = "/2015-03-31";
|
||||
private static final String CONFIG_PATH = "/2019-09-25";
|
||||
+3
-1
@@ -8,6 +8,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import software.amazon.awssdk.core.SdkBytes;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
import software.amazon.awssdk.services.lambda.LambdaClient;
|
||||
@@ -30,7 +31,8 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class LambdaInvokeLogTailDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class LambdaInvokeLogTailDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
DockerClient dockerClient;
|
||||
+3
-1
@@ -7,6 +7,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
@@ -28,7 +29,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* sync Invoke reports it as a function error. The compat suite covers the full checkpoint loop.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class LambdaDurableFunctionsDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class LambdaDurableFunctionsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String LAMBDA = "/2015-03-31";
|
||||
private static final String DURABLE = "/2025-12-01";
|
||||
+5
-3
@@ -23,6 +23,7 @@ import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -67,7 +68,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* a crash.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class LambdaWebDataPlaneDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class LambdaWebDataPlaneDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String BASE = "/2025-03-07";
|
||||
private static final String BUCKET = "web-code-docker";
|
||||
@@ -845,12 +847,12 @@ class LambdaWebDataPlaneDockerIntegrationTest {
|
||||
}
|
||||
|
||||
private static List<String> types(List<String> events) {
|
||||
return events.stream().filter(LambdaWebDataPlaneDockerIntegrationTest::isPlatformEvent)
|
||||
return events.stream().filter(LambdaWebDataPlaneDockerNightlyIntegrationTest::isPlatformEvent)
|
||||
.map(event -> JsonPath.from(event).getString("type")).toList();
|
||||
}
|
||||
|
||||
private static JsonPath platformEvent(List<String> events, String type) {
|
||||
return events.stream().filter(LambdaWebDataPlaneDockerIntegrationTest::isPlatformEvent)
|
||||
return events.stream().filter(LambdaWebDataPlaneDockerNightlyIntegrationTest::isPlatformEvent)
|
||||
.map(JsonPath::from).filter(event -> type.equals(event.getString("type")))
|
||||
.findFirst().orElseThrow(() -> new AssertionError("No " + type + " in " + events));
|
||||
}
|
||||
+3
-1
@@ -5,6 +5,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
@@ -12,7 +13,8 @@ import static org.hamcrest.Matchers.not;
|
||||
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class NeptuneIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class NeptuneDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String FORM = "application/x-www-form-urlencoded";
|
||||
private static final String CLUSTER_ID = "my-neptune-cluster";
|
||||
+3
-1
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
@@ -13,7 +14,8 @@ import static org.hamcrest.Matchers.not;
|
||||
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class NeptuneInstanceSettingsIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class NeptuneInstanceSettingsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String FORM = "application/x-www-form-urlencoded";
|
||||
private static final String CLUSTER_ID = "tf-neptune-instances";
|
||||
+3
-1
@@ -4,6 +4,7 @@ import io.floci.aws.testing.IndependentServiceSettingsProfile;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.neo4j.driver.AuthTokens;
|
||||
import org.neo4j.driver.Driver;
|
||||
import org.neo4j.driver.GraphDatabase;
|
||||
@@ -28,7 +29,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(IndependentServiceSettingsProfile.class)
|
||||
class NeptuneOpenCypherIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class NeptuneOpenCypherDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String FORM = "application/x-www-form-urlencoded";
|
||||
private static final String CLUSTER_ID = "opencypher-cluster";
|
||||
+3
-1
@@ -10,6 +10,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
@@ -25,7 +26,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsAwsIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsAwsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String RDS_AUTH = "AWS4-HMAC-SHA256 Credential=test/20260205/us-east-1/rds/aws4_request";
|
||||
|
||||
+3
-1
@@ -4,6 +4,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import software.amazon.awssdk.services.rds.RdsClient;
|
||||
import software.amazon.awssdk.services.rds.model.BlueGreenDeployment;
|
||||
import software.amazon.awssdk.services.rds.model.DBInstance;
|
||||
@@ -34,7 +35,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsBlueGreenDeploymentDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsBlueGreenDeploymentDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String USER = "admin";
|
||||
private static final String PASSWORD = "Passw0rd12345";
|
||||
+3
-1
@@ -11,6 +11,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
@@ -33,7 +34,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsClusterSnapshotLifecycleIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsClusterSnapshotLifecycleDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260921/us-east-1/rds/aws4_request, "
|
||||
+3
-1
@@ -5,6 +5,7 @@ import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import software.amazon.awssdk.services.rds.RdsClient;
|
||||
import software.amazon.awssdk.services.rds.model.DBInstance;
|
||||
import software.amazon.awssdk.services.rds.model.RdsException;
|
||||
@@ -27,7 +28,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsEngineVersionDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsEngineVersionDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String PASSWORD = "Passw0rd12345";
|
||||
|
||||
+3
-1
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static io.restassured.http.ContentType.URLENC;
|
||||
@@ -19,7 +20,8 @@ import static org.hamcrest.Matchers.not;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class RdsGlobalClusterIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsGlobalClusterDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String GLOBAL = "gdb-test";
|
||||
private static final String PRIMARY = "gdb-test-primary";
|
||||
+3
-1
@@ -11,6 +11,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -42,7 +43,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsIamAuthLambdaSessionIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsIamAuthLambdaSessionDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String ACCOUNT_ID = "000000000000";
|
||||
private static final String MASTER_USER = "master";
|
||||
+3
-1
@@ -3,6 +3,7 @@ package io.floci.aws.services.rds;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
|
||||
@@ -30,7 +31,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsMysqlSnapshotDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsMysqlSnapshotDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String MASTER_USER = "admin";
|
||||
private static final String MASTER_PASSWORD = "Passw0rd12345";
|
||||
+3
-1
@@ -6,6 +6,7 @@ import io.restassured.specification.RequestSpecification;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -33,7 +34,8 @@ import static org.hamcrest.Matchers.equalTo;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsParameterGroupEngineIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsParameterGroupEngineDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String MASTER_USER = "admin";
|
||||
private static final String MASTER_PASSWORD = "Passw0rd12345";
|
||||
+3
-1
@@ -13,6 +13,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
@@ -37,7 +38,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsPointInTimeRestoreIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsPointInTimeRestoreDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20261002/us-east-1/rds/aws4_request, "
|
||||
+3
-1
@@ -7,6 +7,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static io.restassured.http.ContentType.URLENC;
|
||||
@@ -21,7 +22,8 @@ import static org.hamcrest.Matchers.not;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class RdsReadReplicaIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsReadReplicaDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String SOURCE = "replica-test-source";
|
||||
private static final String REPLICA = "replica-test-reader";
|
||||
+3
-1
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.MethodOrderer;
|
||||
import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static io.restassured.http.ContentType.URLENC;
|
||||
@@ -21,7 +22,8 @@ import static org.hamcrest.Matchers.not;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
class RdsRoleAssociationIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsRoleAssociationDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CLUSTER = "roles-cluster";
|
||||
private static final String INSTANCE = "roles-instance";
|
||||
+3
-1
@@ -11,6 +11,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
@@ -34,7 +35,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsSnapshotLifecycleIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsSnapshotLifecycleDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260921/us-east-1/rds/aws4_request, "
|
||||
+3
-1
@@ -17,6 +17,7 @@ import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
import software.amazon.awssdk.services.rds.RdsClient;
|
||||
|
||||
@@ -46,7 +47,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsStopStartIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsStopStartDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260921/us-east-1/rds/aws4_request, "
|
||||
+3
-1
@@ -6,6 +6,7 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.floci.aws.testing.RdsRequests.assumeDocker;
|
||||
import static io.floci.aws.testing.RdsRequests.deleteInstance;
|
||||
@@ -21,7 +22,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
@TestProfile(CloudFormationSettingsProfile.class)
|
||||
class RdsTemplateDatabaseRestoreIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest {
|
||||
|
||||
@BeforeEach
|
||||
void checkDocker() throws InterruptedException {
|
||||
+3
-1
@@ -10,6 +10,7 @@ import io.restassured.specification.RequestSpecification;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
@@ -31,7 +32,8 @@ import static org.hamcrest.Matchers.equalTo;
|
||||
@QuarkusTest
|
||||
@TestProfile(IndependentServiceSettingsProfile.class)
|
||||
@Tag("docker")
|
||||
class RdsDataResumingIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsDataResumingDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String RDS_AUTH =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20261015/us-east-1/rds/aws4_request";
|
||||
+4
-5
@@ -13,7 +13,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.postgresql.Driver;
|
||||
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
|
||||
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
|
||||
@@ -51,14 +51,13 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
* statuses the task reports, the object layout, and the Parquet type and value of each column
|
||||
* against the RDS export mapping.
|
||||
*
|
||||
* <p>Needs Docker for the database and the floci-duck sidecar, and a sidecar that can reach
|
||||
* Floci's S3 from its container, which is why it is opted into like {@code ParquetEmitterIntegrationTest}.
|
||||
* <p>Needs Docker for the database and the floci-duck sidecar, so it runs nightly.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
@Tag("docker")
|
||||
@EnabledIfEnvironmentVariable(named = "FLOCI_DUCK_CROSS_CONTAINER_TEST", matches = "1|true|yes")
|
||||
class RdsSnapshotExportIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsSnapshotExportDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String MASTER_USER = "master";
|
||||
private static final String MASTER_PASSWORD = "Master123!";
|
||||
+3
-1
@@ -12,6 +12,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -37,7 +38,8 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsPgBouncerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsPgBouncerDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject DockerClient docker;
|
||||
@Inject ContainerBuilder builder;
|
||||
+3
-1
@@ -4,6 +4,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -25,7 +26,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsPostgresForceSslIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsPostgresForceSslDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String MASTER_USER = "master";
|
||||
private static final String MASTER_PASSWORD = "Master123!";
|
||||
+7
-3
@@ -10,7 +10,9 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.api.function.Executable;
|
||||
import org.postgresql.Driver;
|
||||
import org.postgresql.PGConnection;
|
||||
import org.postgresql.replication.LogSequenceNumber;
|
||||
import org.postgresql.replication.PGReplicationStream;
|
||||
@@ -18,7 +20,6 @@ import org.postgresql.replication.PGReplicationStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
@@ -39,7 +40,8 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
@TestProfile(IamEnforcementProfile.class)
|
||||
class RdsPostgresIamRoleIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsPostgresIamRoleDockerNightlyIntegrationTest {
|
||||
private static final String MASTER = "master";
|
||||
private static final String PASSWORD = "Master123!";
|
||||
private static final String APP_PASSWORD = "App123!";
|
||||
@@ -356,7 +358,9 @@ class RdsPostgresIamRoleIntegrationTest {
|
||||
}
|
||||
|
||||
private static Connection connect(int port, Properties properties) throws SQLException {
|
||||
return DriverManager.getConnection("jdbc:postgresql://localhost:" + port + "/appdb", properties);
|
||||
// Not DriverManager: it hands out only a driver this class loader can see, and after a Quarkus
|
||||
// restart in the same JVM the registered one belongs to another loader.
|
||||
return new Driver().connect("jdbc:postgresql://localhost:" + port + "/appdb", properties);
|
||||
}
|
||||
|
||||
private static String uniqueId() {
|
||||
+3
-1
@@ -9,6 +9,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -33,7 +34,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@Tag("docker")
|
||||
class RdsPostgresStartupParametersIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RdsPostgresStartupParametersDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String MASTER_USER = "master";
|
||||
private static final String MASTER_PASSWORD = "Master123!";
|
||||
+3
-1
@@ -7,6 +7,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -22,7 +23,8 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class RedshiftCatalogSeedIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftCatalogSeedDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
RedshiftService service;
|
||||
+3
-1
@@ -10,6 +10,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
@@ -25,7 +26,8 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class RedshiftCopyDiagnosticsIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftCopyDiagnosticsDockerNightlyIntegrationTest {
|
||||
@Inject
|
||||
RedshiftService redshift;
|
||||
@Inject
|
||||
+3
-1
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -34,7 +35,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class RedshiftCopyEtlIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftCopyEtlDockerNightlyIntegrationTest {
|
||||
@Inject
|
||||
RedshiftService redshift;
|
||||
@Inject
|
||||
+3
-1
@@ -7,6 +7,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -21,7 +22,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class RedshiftCopyJobIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftCopyJobDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String ROLE = "arn:aws:iam::000000000000:role/LoadRole";
|
||||
private static final String COPY = "COPY public.events FROM 's3://copy-job-bucket/staging/' IAM_ROLE '" + ROLE + "'";
|
||||
+3
-1
@@ -22,6 +22,7 @@ import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.sql.Connection;
|
||||
@@ -49,7 +50,8 @@ import static org.mockito.Mockito.when;
|
||||
|
||||
/** Creates, invokes and drops scalar Lambda UDFs through both the PostgreSQL wire and Redshift Data API. */
|
||||
@QuarkusTest
|
||||
class RedshiftExternalFunctionIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftExternalFunctionDockerNightlyIntegrationTest {
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
private static final String ROLE_ARN = "arn:aws:iam::000000000000:role/FunctionItRole";
|
||||
private static final ObjectMapper JSON = new ObjectMapper();
|
||||
+3
-1
@@ -11,6 +11,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -32,7 +33,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* and retained sessions.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class RedshiftGetClusterCredentialsIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftGetClusterCredentialsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String AUTH_HEADER =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260822/us-east-1/redshift/aws4_request";
|
||||
+3
-1
@@ -13,6 +13,7 @@ import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -44,7 +45,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class RedshiftIntegrationsIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftIntegrationsDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
RedshiftService service;
|
||||
+3
-1
@@ -12,6 +12,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -40,7 +41,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class RedshiftInterceptorIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftInterceptorDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String REDSHIFT_TRUST_POLICY = """
|
||||
{"Version":"2012-10-17","Statement":[
|
||||
+4
-2
@@ -12,6 +12,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.sql.Connection;
|
||||
@@ -30,11 +31,12 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* Covers COPY IAM_ROLE authorization when {@code FLOCI_SERVICES_S3_ENFORCE_AUTH} is on, so the
|
||||
* role's identity-based policy actually gates S3 access. Kept in its own {@code @QuarkusTest}
|
||||
* class (running under {@link S3EnforceAuthProfile}) because Quarkus restarts the application per
|
||||
* distinct test profile; {@link RedshiftInterceptorIntegrationTest} runs with enforcement off.
|
||||
* distinct test profile; {@link RedshiftInterceptorDockerNightlyIntegrationTest} runs with enforcement off.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(S3EnforceAuthProfile.class)
|
||||
class RedshiftInterceptorIamRoleEnforcedIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftInterceptorIamRoleEnforcedDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String REDSHIFT_TRUST_POLICY = """
|
||||
{"Version":"2012-10-17","Statement":[
|
||||
+3
-1
@@ -10,6 +10,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
@@ -25,7 +26,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
/** Creates and drops external schemas over Kinesis through a real cluster connection. */
|
||||
@QuarkusTest
|
||||
class RedshiftKinesisSchemaIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftKinesisSchemaDockerNightlyIntegrationTest {
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
private static final String ROLE_ARN = "arn:aws:iam::000000000000:role/KinesisSchemaItRole";
|
||||
|
||||
+3
-1
@@ -10,6 +10,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.sql.Connection;
|
||||
@@ -27,7 +28,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
/** Streams a Kinesis stream into a materialized view through a real cluster connection. */
|
||||
@QuarkusTest
|
||||
class RedshiftKinesisStreamingViewIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftKinesisStreamingViewDockerNightlyIntegrationTest {
|
||||
private static final String ACCOUNT = "000000000000";
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String ROLE_ARN = "arn:aws:iam::000000000000:role/KinesisViewItRole";
|
||||
+3
-1
@@ -21,6 +21,7 @@ import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.UncheckedIOException;
|
||||
@@ -53,7 +54,8 @@ import static org.mockito.Mockito.when;
|
||||
* checkpoints, error states); a refresh against a real Redpanda broker is not covered here.
|
||||
*/
|
||||
@QuarkusTest
|
||||
class RedshiftMskStreamingViewIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftMskStreamingViewDockerNightlyIntegrationTest {
|
||||
private static final String ROLE_ARN = "arn:aws:iam::000000000000:role/MskViewItRole";
|
||||
private static final URI REST = URI.create("http://localhost:18082/");
|
||||
private static final KafkaConsumerHandle CONSUMER =
|
||||
+3
-1
@@ -5,6 +5,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -18,7 +19,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class RedshiftProxyIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftProxyDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
RedshiftService service;
|
||||
+3
-1
@@ -8,6 +8,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
|
||||
@@ -28,7 +29,8 @@ import java.util.UUID;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@QuarkusTest
|
||||
class RedshiftS3AutoCopyIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftS3AutoCopyDockerNightlyIntegrationTest {
|
||||
@Inject
|
||||
RedshiftService service;
|
||||
@Inject
|
||||
+3
-1
@@ -14,6 +14,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
@@ -35,7 +36,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class RedshiftServerlessZeroEtlIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftServerlessZeroEtlDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String TABLE = "zetl-serverless-orders";
|
||||
private static final String NAMESPACE = "zetl-serverless-ns";
|
||||
+3
-1
@@ -21,6 +21,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
@@ -62,7 +63,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
class RedshiftSpectrumIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftSpectrumDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
RedshiftService redshiftService;
|
||||
+3
-1
@@ -10,6 +10,7 @@ import io.quarkus.test.junit.TestProfile;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -30,7 +31,8 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
@QuarkusTest
|
||||
@TestProfile(SidecarContainersProfile.class)
|
||||
class RedshiftUnloadParquetIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftUnloadParquetDockerNightlyIntegrationTest {
|
||||
@Inject
|
||||
RedshiftService redshift;
|
||||
@Inject
|
||||
+3
-1
@@ -8,6 +8,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
@@ -24,7 +25,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
/** The VARBYTE and SUPER types and their functions, with the examples of the Amazon Redshift documentation. */
|
||||
@QuarkusTest
|
||||
class RedshiftVarbyteSuperIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftVarbyteSuperDockerNightlyIntegrationTest {
|
||||
|
||||
@Inject
|
||||
RedshiftService service;
|
||||
+3
-1
@@ -11,6 +11,7 @@ import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
@@ -22,7 +23,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@QuarkusTest
|
||||
class RedshiftMetricsIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftMetricsDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String REGION = "us-east-1";
|
||||
private static final String NAMESPACE = "AWS/Redshift";
|
||||
+4
-2
@@ -13,6 +13,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
@@ -30,7 +31,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class RedshiftServerlessAuditLogIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftServerlessAuditLogDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String NAMESPACE = "audit-it-ns";
|
||||
private static final String WORKGROUP = "audit-it-wg";
|
||||
@@ -45,7 +47,7 @@ class RedshiftServerlessAuditLogIntegrationTest {
|
||||
private int endpointPort;
|
||||
private boolean created;
|
||||
|
||||
/** Creates the workgroup once, as {@code RedshiftServerlessRuntimeIntegrationTest} does. */
|
||||
/** Creates the workgroup once, as {@code RedshiftServerlessRuntimeDockerNightlyIntegrationTest} does. */
|
||||
@BeforeEach
|
||||
void ensureWorkgroup() throws InterruptedException {
|
||||
Assumptions.assumeTrue(DockerAvailability.isAvailable(), "Docker is required for Redshift Serverless audit log tests");
|
||||
+1
-1
@@ -64,7 +64,7 @@ class RedshiftServerlessIntegrationTest {
|
||||
/**
|
||||
* The metadata behaviour under test needs no PostgreSQL container, so the runtime is replaced:
|
||||
* these tests then run without Docker, and the real container and proxy are exercised by
|
||||
* {@code RedshiftServerlessRuntimeIntegrationTest}.
|
||||
* {@code RedshiftServerlessRuntimeDockerNightlyIntegrationTest}.
|
||||
*/
|
||||
@InjectMock
|
||||
RedshiftServerlessRuntime runtime;
|
||||
|
||||
+3
-1
@@ -12,6 +12,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.Socket;
|
||||
@@ -38,7 +39,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class RedshiftServerlessRuntimeIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class RedshiftServerlessRuntimeDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String NAMESPACE = "rt-it-ns";
|
||||
private static final String WORKGROUP = "rt-it-wg";
|
||||
+3
-1
@@ -17,6 +17,7 @@ import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
@@ -38,7 +39,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@QuarkusTest
|
||||
// Real containers may take up to awaitTerminalStatus's 150 s, past the suite's 2-minute default.
|
||||
@Timeout(value = 3, unit = TimeUnit.MINUTES)
|
||||
class SageMakerDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class SageMakerDockerNightlyIntegrationTest {
|
||||
private static final String AUTH =
|
||||
"AWS4-HMAC-SHA256 Credential=test/20260205/us-east-1/sagemaker/aws4_request";
|
||||
|
||||
+3
-1
@@ -11,6 +11,7 @@ import io.floci.aws.services.ec2.Ec2Service;
|
||||
import io.floci.aws.services.ec2.model.Instance;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
@@ -24,7 +25,8 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.mockito.Mockito.*;
|
||||
|
||||
@QuarkusTest
|
||||
class SsmTimeoutDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class SsmTimeoutDockerNightlyIntegrationTest {
|
||||
@Inject
|
||||
DockerClient docker;
|
||||
|
||||
+3
-1
@@ -12,6 +12,7 @@ import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@@ -19,7 +20,8 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||
|
||||
@QuarkusTest
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
class StepFunctionsRedshiftDataDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class StepFunctionsRedshiftDataDockerNightlyIntegrationTest {
|
||||
|
||||
private static final String CLUSTER_ID = "it-sfn-rsdata";
|
||||
private static final String CONTENT_TYPE = "application/x-amz-json-1.0";
|
||||
+1
-1
@@ -31,7 +31,7 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||
/**
|
||||
* Runs Timestream for InfluxDB on real InfluxDB containers, published on host ports 18186 to 18285.
|
||||
* The settings come from {@link CloudFormationSettingsProfile}, which this class shares with
|
||||
* {@code EksImdsDockerIntegrationTest}.
|
||||
* {@code EksImdsDockerNightlyIntegrationTest}.
|
||||
*/
|
||||
@Tag("docker")
|
||||
@QuarkusTest
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
* relies on it.</li>
|
||||
* <li>{@code floci.services.eks.imds=true} and {@code floci.services.eks.imds-pod-network=true}
|
||||
* program the link-local IMDS endpoint into a cluster's container, for the node and for its pods.
|
||||
* {@code EksImdsDockerIntegrationTest} relies on them.</li>
|
||||
* {@code EksImdsDockerNightlyIntegrationTest} relies on them.</li>
|
||||
* <li>{@code floci.services.emr.runner-mode=docker},
|
||||
* {@code floci.services.emrserverless.runner-mode=docker} and
|
||||
* {@code floci.services.emrcontainers.runner-mode=docker} run a cluster's steps, an EMR
|
||||
@@ -38,7 +38,7 @@ import java.util.Map;
|
||||
* release's image, and
|
||||
* {@code floci.services.emrserverless.executor-containers=2} a Spark job run's executors each in a
|
||||
* container of its own. {@code EmrDockerRunnerNightlyIntegrationTest},
|
||||
* {@code EmrServerlessHiveDockerIntegrationTest}, {@code EmrContainersSparkNightlyIntegrationTest} and the
|
||||
* {@code EmrServerlessHiveDockerNightlyIntegrationTest}, {@code EmrContainersSparkNightlyIntegrationTest} and the
|
||||
* EMR nightly checks rely on them.</li>
|
||||
* <li>{@code floci.services.cloudfront.enabled=false} turns CloudFront off.
|
||||
* {@code CloudFrontDisabledServingTest} relies on it.</li>
|
||||
@@ -60,7 +60,7 @@ import java.util.Map;
|
||||
* {@code KinesisStatusWindowIntegrationTest} relies on them.</li>
|
||||
* <li>{@code floci.services.rds.default-postgres-image=postgis/postgis:17-3.5-alpine} starts a
|
||||
* PostgreSQL instance on an image that creates a template database at startup.
|
||||
* {@code RdsTemplateDatabaseRestoreIntegrationTest} relies on it.</li>
|
||||
* {@code RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest} relies on it.</li>
|
||||
* </ul>
|
||||
*
|
||||
* <p>Each override is inert for the other classes: each is read by a single service, CloudFormation,
|
||||
|
||||
Loaded 100 of 113 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user