diff --git a/.github/ci/prefetch-images.sh b/.github/ci/prefetch-images.sh index 0f87789f77..b23b6bf634 100755 --- a/.github/ci/prefetch-images.sh +++ b/.github/ci/prefetch-images.sh @@ -66,16 +66,16 @@ test_image() { # Every Docker-backed test that needs a shell uses the one busybox TestImages pins, so one pull # serves all of them. It is also the base of the image -# EcsContainerManagerVolumesFromDockerIntegrationTest builds, and a build resolves its base against +# EcsContainerManagerVolumesFromDockerNightlyIntegrationTest builds, and a build resolves its base against # the registry rather than through ImageCacheService, so it is prefetched for the cache hit rather # than for the second it saves. ContainerPlatformDockerIntegrationTest is not listed: it pulls the # other architecture, which a prefetch of the host image cannot serve. BUSYBOX_IMAGE="$(test_image BUSYBOX)" -starts ContainerHostNetworkDockerIntegrationTest ContainerBindDirectoryDockerIntegrationTest EcsServiceDiscoveryDockerIntegrationTest \ - EcsContainerManagerEfsIsolationDockerIntegrationTest EcsContainerManagerFirelensDockerIntegrationTest \ - EcsContainerManagerStatsDockerIntegrationTest EcsContainerManagerVolumesFromDockerIntegrationTest \ +starts ContainerHostNetworkDockerIntegrationTest ContainerBindDirectoryDockerIntegrationTest EcsServiceDiscoveryDockerNightlyIntegrationTest \ + EcsContainerManagerEfsIsolationDockerIntegrationTest EcsContainerManagerFirelensDockerNightlyIntegrationTest \ + EcsContainerManagerStatsDockerIntegrationTest EcsContainerManagerVolumesFromDockerNightlyIntegrationTest \ EcsExecChannelDockerIntegrationTest EcsImagePullDockerIntegrationTest EcsLeftoverContainersDockerIntegrationTest \ - BatchDockerRunnerDockerIntegrationTest SageMakerDockerIntegrationTest DockerPoolSaturationNightlyIntegrationTest \ + BatchDockerRunnerDockerIntegrationTest SageMakerDockerNightlyIntegrationTest DockerPoolSaturationNightlyIntegrationTest \ && [ -n "$BUSYBOX_IMAGE" ] && pull "$BUSYBOX_IMAGE" # Bind-directory ownership uses the default OpenSearch image, whose cold pull can outlast a test. OPENSEARCH_VERSIONS="$(find src/main/java -name OpenSearchVersions.java -print -quit)" @@ -97,13 +97,13 @@ starts ContainerBindDirectoryDockerIntegrationTest && [ -n "$OPENSEARCH_IMAGE" ] REGISTRY_IMAGE="$(test_image REGISTRY)" starts EcsImagePullDockerIntegrationTest && [ -n "$REGISTRY_IMAGE" ] && pull "$REGISTRY_IMAGE" PYTHON_ALPINE_IMAGE="$(test_image PYTHON_ALPINE)" -starts ContainerCaBundleDockerIntegrationTest EcsCredentialsProxyDockerIntegrationTest SageMakerDockerIntegrationTest \ +starts ContainerCaBundleDockerIntegrationTest EcsCredentialsProxyDockerNightlyIntegrationTest SageMakerDockerNightlyIntegrationTest \ && [ -n "$PYTHON_ALPINE_IMAGE" ] && pull "$PYTHON_ALPINE_IMAGE" CORRETTO_8_IMAGE="$(test_image CORRETTO_8)" starts ContainerCaBundleDockerIntegrationTest && [ -n "$CORRETTO_8_IMAGE" ] && pull "$CORRETTO_8_IMAGE" # The Firelens test names the log router image itself rather than taking it from config. FLUENT_BIT_IMAGE="$(test_image FLUENT_BIT)" -starts EcsContainerManagerFirelensDockerIntegrationTest && [ -n "$FLUENT_BIT_IMAGE" ] && pull "$FLUENT_BIT_IMAGE" +starts EcsContainerManagerFirelensDockerNightlyIntegrationTest && [ -n "$FLUENT_BIT_IMAGE" ] && pull "$FLUENT_BIT_IMAGE" # ECR Public images, in queue order: the Lambda runtimes by size, then EMR's. They are the only images # left on ECR Public; everything Docker Hub also carries is pulled from there (see TestImages). # Lambda runtimes, measured from a full four-shard run by pairing each ImageCacheService @@ -127,12 +127,12 @@ starts EmrDockerRunnerNightlyIntegrationTest EmrHiveStepsNightlyIntegrationTest EmrFlociContainerNightlyIntegrationTest EmrPigStepsNightlyIntegrationTest EmrNotebookExecutionNightlyIntegrationTest \ EmrAppUiNightlyIntegrationTest EmrClusterShrinkNightlyIntegrationTest EmrTrinoNightlyIntegrationTest \ && ecr public.ecr.aws/emr-serverless/spark/emr-7.5.0:latest -# EmrServerlessHiveDockerIntegrationTest runs EMR Serverless Hive job runs, and EmrHiveStepsNightlyIntegrationTest EMR +# EmrServerlessHiveDockerNightlyIntegrationTest runs EMR Serverless Hive job runs, and EmrHiveStepsNightlyIntegrationTest EMR # Hive steps, in the emr-7.5.0 Hive image the runner's default Hive template names, 2.7 GB; every EMR cluster runs its # HDFS in it, EmrDockerRunnerNightlyIntegrationTest's and the nightly EmrFlociContainerNightlyIntegrationTest's, # EmrPigStepsNightlyIntegrationTest's and EmrSessionServerNightlyIntegrationTest's included (an emr-spark-* cluster's # Hadoop comes from it too). -starts EmrServerlessHiveDockerIntegrationTest EmrHiveStepsNightlyIntegrationTest EmrDockerRunnerNightlyIntegrationTest \ +starts EmrServerlessHiveDockerNightlyIntegrationTest EmrHiveStepsNightlyIntegrationTest EmrDockerRunnerNightlyIntegrationTest \ EmrFlociContainerNightlyIntegrationTest EmrPigStepsNightlyIntegrationTest EmrSessionServerNightlyIntegrationTest \ EmrNotebookExecutionNightlyIntegrationTest EmrAppUiNightlyIntegrationTest EmrClusterShrinkNightlyIntegrationTest \ EmrTrinoNightlyIntegrationTest \ @@ -186,11 +186,11 @@ grep -qE '/appsync/|AppSyncCfnIntegrationTest' "$SHARD_FILE" && [ -n "$GRAPHQL_I # Matched on the one class that starts it rather than on /appsync/, since every other test in that # package is a unit test: a path match would have every shard pull an image one of them uses. JS_RUNTIME_IMAGE="$(grep -oE 'image: *"node:[^"]+"' src/main/resources/application.yml | grep -oE '"[^"]+"' | tr -d '"')" -grep -q 'AppSyncJsResolverDockerIntegrationTest' "$SHARD_FILE" && [ -n "$JS_RUNTIME_IMAGE" ] && pull "$JS_RUNTIME_IMAGE" -# RdsAwsIntegrationTest is the one class that starts SQL Server (about 1.5 GB); the pin lives in +grep -q 'AppSyncJsResolverDockerNightlyIntegrationTest' "$SHARD_FILE" && [ -n "$JS_RUNTIME_IMAGE" ] && pull "$JS_RUNTIME_IMAGE" +# RdsAwsDockerNightlyIntegrationTest is the one class that starts SQL Server (about 1.5 GB); the pin lives in # application.yml. The other services/rds classes mock the container layer. SQLSERVER_IMAGE="$(grep -oE 'default-sql-server-image: *"[^"]+"' src/main/resources/application.yml | grep -oE '"[^"]+"' | tr -d '"')" -grep -q 'RdsAwsIntegrationTest' "$SHARD_FILE" && [ -n "$SQLSERVER_IMAGE" ] && pull "$SQLSERVER_IMAGE" +grep -q 'RdsAwsDockerNightlyIntegrationTest' "$SHARD_FILE" && [ -n "$SQLSERVER_IMAGE" ] && pull "$SQLSERVER_IMAGE" # Postgres is the most-pulled image in CI: Redshift pins it in application.yml, RDS adapts # postgres:-alpine to the engine version its tests request (16.3), and the CloudFormation # provisioner tests reach it through Redshift. It was pulled inline in every shard. @@ -199,11 +199,11 @@ grep -qE '/redshift/|/cloudformation/' "$SHARD_FILE" && [ -n "$REDSHIFT_PG_IMAGE grep -qE '/rds/|/rdsdata/' "$SHARD_FILE" && pull postgres:16.3-alpine # The template-database restore fixture selects its own PostgreSQL image. # Read that override so its first CreateDBInstance does not also have to pull PostGIS. -POSTGIS_TEST="$(find src/test/java -name RdsTemplateDatabaseRestoreIntegrationTest.java -print -quit)" +POSTGIS_TEST="$(find src/test/java -name RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest.java -print -quit)" POSTGIS_IMAGE="$(awk -F'"' '$2 == "floci.services.rds.default-postgres-image" { print $4 }' "${POSTGIS_TEST:-/dev/null}")" [ -n "$POSTGIS_IMAGE" ] \ - || echo "$(date -u +%H:%M:%S) prefetch skipped: RdsTemplateDatabaseRestoreIntegrationTest default-postgres-image not readable" >> "$PREFETCH_LOG" -starts RdsTemplateDatabaseRestoreIntegrationTest \ + || echo "$(date -u +%H:%M:%S) prefetch skipped: RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest default-postgres-image not readable" >> "$PREFETCH_LOG" +starts RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest \ && [ -n "$POSTGIS_IMAGE" ] && pull "$POSTGIS_IMAGE" # These DSQL fixtures start the configured PostgreSQL sidecar; unit-only shards do not. DSQL_IMAGE="$(awk '/^ dsql:/ { in_dsql=1; next } in_dsql && /^ [a-z]/ { exit } in_dsql && /^ image:/ { gsub(/"/, "", $2); print $2; exit }' src/main/resources/application.yml)" @@ -213,19 +213,19 @@ starts DsqlDataPlaneIntegrationTest DsqlClusterPolicyIntegrationTest DsqlTransac # Keep unrelated unit-test shards from pulling registries they do not use. starts CodeArtifactMavenDockerIntegrationTest CodeArtifactMavenExternalConnectionDockerIntegrationTest \ && configured_image codeartifact maven-image -starts CodeArtifactNpmDockerIntegrationTest CodeArtifactNpmExternalConnectionDockerIntegrationTest \ +starts CodeArtifactNpmDockerNightlyIntegrationTest CodeArtifactNpmExternalConnectionDockerIntegrationTest \ && configured_image codeartifact npm-image -starts CodeArtifactNuGetDockerIntegrationTest CodeArtifactNuGetExternalConnectionDockerIntegrationTest \ +starts CodeArtifactNuGetDockerNightlyIntegrationTest CodeArtifactNuGetExternalConnectionDockerIntegrationTest \ && configured_image codeartifact nuget-image -starts CodeArtifactPypiDockerIntegrationTest && configured_image codeartifact pypi-image -starts CodeArtifactCargoDockerIntegrationTest CodeArtifactCargoExternalConnectionDockerIntegrationTest \ - CodeArtifactCargoUpstreamRepositoryDockerIntegrationTest && configured_image codeartifact cargo-image +starts CodeArtifactPypiDockerNightlyIntegrationTest && configured_image codeartifact pypi-image +starts CodeArtifactCargoDockerNightlyIntegrationTest CodeArtifactCargoExternalConnectionDockerNightlyIntegrationTest \ + CodeArtifactCargoUpstreamRepositoryDockerNightlyIntegrationTest && configured_image codeartifact cargo-image # RDS's engine fixture starts MySQL at the default and explicitly requested versions. # Read both sources rather than duplicating their version pins here. -if starts RdsParameterGroupEngineIntegrationTest; then +if starts RdsParameterGroupEngineDockerNightlyIntegrationTest; then MYSQL_DEFAULT="$(grep -oE 'DEFAULT_MYSQL_IMAGE *= *"[^"]+"' src/main/java/io/floci/aws/config/EmulatorConfig.java | grep -oE '"[^"]+"' | tr -d '"')" [ -n "$MYSQL_DEFAULT" ] && pull "$MYSQL_DEFAULT" - MYSQL_TEST="$(find src/test/java -name RdsParameterGroupEngineIntegrationTest.java -print -quit)" + MYSQL_TEST="$(find src/test/java -name RdsParameterGroupEngineDockerNightlyIntegrationTest.java -print -quit)" MYSQL_VERSIONS="$(awk -F'"' '$2 == "EngineVersion" { print $4 }' "${MYSQL_TEST:-/dev/null}" | sort -u)" for version in $MYSQL_VERSIONS; do [ -n "$MYSQL_DEFAULT" ] && pull "${MYSQL_DEFAULT%:*}:$version" diff --git a/.github/ci/select-nightly-checks.sh b/.github/ci/select-nightly-checks.sh new file mode 100755 index 0000000000..e71b821e08 --- /dev/null +++ b/.github/ci/select-nightly-checks.sh @@ -0,0 +1,126 @@ +#!/usr/bin/env bash +# Picks the nightly checks one run of nightly-checks.yml runs and writes them as the checks job's matrix: one entry +# per group that has a check to run, {"group", "timeout", "classes"}, with classes in surefire includesFile form. +# +# Groups: +# docker-runner the EMR Docker runner checks, named in RUNNER below +# docker-e2e *DockerNightlyIntegrationTest: container end-to-end checks moved out of the pull request shards +# standard every other *NightlyIntegrationTest +# +# On a schedule or on demand every check runs, which is also the backstop for anything the pull request rules below +# miss. On a pull request ($PR set), every check runs when the pull request changes nightly-checks.yml, this script +# or its test; otherwise these run: +# - the nightly checks it adds or changes; +# - for each service whose src/main package (services//) it changes, the docker-e2e checks under +# services// in src/test, the docker-e2e checks that import io.floci.aws.services., and the ones +# CONSUMERS names for that service; +# - every docker-e2e check when it changes core/common/docker, or changes an image pin: a changed line that mentions +# "image" in application.yml (main or test) or under config/, or one of those files with no patch from GitHub; +# - for each other src/test/java class it changes, the docker-e2e checks that name that class. +# +# Writes matrix= to $GITHUB_OUTPUT, or prints it when that is unset. Needs gh (for $PR) and jq. +# SELECT_NIGHTLY_FILES, when set, names a JSON array of {filename, patch} read in place of the pull request's files +# (test_select_nightly_checks.py). +set -euo pipefail + +RUNNER='/(EmrDockerRunner|EmrClusterShrink|EmrContainersSpark|EmrContainersGateway|EmrTrino)NightlyIntegrationTest$' +DOCKER_E2E='DockerNightlyIntegrationTest$' +MAIN=src/main/java/io/floci/aws +TESTS=io/floci/aws +IMAGE_PINS='^(src/(main|test)/resources/application\.yml|src/main/java/io/floci/aws/config/.*)$' +# :, for checks that exercise a service without importing it. +CONSUMERS=( + # Redshift Spectrum and UNLOAD to Parquet run their SQL on floci-duck (services/floci/duck). + 'floci:/services/redshift/(RedshiftSpectrum|RedshiftUnloadParquet)DockerNightlyIntegrationTest$' + # These CUR checks write their report's Parquet through floci-duck under the report owner's account. + 'floci:/services/cur/Cur(DailyEmissionAccountIsolation|NonDefaultAccountEmission)DockerNightlyIntegrationTest$' + # Redshift Serverless and the Redshift Data API, which Step Functions' redshiftdata tasks call, run on Redshift's + # engine. + 'redshift:/services/(redshiftserverless/|stepfunctions/StepFunctionsRedshiftData)' + # Redshift auto-copy follows S3 event notifications, and EMR Serverless Hive keeps its tables on S3. + 's3:/services/(redshift/RedshiftS3AutoCopy|emrserverless/EmrServerlessHive)DockerNightlyIntegrationTest$' + # These CUR checks assert S3's per-account storage through its REST API. + 's3:/services/cur/Cur(DailyEmissionAccountIsolation|NonDefaultAccountEmission)DockerNightlyIntegrationTest$' +) + +work="$(mktemp -d)" +trap 'rm -rf "$work"' EXIT + +(cd src/test/java && find . -name '*NightlyIntegrationTest.java' | sed 's|^\./||; s|\.java$||' | LC_ALL=C sort) \ + > "$work/all.txt" + +if [ -n "${PR:-}" ]; then + if [ -n "${SELECT_NIGHTLY_FILES:-}" ]; then + cp "$SELECT_NIGHTLY_FILES" "$work/files.json" + else + # The files API pages up to 3000 files; gh pr diff refuses a diff of more than 300. + gh api --paginate "repos/$GITHUB_REPOSITORY/pulls/$PR/files" --jq '.[] | {filename, patch}' \ + | jq -s . > "$work/files.json" + fi + jq -r '.[].filename' "$work/files.json" > "$work/changed.txt" + grep -E "$DOCKER_E2E" "$work/all.txt" > "$work/e2e.txt" || true + sed 's|^|src/test/java/|; s|$|.java|' "$work/e2e.txt" > "$work/e2e-sources.txt" + # Changed lines (not the +++/--- file headers) that mention an image, or "unknown" for a file with no patch. + pins="$(jq -r --arg re "$IMAGE_PINS" '.[] | select(.filename | test($re)) + | if .patch == null then "unknown" + else .patch | split("\n") | map(select(test("^[-+]") and (test("^(\\+\\+\\+|---) ") | not) + and test("image"; "i"))) | .[] end' "$work/files.json")" + selection='\.github/(workflows/nightly-checks\.yml|ci/(select-nightly-checks\.sh|test_select_nightly_checks\.py))' + if grep -qxE "$selection" "$work/changed.txt"; then + cp "$work/all.txt" "$work/selected.txt" + else + { + sed -n 's|^src/test/java/\(.*NightlyIntegrationTest\)\.java$|\1|p' "$work/changed.txt" + if grep -q "^$MAIN/core/common/docker/" "$work/changed.txt" || [ -n "$pins" ]; then + cat "$work/e2e.txt" + fi + sed -n "s|^$MAIN/services/\([^/]*\)/.*|\1|p" "$work/changed.txt" | LC_ALL=C sort -u | while read -r svc; do + grep -E "^$TESTS/services/$svc/" "$work/e2e.txt" || true + xargs grep -lE "^import (static )?io\.floci\.aws\.services\.$svc\." < "$work/e2e-sources.txt" \ + | sed 's|^src/test/java/||; s|\.java$||' || true + for consumer in "${CONSUMERS[@]}"; do + if [ "${consumer%%:*}" = "$svc" ]; then + grep -E "${consumer#*:}" "$work/e2e.txt" || true + fi + done + done + # A src/test/java class's simple name; every test source is a top-level class, as ci.yml relies on. + { grep -E '^src/test/java/.*\.java$' "$work/changed.txt" || true; } \ + | { grep -v 'NightlyIntegrationTest\.java$' || true; } \ + | sed 's|.*/||; s|\.java$||' | LC_ALL=C sort -u | while read -r helper; do + xargs grep -lw "$helper" < "$work/e2e-sources.txt" | sed 's|^src/test/java/||; s|\.java$||' || true + done + } | LC_ALL=C sort -u | LC_ALL=C comm -12 "$work/all.txt" - > "$work/selected.txt" + fi +else + cp "$work/all.txt" "$work/selected.txt" +fi + +grep -E "$RUNNER" "$work/selected.txt" > "$work/docker-runner.txt" || true +grep -E "$DOCKER_E2E" "$work/selected.txt" > "$work/docker-e2e.txt" || true +grep -vE "$RUNNER|$DOCKER_E2E" "$work/selected.txt" > "$work/standard.txt" || true + +# Timeouts in minutes: each group's checks run one after another, plus about twenty minutes for compilation, the image +# and the prefetch (see nightly-checks.yml). docker-e2e's tests took about 23 minutes in the shards on 2026-11-23. +matrix='[]' +for entry in standard:359 docker-runner:214 docker-e2e:60; do + group="${entry%%:*}" + timeout="${entry##*:}" + count=$(wc -l < "$work/$group.txt" | tr -d ' ') + echo "$group: $count nightly checks" >&2 + sed 's/^/ /' "$work/$group.txt" >&2 + if [ "$count" -gt 0 ]; then + matrix="$(jq -c --arg g "$group" --argjson t "$timeout" --rawfile c "$work/$group.txt" \ + '. + [{group: $g, timeout: $t, classes: ($c | split("\n") | map(select(length > 0)) | join(" "))}]' \ + <<< "$matrix")" + fi +done + +if [ -n "${GITHUB_OUTPUT:-}" ]; then + if [ "$matrix" = '[]' ]; then + echo "::notice title=Nightly checks::This run selects no nightly check, so none ran." + fi + echo "matrix=$matrix" >> "$GITHUB_OUTPUT" +else + echo "$matrix" +fi diff --git a/.github/ci/test_select_nightly_checks.py b/.github/ci/test_select_nightly_checks.py new file mode 100644 index 0000000000..cb63b4a65f --- /dev/null +++ b/.github/ci/test_select_nightly_checks.py @@ -0,0 +1,144 @@ +"""Run with python3 -m unittest discover -s .github/ci -p 'test_select_nightly_checks.py'.""" +from pathlib import Path +import json +import os +import subprocess +import tempfile +import unittest +import unittest.mock + +PATH = Path(__file__).with_name('select-nightly-checks.sh').resolve() +MAIN = 'src/main/java/io/floci/aws' +TEST = 'src/test/java/io/floci/aws' + +# Class path -> source. Imports and names decide what a change selects, so each fixture carries only those. +SOURCES = { + 'services/rds/RdsMysqlDockerNightlyIntegrationTest': '', + 'services/cur/CurEmissionDockerNightlyIntegrationTest': + 'import io.floci.aws.services.floci.duck.FlociDuckClient;\nimport io.floci.aws.testing.TestImages;\n', + 'services/rds/export/RdsSnapshotExportDockerNightlyIntegrationTest': + 'import io.floci.aws.services.floci.duck.FlociDuckClient;\n', + 'services/redshift/RedshiftSpectrumDockerNightlyIntegrationTest': '', + 'services/redshift/RedshiftCopyJobDockerNightlyIntegrationTest': '', + 'services/firehose/FirehoseRedshiftDeliveryDockerNightlyIntegrationTest': + 'import io.floci.aws.services.redshift.RedshiftService;\n', + 'services/redshiftserverless/RedshiftServerlessRuntimeDockerNightlyIntegrationTest': '', + 'services/stepfunctions/StepFunctionsRedshiftDataDockerNightlyIntegrationTest': '', + 'services/redshift/RedshiftS3AutoCopyDockerNightlyIntegrationTest': '', + 'services/cur/CurDailyEmissionAccountIsolationDockerNightlyIntegrationTest': '', + 'services/cur/CurNonDefaultAccountEmissionDockerNightlyIntegrationTest': '', + 'services/cur/ParquetEmitterDockerNightlyIntegrationTest': 'import io.floci.aws.services.s3.S3Service;\n', + 'services/emrserverless/EmrServerlessHiveDockerNightlyIntegrationTest': '', + 'services/emr/EmrDockerRunnerNightlyIntegrationTest': '', + 'services/eks/EksEcrMirrorNightlyIntegrationTest': '', +} +E2E = sorted('io/floci/aws/' + name for name in SOURCES if name.endswith('DockerNightlyIntegrationTest')) + + +class SelectNightlyChecksTest(unittest.TestCase): + def setUp(self): + directory = tempfile.TemporaryDirectory() + self.addCleanup(directory.cleanup) + self.root = Path(directory.name) + for name, body in SOURCES.items(): + path = self.root / TEST / (name + '.java') + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(body + 'class Fixture {}\n') + + def select(self, files=None): + """The selected classes per group, for a pull request changing files, or for a scheduled run when None.""" + output = self.root / 'output.txt' + output.write_text('') + env = dict(os.environ, GITHUB_OUTPUT=str(output)) + env.pop('PR', None) + if files is not None: + fixture = self.root / 'files.json' + fixture.write_text(json.dumps([{'filename': f, 'patch': p} for f, p in files.items()])) + env.update(PR='1', SELECT_NIGHTLY_FILES=str(fixture)) + result = subprocess.run(['bash', str(PATH)], cwd=self.root, capture_output=True, text=True, env=env) + self.assertEqual(0, result.returncode, result.stderr) + matrix = json.loads(output.read_text().strip().removeprefix('matrix=')) + return {entry['group']: sorted(entry['classes'].split()) for entry in matrix} + + def e2e(self, files): + return self.select(files).get('docker-e2e', []) + + def test_scheduleRunsEveryCheck(self): + groups = self.select() + self.assertEqual(E2E, groups['docker-e2e']) + self.assertEqual(['io/floci/aws/services/emr/EmrDockerRunnerNightlyIntegrationTest'], groups['docker-runner']) + self.assertEqual(['io/floci/aws/services/eks/EksEcrMirrorNightlyIntegrationTest'], groups['standard']) + + def test_changingTheSelectorOrItsWorkflowRunsEveryCheck(self): + for path in ('.github/workflows/nightly-checks.yml', '.github/ci/select-nightly-checks.sh', + '.github/ci/test_select_nightly_checks.py'): + with self.subTest(path=path): + self.assertEqual(3, len(self.select({path: '+x'}))) + + def test_aServiceSelectsItsOwnChecks(self): + self.assertEqual(['io/floci/aws/services/rds/RdsMysqlDockerNightlyIntegrationTest', + 'io/floci/aws/services/rds/export/RdsSnapshotExportDockerNightlyIntegrationTest'], + self.e2e({MAIN + '/services/rds/RdsService.java': '+x'})) + + def test_flociDuckSelectsTheChecksThatImportItAndItsConsumers(self): + self.assertEqual(['io/floci/aws/services/cur/CurDailyEmissionAccountIsolationDockerNightlyIntegrationTest', + 'io/floci/aws/services/cur/CurEmissionDockerNightlyIntegrationTest', + 'io/floci/aws/services/cur/CurNonDefaultAccountEmissionDockerNightlyIntegrationTest', + 'io/floci/aws/services/rds/export/RdsSnapshotExportDockerNightlyIntegrationTest', + 'io/floci/aws/services/redshift/RedshiftSpectrumDockerNightlyIntegrationTest'], + self.e2e({MAIN + '/services/floci/duck/FlociDuckManager.java': '+x'})) + + def test_redshiftSelectsTheServicesThatRunOnItsEngine(self): + self.assertEqual(['io/floci/aws/services/firehose/FirehoseRedshiftDeliveryDockerNightlyIntegrationTest', + 'io/floci/aws/services/redshift/RedshiftCopyJobDockerNightlyIntegrationTest', + 'io/floci/aws/services/redshift/RedshiftS3AutoCopyDockerNightlyIntegrationTest', + 'io/floci/aws/services/redshift/RedshiftSpectrumDockerNightlyIntegrationTest', + 'io/floci/aws/services/redshiftserverless/' + 'RedshiftServerlessRuntimeDockerNightlyIntegrationTest', + 'io/floci/aws/services/stepfunctions/StepFunctionsRedshiftDataDockerNightlyIntegrationTest'], + self.e2e({MAIN + '/services/redshift/RedshiftService.java': '+x'})) + + def test_s3SelectsTheChecksThatImportItAndThoseThatReachItThroughItsApi(self): + self.assertEqual(['io/floci/aws/services/cur/CurDailyEmissionAccountIsolationDockerNightlyIntegrationTest', + 'io/floci/aws/services/cur/CurNonDefaultAccountEmissionDockerNightlyIntegrationTest', + 'io/floci/aws/services/cur/ParquetEmitterDockerNightlyIntegrationTest', + 'io/floci/aws/services/emrserverless/EmrServerlessHiveDockerNightlyIntegrationTest', + 'io/floci/aws/services/redshift/RedshiftS3AutoCopyDockerNightlyIntegrationTest'], + self.e2e({MAIN + '/services/s3/S3Service.java': '+x'})) + + def test_anImagePinSelectsEveryContainerCheck(self): + pins = (('src/main/resources/application.yml', + '@@ -1 +1 @@\n- image: postgres:16\n+ image: postgres:17'), + ('src/test/resources/application.yml', '+ default-image: mysql:8.4'), + (MAIN + '/config/EmulatorConfig.java', '- String DEFAULT_MYSQL_IMAGE = "mysql:8.0";'), + # GitHub sends no patch for a large file, so its change might be a pin. + ('src/main/resources/application.yml', None)) + for path, patch in pins: + with self.subTest(path=path, patch=patch): + self.assertEqual(E2E, self.e2e({path: patch})) + + def test_aConfigChangeWithoutAnImageSelectsNoContainerCheck(self): + self.assertEqual({}, self.select({'src/main/resources/application.yml': '@@ -1 +1 @@\n+ enabled: true', + MAIN + '/config/EmulatorConfig.java': '+ boolean enabled();'})) + + def test_aTestHelperSelectsTheChecksThatNameIt(self): + self.assertEqual(['io/floci/aws/services/cur/CurEmissionDockerNightlyIntegrationTest'], + self.e2e({TEST + '/testing/TestImages.java': '+x'})) + + def test_aChangedNightlyCheckRunsInItsGroup(self): + self.assertEqual({'standard': ['io/floci/aws/services/eks/EksEcrMirrorNightlyIntegrationTest']}, + self.select({TEST + '/services/eks/EksEcrMirrorNightlyIntegrationTest.java': '+x'})) + + def test_theSelectionDoesNotDependOnTheCallersLocale(self): + # The lists are sorted bytewise; comm would refuse or misjoin them under a locale that collates otherwise. + with unittest.mock.patch.dict(os.environ, LC_ALL='en_US.UTF-8', LANG='en_US.UTF-8'): + self.assertEqual(['io/floci/aws/services/rds/RdsMysqlDockerNightlyIntegrationTest', + 'io/floci/aws/services/rds/export/RdsSnapshotExportDockerNightlyIntegrationTest'], + self.e2e({MAIN + '/services/rds/RdsService.java': '+x'})) + + def test_aServiceWithoutContainerChecksSelectsNothing(self): + self.assertEqual({}, self.select({MAIN + '/services/sqs/SqsService.java': '+x'})) + + +if __name__ == '__main__': + unittest.main() diff --git a/.github/workflows/nightly-checks.yml b/.github/workflows/nightly-checks.yml index 0d6380a80b..417f3e43be 100644 --- a/.github/workflows/nightly-checks.yml +++ b/.github/workflows/nightly-checks.yml @@ -5,7 +5,11 @@ name: Nightly checks # CI shards, which pick every *Test class, see it skip at no cost; this workflow sets the property. Its name is # outside floci.*, whose names Floci's configuration validates: a Quarkus test given -Dfloci.nightly refuses to # start. It runs once a day on main, on demand, and on a pull request that adds or changes a nightly check, so the -# check is seen to pass before it merges. GitHub-hosted runners only, which a public repository runs at no charge. +# check is seen to pass before it merges. A *DockerNightlyIntegrationTest is a container end-to-end check moved out of +# the shards to keep them short: a pull request runs the ones its change can reach (its service's package, a service +# the check imports, an image pin, a test helper the check names; .github/ci/select-nightly-checks.sh lists the rules), +# and the daily run catches what those rules miss. GitHub-hosted runners only, which a public repository runs at no +# charge. on: schedule: # 08:00 UTC, after Nightly (23:00 America/Chicago) and away from the daytime merges' CI runs. @@ -15,7 +19,14 @@ on: types: [opened, synchronize, reopened, ready_for_review] paths: - '.github/workflows/nightly-checks.yml' - - 'src/test/java/**/*NightlyIntegrationTest.java' + - '.github/ci/select-nightly-checks.sh' + - '.github/ci/test_select_nightly_checks.py' + - 'src/test/java/**' + - 'src/test/resources/application.yml' + - 'src/main/resources/application.yml' + - 'src/main/java/io/floci/aws/config/**' + - 'src/main/java/io/floci/aws/services/**' + - 'src/main/java/io/floci/aws/core/common/docker/**' permissions: contents: read @@ -25,8 +36,39 @@ concurrency: cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: + # One short job picks each group's checks, so a pull request that selects none of a group's checks, the usual case + # for a src/main change, holds no runner for that group. + select: + name: Select the nightly checks + runs-on: ubuntu-latest + timeout-minutes: 5 + # A fork's schedule would spend its owner's minutes on checks it never asked for; a draft waits until it is + # ready for review, as the CI shards do. + if: >- + (github.event_name != 'schedule' || !github.event.repository.fork) && + (github.event_name != 'pull_request' || github.event.pull_request.draft == false) + outputs: + matrix: ${{ steps.list.outputs.matrix }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Test the selection + run: python3 -m unittest discover -s .github/ci -p test_select_nightly_checks.py + + # Every test is a top-level class in src/test/java, so the file name is the class name, as ci.yml relies on. + # On a pull request, only the checks its change can reach run, or all of them when it changes this workflow or + # the selection; the script's header lists the rules. + - name: List the nightly checks + id: list + env: + GH_TOKEN: ${{ github.token }} + PR: ${{ github.event.pull_request.number }} + run: .github/ci/select-nightly-checks.sh + checks: name: Nightly checks (${{ matrix.group }}) + needs: select + if: needs.select.outputs.matrix != '[]' runs-on: ubuntu-latest # Each group runs its checks one after another, within their own @Timeout bounds, plus about twenty minutes for # compilation, the image and the prefetch; together they would exceed the 360 minutes a hosted runner gives one @@ -36,74 +78,34 @@ jobs: # EmrContainersSparkNightlyIntegrationTest's three six-minute methods, eleven-minute method, two-minute setup before # each and 21-minute image pull, EmrContainersGatewayNightlyIntegrationTest's twenty-four-minute, seven-minute and # eighteen-minute methods and 21-minute image pull, and EmrTrinoNightlyIntegrationTest's two seven-minute methods - # and ten-minute image pull, 194 minutes. A check added, or a bound raised, raises its group's timeout with it, so - # a slow check fails with its own message. + # and ten-minute image pull, 194 minutes. docker-e2e holds the *DockerNightlyIntegrationTest + # classes, about 23 minutes of tests on 2026-11-23 when they still ran in the shards. A check added, or a bound + # raised, raises its group's timeout with it, so a slow check fails with its own message. strategy: fail-fast: false matrix: - include: - - group: standard - timeout: 359 - - group: docker-runner - timeout: 214 + include: ${{ fromJSON(needs.select.outputs.matrix) }} timeout-minutes: ${{ matrix.timeout }} - # A fork's schedule would spend its owner's minutes on checks it never asked for; a draft waits until it is - # ready for review, as the CI shards do. - if: >- - (github.event_name != 'schedule' || !github.event.repository.fork) && - (github.event_name != 'pull_request' || github.event.pull_request.draft == false) steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - # Every test is a top-level class in src/test/java, so the file name is the class name, as ci.yml relies on. - # On a pull request, only the checks it adds or changes run, or all of them when it changes this workflow. - - name: List the nightly checks - id: list + - name: Write the group's checks env: - GH_TOKEN: ${{ github.token }} - PR: ${{ github.event.pull_request.number }} - GROUP: ${{ matrix.group }} + CLASSES: ${{ matrix.classes }} run: | - set -euo pipefail - cd src/test/java - find . -name '*NightlyIntegrationTest.java' | sed 's|^\./||; s|\.java$||' | LC_ALL=C sort \ - > "$GITHUB_WORKSPACE/all-nightly.txt" - cd "$GITHUB_WORKSPACE" - if [ -n "$PR" ]; then - # The files endpoint lists up to 3,000 files; gh pr diff refuses a pull request past 300. - gh api --paginate "repos/$GITHUB_REPOSITORY/pulls/$PR/files" --jq '.[].filename' > changed.txt - if ! grep -qx '.github/workflows/nightly-checks.yml' changed.txt; then - sed -n 's|^src/test/java/\(.*NightlyIntegrationTest\)\.java$|\1|p' changed.txt | LC_ALL=C sort \ - | comm -12 all-nightly.txt - > selected.txt - mv selected.txt all-nightly.txt - fi - fi - runner='/(EmrDockerRunner|EmrClusterShrink|EmrContainersSpark|EmrContainersGateway|EmrTrino)NightlyIntegrationTest$' - if [ "$GROUP" = "docker-runner" ]; then - grep -E "$runner" all-nightly.txt > nightly.txt || true - else - grep -vE "$runner" all-nightly.txt > nightly.txt || true - fi - count=$(wc -l < nightly.txt | tr -d ' ') - echo "count=$count" >> "$GITHUB_OUTPUT" - echo "$count nightly checks" + tr ' ' '\n' <<< "$CLASSES" > nightly.txt + echo "$(wc -l < nightly.txt | tr -d ' ') nightly checks" cat nightly.txt - - name: No nightly checks yet - if: steps.list.outputs.count == '0' - run: echo "::notice title=Nightly checks::No *NightlyIntegrationTest class exists, so nothing ran." - # The checks' images run to several gigabytes, a pushed copy of one included, and the runner's disk holds # toolchains they never use. - name: Free disk space - if: steps.list.outputs.count != '0' run: | df -h / sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL df -h / - uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 - if: steps.list.outputs.count != '0' with: java-version: '25' distribution: 'temurin' @@ -111,7 +113,6 @@ jobs: # Restored only: ci.yml saves main's copy under this key. - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 - if: steps.list.outputs.count != '0' with: path: ~/.m2/repository key: maven-${{ runner.os }}-${{ hashFiles('pom.xml') }} @@ -120,31 +121,39 @@ jobs: # The Maven distribution ./mvnw runs, saved by ci.yml on main, so this job does not fetch it from # Maven Central with the wrapper's one unretried wget. - - if: steps.list.outputs.count != '0' - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.m2/wrapper key: maven-wrapper-${{ runner.os }}-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }} - name: Prefetch the checks' Docker images (background) - if: steps.list.outputs.count != '0' run: .github/ci/prefetch-images.sh nightly.txt || true - name: Compile - if: steps.list.outputs.count != '0' run: ./mvnw test-compile -B # A check that runs Floci in a container, as a user's Docker setup does, runs this image: this commit's own # build, made from the compiled application as docker/Dockerfile.jvm-package describes. - name: Build the Floci image - if: steps.list.outputs.count != '0' && matrix.group == 'standard' + if: matrix.group == 'standard' run: | ./mvnw package -B -q -DskipTests docker build -q -f docker/Dockerfile.jvm-package -t floci/floci:nightly-check . - # nightly.txt is never empty here: an empty includesFile would make surefire run the whole suite. + # DynamoDbLocalBackendDockerNightlyIntegrationTest serves the DynamoDB API from an external DynamoDB Local, the + # image and version docs/services/dynamodb.md shows. Only that backend reads the variable. + - name: Start DynamoDB Local + id: dynamodb-local + if: matrix.group == 'docker-e2e' && contains(matrix.classes, 'DynamoDbLocalBackendDockerNightlyIntegrationTest') + run: | + docker run -d --name dynamodb-local -p 127.0.0.1:8000:8000 amazon/dynamodb-local:3.3.1 + echo "endpoint=http://127.0.0.1:8000" >> "$GITHUB_OUTPUT" + + # nightly.txt is never empty here: the select job leaves a group with no checks out of the matrix, and an empty + # includesFile would make surefire run the whole suite. - name: Run the nightly checks - if: steps.list.outputs.count != '0' + env: + FLOCI_SERVICES_DYNAMODB_LOCAL_ENDPOINT: ${{ steps.dynamodb-local.outputs.endpoint }} run: > ./mvnw surefire:test -B -Dsurefire.includesFile="$GITHUB_WORKSPACE/nightly.txt" @@ -153,14 +162,14 @@ jobs: -Dnightly.checks.floci-image=floci/floci:nightly-check - name: Image prefetch results - if: always() && steps.list.outputs.count != '0' + if: always() run: | cat prefetch-images.log 2>/dev/null || echo "no prefetch log" grep -E 'stale prefetch key|prefetch skipped|prefetch failed' prefetch-images.log 2>/dev/null \ | sed 's/^/::warning title=prefetch-images.sh::/' || true - name: Upload the checks' results - if: always() && steps.list.outputs.count != '0' + if: always() uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: nightly-checks-${{ matrix.group }} diff --git a/AGENTS.md b/AGENTS.md index 03ed3975f9..616779ad8b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -266,6 +266,13 @@ Guidelines: `@ResourceLock(ParallelLocks.CONFIG_MAPPING)`. `ParallelLocksInventoryTest` enforces both. A class that shares other process-wide state takes a lock named in `ParallelLocks` (`TLS_CONFIG` for `TlsConfigSource`) +- Docker end-to-end checks: `*DockerNightlyIntegrationTest.java`, for an integration test that starts + real containers (a k3s node, a database engine, a sidecar, a task) and takes more than a few seconds. + It runs in the nightly workflow, and also on a pull request whose change it can reach: its service's + `src/main` package, a service it imports, `core/common/docker`, an image pin, or a test helper it names. + `.github/ci/select-nightly-checks.sh` picks them and its header lists the rules; a check that exercises + another service without importing it goes in that script's `CONSUMERS`. Keep a fast container smoke test + of the same path in the shards when one exists - Prefer package-private constructors for testability - Integration tests may use ordered execution when stateful behavior requires it diff --git a/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerJsonTest.java b/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerJsonTest.java index 7a8117c029..cd65a326c7 100644 --- a/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerJsonTest.java +++ b/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerJsonTest.java @@ -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()); } diff --git a/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerNightlyIntegrationTest.java index d852eca26a..ae2bd2dd2d 100644 --- a/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/appsync/AppSyncJsResolverDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/cloudformation/RedshiftServerlessCfnIntegrationTest.java b/src/test/java/io/floci/aws/services/cloudformation/RedshiftServerlessCfnIntegrationTest.java index 8a89c4abdc..4d1c5d161e 100644 --- a/src/test/java/io/floci/aws/services/cloudformation/RedshiftServerlessCfnIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/cloudformation/RedshiftServerlessCfnIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoDockerNightlyIntegrationTest.java index 3ce992acd6..75799ed643 100644 --- a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoDockerNightlyIntegrationTest.java @@ -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. diff --git a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoExternalConnectionDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoExternalConnectionDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoExternalConnectionDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoExternalConnectionDockerNightlyIntegrationTest.java index 4fd8e29dd4..59057fc544 100644 --- a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoExternalConnectionDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoExternalConnectionDockerNightlyIntegrationTest.java @@ -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. */ diff --git a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoUpstreamRepositoryDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoUpstreamRepositoryDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoUpstreamRepositoryDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoUpstreamRepositoryDockerNightlyIntegrationTest.java index 2e68a64a09..453f3bd6ea 100644 --- a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoUpstreamRepositoryDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactCargoUpstreamRepositoryDockerNightlyIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNpmDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNpmDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNpmDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNpmDockerNightlyIntegrationTest.java index 2b144199b8..390cd1e11d 100644 --- a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNpmDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNpmDockerNightlyIntegrationTest.java @@ -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(); } diff --git a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNuGetDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNuGetDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNuGetDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNuGetDockerNightlyIntegrationTest.java index 068f134fe1..d583d09dea 100644 --- a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNuGetDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactNuGetDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactPypiDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactPypiDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/codeartifact/CodeArtifactPypiDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/codeartifact/CodeArtifactPypiDockerNightlyIntegrationTest.java index e044d01d95..c868974643 100644 --- a/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactPypiDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/codeartifact/CodeArtifactPypiDockerNightlyIntegrationTest.java @@ -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. * - *

Ordered before every other test, for the same reason {@code CodeArtifactNpmDockerIntegrationTest}'s + *

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 diff --git a/src/test/java/io/floci/aws/services/codebuild/CodeBuildServiceRoleDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/codebuild/CodeBuildServiceRoleDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/codebuild/CodeBuildServiceRoleDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/codebuild/CodeBuildServiceRoleDockerNightlyIntegrationTest.java index 082ff7c480..9e05fdf858 100644 --- a/src/test/java/io/floci/aws/services/codebuild/CodeBuildServiceRoleDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/codebuild/CodeBuildServiceRoleDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/cur/CurDailyEmissionAccountIsolationIntegrationTest.java b/src/test/java/io/floci/aws/services/cur/CurDailyEmissionAccountIsolationDockerNightlyIntegrationTest.java similarity index 94% rename from src/test/java/io/floci/aws/services/cur/CurDailyEmissionAccountIsolationIntegrationTest.java rename to src/test/java/io/floci/aws/services/cur/CurDailyEmissionAccountIsolationDockerNightlyIntegrationTest.java index 6741f69e44..54cad247d1 100644 --- a/src/test/java/io/floci/aws/services/cur/CurDailyEmissionAccountIsolationIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/cur/CurDailyEmissionAccountIsolationDockerNightlyIntegrationTest.java @@ -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. * *

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"; diff --git a/src/test/java/io/floci/aws/services/cur/CurEmissionIntegrationTest.java b/src/test/java/io/floci/aws/services/cur/CurEmissionDockerNightlyIntegrationTest.java similarity index 92% rename from src/test/java/io/floci/aws/services/cur/CurEmissionIntegrationTest.java rename to src/test/java/io/floci/aws/services/cur/CurEmissionDockerNightlyIntegrationTest.java index 27d1305c0e..40f076aa07 100644 --- a/src/test/java/io/floci/aws/services/cur/CurEmissionIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/cur/CurEmissionDockerNightlyIntegrationTest.java @@ -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) diff --git a/src/test/java/io/floci/aws/services/cur/CurNonDefaultAccountEmissionIntegrationTest.java b/src/test/java/io/floci/aws/services/cur/CurNonDefaultAccountEmissionDockerNightlyIntegrationTest.java similarity index 89% rename from src/test/java/io/floci/aws/services/cur/CurNonDefaultAccountEmissionIntegrationTest.java rename to src/test/java/io/floci/aws/services/cur/CurNonDefaultAccountEmissionDockerNightlyIntegrationTest.java index e70e3e91a8..9cf4d83c90 100644 --- a/src/test/java/io/floci/aws/services/cur/CurNonDefaultAccountEmissionIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/cur/CurNonDefaultAccountEmissionDockerNightlyIntegrationTest.java @@ -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. * - *

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. + *

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"; diff --git a/src/test/java/io/floci/aws/services/cur/ParquetEmitterIntegrationTest.java b/src/test/java/io/floci/aws/services/cur/ParquetEmitterDockerNightlyIntegrationTest.java similarity index 90% rename from src/test/java/io/floci/aws/services/cur/ParquetEmitterIntegrationTest.java rename to src/test/java/io/floci/aws/services/cur/ParquetEmitterDockerNightlyIntegrationTest.java index e169ae3ae7..a8bb321a70 100644 --- a/src/test/java/io/floci/aws/services/cur/ParquetEmitterIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/cur/ParquetEmitterDockerNightlyIntegrationTest.java @@ -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"); diff --git a/src/test/java/io/floci/aws/services/docdb/DocDbIntegrationTest.java b/src/test/java/io/floci/aws/services/docdb/DocDbDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/docdb/DocDbIntegrationTest.java rename to src/test/java/io/floci/aws/services/docdb/DocDbDockerNightlyIntegrationTest.java index f02b5b21b5..647cf40b5f 100644 --- a/src/test/java/io/floci/aws/services/docdb/DocDbIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/docdb/DocDbDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/docdb/DocDbGlobalClusterIntegrationTest.java b/src/test/java/io/floci/aws/services/docdb/DocDbGlobalClusterDockerNightlyIntegrationTest.java similarity index 95% rename from src/test/java/io/floci/aws/services/docdb/DocDbGlobalClusterIntegrationTest.java rename to src/test/java/io/floci/aws/services/docdb/DocDbGlobalClusterDockerNightlyIntegrationTest.java index af459fb019..f7d28b281e 100644 --- a/src/test/java/io/floci/aws/services/docdb/DocDbGlobalClusterIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/docdb/DocDbGlobalClusterDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/docdb/DocDbTagIntegrationTest.java b/src/test/java/io/floci/aws/services/docdb/DocDbTagDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/docdb/DocDbTagIntegrationTest.java rename to src/test/java/io/floci/aws/services/docdb/DocDbTagDockerNightlyIntegrationTest.java index a38d2872ff..fba3fd6209 100644 --- a/src/test/java/io/floci/aws/services/docdb/DocDbTagIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/docdb/DocDbTagDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/dsql/DsqlExternalBackendIntegrationTest.java b/src/test/java/io/floci/aws/services/dsql/DsqlExternalBackendDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/dsql/DsqlExternalBackendIntegrationTest.java rename to src/test/java/io/floci/aws/services/dsql/DsqlExternalBackendDockerNightlyIntegrationTest.java index 6e1ace396d..1a5522daef 100644 --- a/src/test/java/io/floci/aws/services/dsql/DsqlExternalBackendIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/dsql/DsqlExternalBackendDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/dynamodb/backend/DynamoDbLocalBackendIntegrationTest.java b/src/test/java/io/floci/aws/services/dynamodb/backend/DynamoDbLocalBackendDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/dynamodb/backend/DynamoDbLocalBackendIntegrationTest.java rename to src/test/java/io/floci/aws/services/dynamodb/backend/DynamoDbLocalBackendDockerNightlyIntegrationTest.java index 6967daf880..667b83d114 100644 --- a/src/test/java/io/floci/aws/services/dynamodb/backend/DynamoDbLocalBackendIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/dynamodb/backend/DynamoDbLocalBackendDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/ec2/Ec2VolumeBlockDeviceDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ec2/Ec2VolumeBlockDeviceDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/ec2/Ec2VolumeBlockDeviceDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ec2/Ec2VolumeBlockDeviceDockerNightlyIntegrationTest.java index f432f3e86d..bc17f4fdca 100644 --- a/src/test/java/io/floci/aws/services/ec2/Ec2VolumeBlockDeviceDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ec2/Ec2VolumeBlockDeviceDockerNightlyIntegrationTest.java @@ -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 containersToClean = new ArrayList<>(); private final List volumesToClean = new ArrayList<>(); diff --git a/src/test/java/io/floci/aws/services/ec2/SecurityGroupFirewallDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ec2/SecurityGroupFirewallDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/ec2/SecurityGroupFirewallDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ec2/SecurityGroupFirewallDockerNightlyIntegrationTest.java index 7d1dad0ebe..7027efc4f7 100644 --- a/src/test/java/io/floci/aws/services/ec2/SecurityGroupFirewallDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ec2/SecurityGroupFirewallDockerNightlyIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/services/ecs/EcsAwsvpcTaskAddressDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/EcsAwsvpcTaskAddressDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/ecs/EcsAwsvpcTaskAddressDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/EcsAwsvpcTaskAddressDockerNightlyIntegrationTest.java index fc833a6eac..6ec93ad16b 100644 --- a/src/test/java/io/floci/aws/services/ecs/EcsAwsvpcTaskAddressDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/EcsAwsvpcTaskAddressDockerNightlyIntegrationTest.java @@ -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"); diff --git a/src/test/java/io/floci/aws/services/ecs/EcsEssentialContainerExitDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/EcsEssentialContainerExitDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/ecs/EcsEssentialContainerExitDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/EcsEssentialContainerExitDockerNightlyIntegrationTest.java index c1a46c0b90..cae1c26817 100644 --- a/src/test/java/io/floci/aws/services/ecs/EcsEssentialContainerExitDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/EcsEssentialContainerExitDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/ecs/EcsLinuxParametersDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/EcsLinuxParametersDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/ecs/EcsLinuxParametersDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/EcsLinuxParametersDockerNightlyIntegrationTest.java index c8017dcf2b..1b1e4be35b 100644 --- a/src/test/java/io/floci/aws/services/ecs/EcsLinuxParametersDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/EcsLinuxParametersDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/ecs/EcsSecurityGroupTaskRoleDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/EcsSecurityGroupTaskRoleDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/ecs/EcsSecurityGroupTaskRoleDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/EcsSecurityGroupTaskRoleDockerNightlyIntegrationTest.java index f4a7e4d16a..1c1ab3ff33 100644 --- a/src/test/java/io/floci/aws/services/ecs/EcsSecurityGroupTaskRoleDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/EcsSecurityGroupTaskRoleDockerNightlyIntegrationTest.java @@ -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; *

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"; diff --git a/src/test/java/io/floci/aws/services/ecs/EcsServiceDiscoveryDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/EcsServiceDiscoveryDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/ecs/EcsServiceDiscoveryDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/EcsServiceDiscoveryDockerNightlyIntegrationTest.java index 8a53f2f1af..d0b2fc610e 100644 --- a/src/test/java/io/floci/aws/services/ecs/EcsServiceDiscoveryDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/EcsServiceDiscoveryDockerNightlyIntegrationTest.java @@ -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"); diff --git a/src/test/java/io/floci/aws/services/ecs/EcsSharedTaskNetworkDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/EcsSharedTaskNetworkDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/ecs/EcsSharedTaskNetworkDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/EcsSharedTaskNetworkDockerNightlyIntegrationTest.java index d405c8ae16..79eabbbbb1 100644 --- a/src/test/java/io/floci/aws/services/ecs/EcsSharedTaskNetworkDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/EcsSharedTaskNetworkDockerNightlyIntegrationTest.java @@ -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"); diff --git a/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerEphemeralVolumesDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerEphemeralVolumesDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerEphemeralVolumesDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerEphemeralVolumesDockerNightlyIntegrationTest.java index a0049885d3..4fed8fa9d5 100644 --- a/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerEphemeralVolumesDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerEphemeralVolumesDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerFirelensDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerFirelensDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerFirelensDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerFirelensDockerNightlyIntegrationTest.java index b59b113e61..1d0ac1d3d9 100644 --- a/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerFirelensDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerFirelensDockerNightlyIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerVolumesFromDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerVolumesFromDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerVolumesFromDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerVolumesFromDockerNightlyIntegrationTest.java index 4bfa8f3d19..5fa2caddeb 100644 --- a/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerVolumesFromDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/container/EcsContainerManagerVolumesFromDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyDockerNightlyIntegrationTest.java index 3b535763f3..f1415c733c 100644 --- a/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyDockerNightlyIntegrationTest.java @@ -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; *

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; diff --git a/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyTest.java b/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyTest.java index 3e73e5c3f2..9a185b8f2b 100644 --- a/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyTest.java +++ b/src/test/java/io/floci/aws/services/ecs/container/EcsCredentialsProxyTest.java @@ -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. */ diff --git a/src/test/java/io/floci/aws/services/eks/EksControlPlaneLogsDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksControlPlaneLogsDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/eks/EksControlPlaneLogsDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksControlPlaneLogsDockerNightlyIntegrationTest.java index dc6bf82945..5423aefe75 100644 --- a/src/test/java/io/floci/aws/services/eks/EksControlPlaneLogsDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksControlPlaneLogsDockerNightlyIntegrationTest.java @@ -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"); } diff --git a/src/test/java/io/floci/aws/services/eks/EksImdsDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksImdsDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/eks/EksImdsDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksImdsDockerNightlyIntegrationTest.java index 4e27a6963f..37129aa0f7 100644 --- a/src/test/java/io/floci/aws/services/eks/EksImdsDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksImdsDockerNightlyIntegrationTest.java @@ -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/"; diff --git a/src/test/java/io/floci/aws/services/eks/EksIrsaDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksIrsaDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/eks/EksIrsaDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksIrsaDockerNightlyIntegrationTest.java index d28819fdb1..085ee779e8 100644 --- a/src/test/java/io/floci/aws/services/eks/EksIrsaDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksIrsaDockerNightlyIntegrationTest.java @@ -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"); } diff --git a/src/test/java/io/floci/aws/services/eks/EksNodeMountPropagationDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksNodeMountPropagationDockerNightlyIntegrationTest.java similarity index 93% rename from src/test/java/io/floci/aws/services/eks/EksNodeMountPropagationDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksNodeMountPropagationDockerNightlyIntegrationTest.java index 208d975c97..3932f9ba86 100644 --- a/src/test/java/io/floci/aws/services/eks/EksNodeMountPropagationDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksNodeMountPropagationDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/eks/EksPodIdentityAgentDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksPodIdentityAgentDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/eks/EksPodIdentityAgentDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksPodIdentityAgentDockerNightlyIntegrationTest.java index 1b2938526f..982e3cde6d 100644 --- a/src/test/java/io/floci/aws/services/eks/EksPodIdentityAgentDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksPodIdentityAgentDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/eks/EksRegistryHostsDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksRegistryHostsDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/eks/EksRegistryHostsDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksRegistryHostsDockerNightlyIntegrationTest.java index 1f0539acfd..bbe652053b 100644 --- a/src/test/java/io/floci/aws/services/eks/EksRegistryHostsDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksRegistryHostsDockerNightlyIntegrationTest.java @@ -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"); } diff --git a/src/test/java/io/floci/aws/services/eks/EksStorageClassDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksStorageClassDockerNightlyIntegrationTest.java similarity index 93% rename from src/test/java/io/floci/aws/services/eks/EksStorageClassDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksStorageClassDockerNightlyIntegrationTest.java index f4be4d934d..57facdbc4a 100644 --- a/src/test/java/io/floci/aws/services/eks/EksStorageClassDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksStorageClassDockerNightlyIntegrationTest.java @@ -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"); } diff --git a/src/test/java/io/floci/aws/services/eks/EksVpcRouteProgrammingDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/eks/EksVpcRouteProgrammingDockerNightlyIntegrationTest.java similarity index 94% rename from src/test/java/io/floci/aws/services/eks/EksVpcRouteProgrammingDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/eks/EksVpcRouteProgrammingDockerNightlyIntegrationTest.java index 1f64538cb9..3d1bbc0e42 100644 --- a/src/test/java/io/floci/aws/services/eks/EksVpcRouteProgrammingDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/eks/EksVpcRouteProgrammingDockerNightlyIntegrationTest.java @@ -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"); } diff --git a/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterAccessStringIntegrationTest.java b/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterAccessStringDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterAccessStringIntegrationTest.java rename to src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterAccessStringDockerNightlyIntegrationTest.java index 792330e98d..3115790ab0 100644 --- a/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterAccessStringIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterAccessStringDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterIntegrationTest.java b/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterIntegrationTest.java rename to src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterDockerNightlyIntegrationTest.java index 4e0cb1d4c9..63af2b0717 100644 --- a/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/elasticache/ElastiCacheClusterDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/emrserverless/EmrServerlessHiveDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/emrserverless/EmrServerlessHiveDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/emrserverless/EmrServerlessHiveDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/emrserverless/EmrServerlessHiveDockerNightlyIntegrationTest.java index 8ba41f4da4..d88ef0c228 100644 --- a/src/test/java/io/floci/aws/services/emrserverless/EmrServerlessHiveDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/emrserverless/EmrServerlessHiveDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/firehose/FirehoseRedshiftDeliveryIntegrationTest.java b/src/test/java/io/floci/aws/services/firehose/FirehoseRedshiftDeliveryDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/firehose/FirehoseRedshiftDeliveryIntegrationTest.java rename to src/test/java/io/floci/aws/services/firehose/FirehoseRedshiftDeliveryDockerNightlyIntegrationTest.java index ea79a51719..6f91b769f3 100644 --- a/src/test/java/io/floci/aws/services/firehose/FirehoseRedshiftDeliveryIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/firehose/FirehoseRedshiftDeliveryDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/iam/UnknownAccessKeyEnforcementIntegrationTest.java b/src/test/java/io/floci/aws/services/iam/UnknownAccessKeyEnforcementIntegrationTest.java index 4289c4f3f4..ddadbea024 100644 --- a/src/test/java/io/floci/aws/services/iam/UnknownAccessKeyEnforcementIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/iam/UnknownAccessKeyEnforcementIntegrationTest.java @@ -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, " diff --git a/src/test/java/io/floci/aws/services/lambda/KinesisEsmOnFailureDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/lambda/KinesisEsmOnFailureDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/lambda/KinesisEsmOnFailureDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/lambda/KinesisEsmOnFailureDockerNightlyIntegrationTest.java index ab686a859a..00d069e42c 100644 --- a/src/test/java/io/floci/aws/services/lambda/KinesisEsmOnFailureDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/lambda/KinesisEsmOnFailureDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/lambda/LambdaAsyncRetryDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/lambda/LambdaAsyncRetryDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/lambda/LambdaAsyncRetryDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/lambda/LambdaAsyncRetryDockerNightlyIntegrationTest.java index bd8a05db8f..51c91508c9 100644 --- a/src/test/java/io/floci/aws/services/lambda/LambdaAsyncRetryDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/lambda/LambdaAsyncRetryDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/lambda/LambdaInvokeLogTailDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/lambda/LambdaInvokeLogTailDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/lambda/LambdaInvokeLogTailDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/lambda/LambdaInvokeLogTailDockerNightlyIntegrationTest.java index c1b2de4335..f50666601f 100644 --- a/src/test/java/io/floci/aws/services/lambda/LambdaInvokeLogTailDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/lambda/LambdaInvokeLogTailDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/lambda/durable/LambdaDurableFunctionsDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/lambda/durable/LambdaDurableFunctionsDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/lambda/durable/LambdaDurableFunctionsDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/lambda/durable/LambdaDurableFunctionsDockerNightlyIntegrationTest.java index 8ddd0ff98d..1c65298024 100644 --- a/src/test/java/io/floci/aws/services/lambda/durable/LambdaDurableFunctionsDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/lambda/durable/LambdaDurableFunctionsDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/lambdaweb/LambdaWebDataPlaneDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/lambdaweb/LambdaWebDataPlaneDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/lambdaweb/LambdaWebDataPlaneDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/lambdaweb/LambdaWebDataPlaneDockerNightlyIntegrationTest.java index de381d7cec..0a6c74d3cb 100644 --- a/src/test/java/io/floci/aws/services/lambdaweb/LambdaWebDataPlaneDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/lambdaweb/LambdaWebDataPlaneDockerNightlyIntegrationTest.java @@ -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 types(List 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 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)); } diff --git a/src/test/java/io/floci/aws/services/neptune/NeptuneIntegrationTest.java b/src/test/java/io/floci/aws/services/neptune/NeptuneDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/neptune/NeptuneIntegrationTest.java rename to src/test/java/io/floci/aws/services/neptune/NeptuneDockerNightlyIntegrationTest.java index 8fe32556ec..1bac7ab9de 100644 --- a/src/test/java/io/floci/aws/services/neptune/NeptuneIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/neptune/NeptuneDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/neptune/NeptuneInstanceSettingsIntegrationTest.java b/src/test/java/io/floci/aws/services/neptune/NeptuneInstanceSettingsDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/neptune/NeptuneInstanceSettingsIntegrationTest.java rename to src/test/java/io/floci/aws/services/neptune/NeptuneInstanceSettingsDockerNightlyIntegrationTest.java index 3e9b2d4100..007bf370fd 100644 --- a/src/test/java/io/floci/aws/services/neptune/NeptuneInstanceSettingsIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/neptune/NeptuneInstanceSettingsDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/neptune/NeptuneOpenCypherIntegrationTest.java b/src/test/java/io/floci/aws/services/neptune/NeptuneOpenCypherDockerNightlyIntegrationTest.java similarity index 94% rename from src/test/java/io/floci/aws/services/neptune/NeptuneOpenCypherIntegrationTest.java rename to src/test/java/io/floci/aws/services/neptune/NeptuneOpenCypherDockerNightlyIntegrationTest.java index fbfec5bc05..db08ee7b50 100644 --- a/src/test/java/io/floci/aws/services/neptune/NeptuneOpenCypherIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/neptune/NeptuneOpenCypherDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsAwsIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsAwsDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/RdsAwsIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsAwsDockerNightlyIntegrationTest.java index 17e71d1dfd..34263c7980 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsAwsIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsAwsDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsBlueGreenDeploymentDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsBlueGreenDeploymentDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/RdsBlueGreenDeploymentDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsBlueGreenDeploymentDockerNightlyIntegrationTest.java index 5f66d3be7d..04008dd687 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsBlueGreenDeploymentDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsBlueGreenDeploymentDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsClusterSnapshotLifecycleIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsClusterSnapshotLifecycleDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/RdsClusterSnapshotLifecycleIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsClusterSnapshotLifecycleDockerNightlyIntegrationTest.java index ff034afc76..03c96e51c2 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsClusterSnapshotLifecycleIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsClusterSnapshotLifecycleDockerNightlyIntegrationTest.java @@ -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, " diff --git a/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerNightlyIntegrationTest.java index b142dda286..a65b8da8cf 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsGlobalClusterIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsGlobalClusterDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/rds/RdsGlobalClusterIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsGlobalClusterDockerNightlyIntegrationTest.java index 0f5a2bb073..081a0f7800 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsGlobalClusterIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsGlobalClusterDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsIamAuthLambdaSessionIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsIamAuthLambdaSessionDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/rds/RdsIamAuthLambdaSessionIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsIamAuthLambdaSessionDockerNightlyIntegrationTest.java index bb1003cc8f..3725ff2668 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsIamAuthLambdaSessionIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsIamAuthLambdaSessionDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsMysqlSnapshotDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsMysqlSnapshotDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/RdsMysqlSnapshotDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsMysqlSnapshotDockerNightlyIntegrationTest.java index 7b8433e6d3..176f777846 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsMysqlSnapshotDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsMysqlSnapshotDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsParameterGroupEngineIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsParameterGroupEngineDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/rds/RdsParameterGroupEngineIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsParameterGroupEngineDockerNightlyIntegrationTest.java index 6797c27566..64a4495372 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsParameterGroupEngineIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsParameterGroupEngineDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsPointInTimeRestoreIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsPointInTimeRestoreDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/rds/RdsPointInTimeRestoreIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsPointInTimeRestoreDockerNightlyIntegrationTest.java index 2ed7a9c326..421c9bb493 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsPointInTimeRestoreIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsPointInTimeRestoreDockerNightlyIntegrationTest.java @@ -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, " diff --git a/src/test/java/io/floci/aws/services/rds/RdsReadReplicaIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsReadReplicaDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/rds/RdsReadReplicaIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsReadReplicaDockerNightlyIntegrationTest.java index add05a8fa2..82b1210ec9 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsReadReplicaIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsReadReplicaDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsRoleAssociationIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsRoleAssociationDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/rds/RdsRoleAssociationIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsRoleAssociationDockerNightlyIntegrationTest.java index 1810b6aa1b..6bffc88a01 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsRoleAssociationIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsRoleAssociationDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/RdsSnapshotLifecycleIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsSnapshotLifecycleDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/rds/RdsSnapshotLifecycleIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsSnapshotLifecycleDockerNightlyIntegrationTest.java index 180d9994f3..c5a3d25f58 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsSnapshotLifecycleIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsSnapshotLifecycleDockerNightlyIntegrationTest.java @@ -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, " diff --git a/src/test/java/io/floci/aws/services/rds/RdsStopStartIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsStopStartDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/rds/RdsStopStartIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsStopStartDockerNightlyIntegrationTest.java index 6ef275327d..598c617f54 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsStopStartIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsStopStartDockerNightlyIntegrationTest.java @@ -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, " diff --git a/src/test/java/io/floci/aws/services/rds/RdsTemplateDatabaseRestoreIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest.java similarity index 94% rename from src/test/java/io/floci/aws/services/rds/RdsTemplateDatabaseRestoreIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest.java index dd8500e069..9909b5f140 100644 --- a/src/test/java/io/floci/aws/services/rds/RdsTemplateDatabaseRestoreIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest.java @@ -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 { diff --git a/src/test/java/io/floci/aws/services/rds/container/RdsDataResumingIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/container/RdsDataResumingDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/rds/container/RdsDataResumingIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/container/RdsDataResumingDockerNightlyIntegrationTest.java index 410c1385e4..f8cd1365a8 100644 --- a/src/test/java/io/floci/aws/services/rds/container/RdsDataResumingIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/container/RdsDataResumingDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/rds/export/RdsSnapshotExportIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/export/RdsSnapshotExportDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/rds/export/RdsSnapshotExportIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/export/RdsSnapshotExportDockerNightlyIntegrationTest.java index 05f8bf9cb9..13600fe9df 100644 --- a/src/test/java/io/floci/aws/services/rds/export/RdsSnapshotExportIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/export/RdsSnapshotExportDockerNightlyIntegrationTest.java @@ -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. * - *

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}. + *

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!"; diff --git a/src/test/java/io/floci/aws/services/rds/proxy/RdsPgBouncerIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/proxy/RdsPgBouncerDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/proxy/RdsPgBouncerIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/proxy/RdsPgBouncerDockerNightlyIntegrationTest.java index cc98a144d6..c87c4139a1 100644 --- a/src/test/java/io/floci/aws/services/rds/proxy/RdsPgBouncerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/proxy/RdsPgBouncerDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresForceSslIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresForceSslDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresForceSslIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresForceSslDockerNightlyIntegrationTest.java index ddbccf641c..3e0a58a97d 100644 --- a/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresForceSslIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresForceSslDockerNightlyIntegrationTest.java @@ -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!"; diff --git a/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresIamRoleIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresIamRoleDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresIamRoleIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresIamRoleDockerNightlyIntegrationTest.java index 985bde6d65..f65f1619eb 100644 --- a/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresIamRoleIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresIamRoleDockerNightlyIntegrationTest.java @@ -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() { diff --git a/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresStartupParametersIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresStartupParametersDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresStartupParametersIntegrationTest.java rename to src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresStartupParametersDockerNightlyIntegrationTest.java index a799d5a0a1..377a65afe0 100644 --- a/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresStartupParametersIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/rds/proxy/RdsPostgresStartupParametersDockerNightlyIntegrationTest.java @@ -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!"; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftCatalogSeedIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftCatalogSeedDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/redshift/RedshiftCatalogSeedIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftCatalogSeedDockerNightlyIntegrationTest.java index 06f33f13d8..9153829f7f 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftCatalogSeedIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftCatalogSeedDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftCopyDiagnosticsIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftCopyDiagnosticsDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/redshift/RedshiftCopyDiagnosticsIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftCopyDiagnosticsDockerNightlyIntegrationTest.java index fd2edc7bd9..fdbcb8d947 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftCopyDiagnosticsIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftCopyDiagnosticsDockerNightlyIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftCopyEtlIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftCopyEtlDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/redshift/RedshiftCopyEtlIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftCopyEtlDockerNightlyIntegrationTest.java index 7ab6809e24..56a19cb994 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftCopyEtlIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftCopyEtlDockerNightlyIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftCopyJobIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftCopyJobDockerNightlyIntegrationTest.java similarity index 95% rename from src/test/java/io/floci/aws/services/redshift/RedshiftCopyJobIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftCopyJobDockerNightlyIntegrationTest.java index 81e4467dbc..5ac2eb5f27 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftCopyJobIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftCopyJobDockerNightlyIntegrationTest.java @@ -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 + "'"; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftExternalFunctionIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftExternalFunctionDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/redshift/RedshiftExternalFunctionIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftExternalFunctionDockerNightlyIntegrationTest.java index eb6bd3471e..b64f1d9d92 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftExternalFunctionIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftExternalFunctionDockerNightlyIntegrationTest.java @@ -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(); diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftGetClusterCredentialsIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftGetClusterCredentialsDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/redshift/RedshiftGetClusterCredentialsIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftGetClusterCredentialsDockerNightlyIntegrationTest.java index cf2a785484..d4772cc1ac 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftGetClusterCredentialsIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftGetClusterCredentialsDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftIntegrationsIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftIntegrationsDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/redshift/RedshiftIntegrationsIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftIntegrationsDockerNightlyIntegrationTest.java index e965f0d8f4..2e50930360 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftIntegrationsIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftIntegrationsDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorDockerNightlyIntegrationTest.java index f83afd39d8..9085912485 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorDockerNightlyIntegrationTest.java @@ -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":[ diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIamRoleEnforcedIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIamRoleEnforcedDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIamRoleEnforcedIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIamRoleEnforcedDockerNightlyIntegrationTest.java index da0e324051..36592a2a09 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIamRoleEnforcedIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftInterceptorIamRoleEnforcedDockerNightlyIntegrationTest.java @@ -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":[ diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisSchemaIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisSchemaDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/redshift/RedshiftKinesisSchemaIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftKinesisSchemaDockerNightlyIntegrationTest.java index 8870810b32..adf15ca808 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisSchemaIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisSchemaDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisStreamingViewIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisStreamingViewDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/redshift/RedshiftKinesisStreamingViewIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftKinesisStreamingViewDockerNightlyIntegrationTest.java index c319c2ce77..d0fa9261f5 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisStreamingViewIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftKinesisStreamingViewDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftMskStreamingViewIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftMskStreamingViewDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/redshift/RedshiftMskStreamingViewIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftMskStreamingViewDockerNightlyIntegrationTest.java index 1507db5876..0864d2b217 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftMskStreamingViewIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftMskStreamingViewDockerNightlyIntegrationTest.java @@ -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 = diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftProxyIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftProxyDockerNightlyIntegrationTest.java similarity index 96% rename from src/test/java/io/floci/aws/services/redshift/RedshiftProxyIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftProxyDockerNightlyIntegrationTest.java index 57741f585c..fcb8773e84 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftProxyIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftProxyDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftS3AutoCopyIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftS3AutoCopyDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/redshift/RedshiftS3AutoCopyIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftS3AutoCopyDockerNightlyIntegrationTest.java index ebe22ce8c2..e1321ba59d 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftS3AutoCopyIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftS3AutoCopyDockerNightlyIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftServerlessZeroEtlIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftServerlessZeroEtlDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/redshift/RedshiftServerlessZeroEtlIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftServerlessZeroEtlDockerNightlyIntegrationTest.java index bff162c961..2ef71214de 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftServerlessZeroEtlIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftServerlessZeroEtlDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftSpectrumIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftSpectrumDockerNightlyIntegrationTest.java similarity index 99% rename from src/test/java/io/floci/aws/services/redshift/RedshiftSpectrumIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftSpectrumDockerNightlyIntegrationTest.java index 5a13ca15c0..dc4749baf4 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftSpectrumIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftSpectrumDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftUnloadParquetIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftUnloadParquetDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/redshift/RedshiftUnloadParquetIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftUnloadParquetDockerNightlyIntegrationTest.java index f5fe6cffb4..85c1388864 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftUnloadParquetIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftUnloadParquetDockerNightlyIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/services/redshift/RedshiftVarbyteSuperIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/RedshiftVarbyteSuperDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/redshift/RedshiftVarbyteSuperIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/RedshiftVarbyteSuperDockerNightlyIntegrationTest.java index aa6a62fa26..b8a6119fcb 100644 --- a/src/test/java/io/floci/aws/services/redshift/RedshiftVarbyteSuperIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/RedshiftVarbyteSuperDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/redshift/metrics/RedshiftMetricsIntegrationTest.java b/src/test/java/io/floci/aws/services/redshift/metrics/RedshiftMetricsDockerNightlyIntegrationTest.java similarity index 95% rename from src/test/java/io/floci/aws/services/redshift/metrics/RedshiftMetricsIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshift/metrics/RedshiftMetricsDockerNightlyIntegrationTest.java index 6e1c7236ca..e248b88348 100644 --- a/src/test/java/io/floci/aws/services/redshift/metrics/RedshiftMetricsIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshift/metrics/RedshiftMetricsDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessAuditLogIntegrationTest.java b/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessAuditLogDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessAuditLogIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessAuditLogDockerNightlyIntegrationTest.java index 6d28d9781f..0d2ae41fa2 100644 --- a/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessAuditLogIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessAuditLogDockerNightlyIntegrationTest.java @@ -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"); diff --git a/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessIntegrationTest.java b/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessIntegrationTest.java index 62bf70dc7d..08cda184e7 100644 --- a/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessRuntimeIntegrationTest.java b/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessRuntimeDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessRuntimeIntegrationTest.java rename to src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessRuntimeDockerNightlyIntegrationTest.java index 714be19f86..afc427c175 100644 --- a/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessRuntimeIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/redshiftserverless/RedshiftServerlessRuntimeDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/sagemaker/SageMakerDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/sagemaker/SageMakerDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/sagemaker/SageMakerDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/sagemaker/SageMakerDockerNightlyIntegrationTest.java index 79310430f6..6cf335c6a0 100644 --- a/src/test/java/io/floci/aws/services/sagemaker/SageMakerDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/sagemaker/SageMakerDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/ssm/SsmTimeoutDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ssm/SsmTimeoutDockerNightlyIntegrationTest.java similarity index 98% rename from src/test/java/io/floci/aws/services/ssm/SsmTimeoutDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/ssm/SsmTimeoutDockerNightlyIntegrationTest.java index 0257b49fd7..285541b086 100644 --- a/src/test/java/io/floci/aws/services/ssm/SsmTimeoutDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ssm/SsmTimeoutDockerNightlyIntegrationTest.java @@ -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; diff --git a/src/test/java/io/floci/aws/services/stepfunctions/StepFunctionsRedshiftDataDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/stepfunctions/StepFunctionsRedshiftDataDockerNightlyIntegrationTest.java similarity index 97% rename from src/test/java/io/floci/aws/services/stepfunctions/StepFunctionsRedshiftDataDockerIntegrationTest.java rename to src/test/java/io/floci/aws/services/stepfunctions/StepFunctionsRedshiftDataDockerNightlyIntegrationTest.java index 46c04eeb82..fb55863fd6 100644 --- a/src/test/java/io/floci/aws/services/stepfunctions/StepFunctionsRedshiftDataDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/stepfunctions/StepFunctionsRedshiftDataDockerNightlyIntegrationTest.java @@ -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"; diff --git a/src/test/java/io/floci/aws/services/timestreaminfluxdb/TimestreamInfluxDbDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/timestreaminfluxdb/TimestreamInfluxDbDockerIntegrationTest.java index 42c4f5899c..72b219c5e3 100644 --- a/src/test/java/io/floci/aws/services/timestreaminfluxdb/TimestreamInfluxDbDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/timestreaminfluxdb/TimestreamInfluxDbDockerIntegrationTest.java @@ -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 diff --git a/src/test/java/io/floci/aws/testing/CloudFormationSettingsProfile.java b/src/test/java/io/floci/aws/testing/CloudFormationSettingsProfile.java index 485dcb665a..5385666b36 100644 --- a/src/test/java/io/floci/aws/testing/CloudFormationSettingsProfile.java +++ b/src/test/java/io/floci/aws/testing/CloudFormationSettingsProfile.java @@ -30,7 +30,7 @@ import java.util.Map; * relies on it. *

  • {@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.
  • + * {@code EksImdsDockerNightlyIntegrationTest} relies on them. *
  • {@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.
  • *
  • {@code floci.services.cloudfront.enabled=false} turns CloudFront off. * {@code CloudFrontDisabledServingTest} relies on it.
  • @@ -60,7 +60,7 @@ import java.util.Map; * {@code KinesisStatusWindowIntegrationTest} relies on them. *
  • {@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.
  • + * {@code RdsTemplateDatabaseRestoreDockerNightlyIntegrationTest} relies on it. * * *

    Each override is inert for the other classes: each is read by a single service, CloudFormation, diff --git a/src/test/java/io/floci/aws/testing/EksPodIdentityProfile.java b/src/test/java/io/floci/aws/testing/EksPodIdentityProfile.java index 304db5153d..68d6637766 100644 --- a/src/test/java/io/floci/aws/testing/EksPodIdentityProfile.java +++ b/src/test/java/io/floci/aws/testing/EksPodIdentityProfile.java @@ -15,10 +15,10 @@ import java.util.Map; *

  • {@code floci.services.eks.pod-identity-webhook=true}, TLS on with no AWS HTTPS port of its * own, the test ports 4510 and 4511, and {@code floci.port} 4595 with the base URL on it, are what * the Pod Identity forward reads. {@code EksPodIdentityDockerIntegrationTest} and - * {@code EksPodIdentityAgentDockerIntegrationTest} rely on them, and the second checks that the + * {@code EksPodIdentityAgentDockerNightlyIntegrationTest} rely on them, and the second checks that the * forward targets port 4595.
  • *
  • {@code floci.services.eks.mock=false} runs EKS clusters for real. - * {@code EksPodIdentityAgentDockerIntegrationTest} starts a k3s node and relies on it.
  • + * {@code EksPodIdentityAgentDockerNightlyIntegrationTest} starts a k3s node and relies on it. * * *

    {@code floci.services.eks.mock} never reaches {@code EksPodIdentityDockerIntegrationTest}: it diff --git a/src/test/java/io/floci/aws/testing/IndependentServiceSettingsProfile.java b/src/test/java/io/floci/aws/testing/IndependentServiceSettingsProfile.java index cff29dcfdc..f8faec4b45 100644 --- a/src/test/java/io/floci/aws/testing/IndependentServiceSettingsProfile.java +++ b/src/test/java/io/floci/aws/testing/IndependentServiceSettingsProfile.java @@ -22,7 +22,7 @@ import java.util.Map; * token as soon as it is issued. {@code KinesisListShardsTokenExpiryIntegrationTest} relies on * it. *

  • {@code floci.services.neptune.db-type=neo4j} backs a new cluster with Neo4j rather than - * Gremlin Server. {@code NeptuneOpenCypherIntegrationTest} relies on it.
  • + * Gremlin Server. {@code NeptuneOpenCypherDockerNightlyIntegrationTest} relies on it. *
  • {@code floci.services.route53.vpc-association-control-plane-delay-ms=150} keeps a hosted * zone busy for 150 ms after a VPC association or authorization change, so an overlapping change * is refused. @@ -39,7 +39,7 @@ import java.util.Map; *
  • {@code floci.services.rds-data.database-resuming-exception-enabled=true} answers a * statement sent to a paused Aurora Serverless cluster with DatabaseResumingException, and * {@code floci.services.rds.aurora-resume-delay-millis=5000} keeps the cluster resuming for five - * seconds. {@code RdsDataResumingIntegrationTest} relies on both.
  • + * seconds. {@code RdsDataResumingDockerNightlyIntegrationTest} relies on both. *
  • {@code floci.services.firehose.flush-record-count=1} delivers every record to S3 as soon as * it arrives. {@code FirehoseFlushRecordCountIntegrationTest} relies on it.
  • *
  • {@code floci.services.lambda.runtime-images."python3.12"} pins the {@code python3.12} @@ -51,7 +51,7 @@ import java.util.Map; * {@code floci.services.iot.mqtt.port=}{@value #IOT_MQTT_PORT} pin to an address it knows.
  • *
  • {@code floci.services.ec2.mock=false} runs instances as real containers, and * {@code floci.services.ec2.volume-block-devices=true} attaches EBS volumes to them as block - * devices. {@code Ec2VolumeBlockDeviceDockerIntegrationTest} relies on both.
  • + * devices. {@code Ec2VolumeBlockDeviceDockerNightlyIntegrationTest} relies on both. *
  • {@code floci.services.sagemaker.gpu.enabled=true} gives a training job on a GPU instance * type a GPU, and fails a job whose GPU request Floci cannot honour rather than training it on * CPU. {@code SageMakerGpuIntegrationTest} relies on it.
  • @@ -72,7 +72,7 @@ import java.util.Map; * reports as the applied value of the standard On-Demand vCPU quota. * {@code ServiceQuotasAppliedValueIntegrationTest} relies on it. EC2 only enforces that quota * when {@code floci.services.ec2.enforce-vcpu-quotas} is on, which it is not here, so - * {@code Ec2VolumeBlockDeviceDockerIntegrationTest}'s instances never meet it. + * {@code Ec2VolumeBlockDeviceDockerNightlyIntegrationTest}'s instances never meet it. *
  • {@code floci.services.elbv2.mock=false} runs the real ELBv2 data plane, so a listener * forwards to its targets, and {@code floci.services.elbv2.backend-keep-alive=false} opens a * fresh connection to the target for every request it forwards. diff --git a/src/test/java/io/floci/aws/testing/RdsMockProfile.java b/src/test/java/io/floci/aws/testing/RdsMockProfile.java index 19e3460f9a..fc4d542dbc 100644 --- a/src/test/java/io/floci/aws/testing/RdsMockProfile.java +++ b/src/test/java/io/floci/aws/testing/RdsMockProfile.java @@ -28,16 +28,16 @@ import java.util.Set; * use the ALB listener at 127.0.0.1 as its custom origin, which CloudFront otherwise refuses as a * private address. {@code CloudFrontWebSocketIntegrationTest} relies on it.
  • *
  • {@code floci.services.eks.mock=false} runs EKS clusters as real k3s containers. - * {@code EksRegistryHostsDockerIntegrationTest} relies on it, since it creates its cluster and - * node group through the EKS API. {@code EksStorageClassDockerIntegrationTest} and - * {@code EksNodeMountPropagationDockerIntegrationTest} start theirs through + * {@code EksRegistryHostsDockerNightlyIntegrationTest} relies on it, since it creates its cluster and + * node group through the EKS API. {@code EksStorageClassDockerNightlyIntegrationTest} and + * {@code EksNodeMountPropagationDockerNightlyIntegrationTest} start theirs through * {@code EksClusterManager}, which runs a k3s container either way.
  • *
  • {@code floci.services.cur.emit-mode=synchronous} and * {@code floci.services.bcm-data-exports.emit-mode=synchronous} write billing reports inline, * and {@code quarkus.http.test-port} and {@code quarkus.http.port} set to one free port, chosen * once when the class loads, give the DuckDB sidecar a real port to reach Floci S3 on, since the * endpoint a container is handed is built from {@code quarkus.http.port}. - * {@code CurEmissionIntegrationTest} and {@code CurNonDefaultAccountEmissionIntegrationTest} rely + * {@code CurEmissionDockerNightlyIntegrationTest} and {@code CurNonDefaultAccountEmissionDockerNightlyIntegrationTest} rely * on them. The other classes only see a listener on that port instead of another random one.
  • *
  • {@code floci.services.iot.enabled=false} turns IoT off, so its data-plane host routing never * sees a request. {@code ApiGatewayCustomDomainIamAuthIntegrationTest} relies on it, to check the diff --git a/src/test/java/io/floci/aws/testing/S3EnforceAuthProfile.java b/src/test/java/io/floci/aws/testing/S3EnforceAuthProfile.java index 4d40dac1bd..260a6a20ee 100644 --- a/src/test/java/io/floci/aws/testing/S3EnforceAuthProfile.java +++ b/src/test/java/io/floci/aws/testing/S3EnforceAuthProfile.java @@ -21,7 +21,7 @@ import java.util.Set; * access checks. The {@code S3*AuthEnforcement}, {@code S3*BucketPolicy} and * {@code S3Presigned*} classes, {@code CloudFrontS3AuthServingTest}, * {@code SesExportJobS3AuthEnforcementIntegrationTest} and - * {@code RedshiftInterceptorIamRoleEnforcedIntegrationTest} rely on it.
  • + * {@code RedshiftInterceptorIamRoleEnforcedDockerNightlyIntegrationTest} rely on it. *
  • {@code floci.services.bedrock-runtime.backend=proxy}, with {@code proxy.url} on port * {@value #BEDROCK_PROXY_PORT}, {@code proxy.model-mapping} for {@value #BEDROCK_PROXY_MAPPED_MODEL_ID} * and a one-second {@code proxy.request-timeout-seconds}, send Bedrock Runtime calls to a stand-in @@ -48,7 +48,7 @@ import java.util.Set; * A class that invokes a Lambda function cannot join, since the scripted stand-in answers it, and * neither can one that sends an unsigned S3 request. * - *

    {@code DynamoDbLocalBackendIntegrationTest} stays apart: the DynamoDB Local backend refuses to + *

    {@code DynamoDbLocalBackendDockerNightlyIntegrationTest} stays apart: the DynamoDB Local backend refuses to * start without an endpoint, and that class only runs when its environment variable names one, so * an application it shared would fail to boot for every other class. * diff --git a/src/test/java/io/floci/aws/testing/S3IamEnforcementProfile.java b/src/test/java/io/floci/aws/testing/S3IamEnforcementProfile.java index d9a3aab6ef..90e36e34b8 100644 --- a/src/test/java/io/floci/aws/testing/S3IamEnforcementProfile.java +++ b/src/test/java/io/floci/aws/testing/S3IamEnforcementProfile.java @@ -39,7 +39,7 @@ import java.util.Map; * which span the two engines, rely on them.

  • *
  • {@code floci.services.eks.mock=false} runs EKS clusters as real k3s containers, and * {@code floci.services.eks.irsa-signing-key=true} has k3s sign projected service account tokens - * with the cluster's OIDC keypair. {@code EksIrsaDockerIntegrationTest} relies on them, and on IAM + * with the cluster's OIDC keypair. {@code EksIrsaDockerNightlyIntegrationTest} relies on them, and on IAM * enforcement to refuse a mismatched subject or an untrusted issuer.
  • * * diff --git a/src/test/java/io/floci/aws/testing/ScopedServiceSettingsProfile.java b/src/test/java/io/floci/aws/testing/ScopedServiceSettingsProfile.java index 9fb95493a8..1ca37cb69d 100644 --- a/src/test/java/io/floci/aws/testing/ScopedServiceSettingsProfile.java +++ b/src/test/java/io/floci/aws/testing/ScopedServiceSettingsProfile.java @@ -12,8 +12,8 @@ import java.util.Map; *

    The overrides, and who relies on them: *

      *
    • {@code floci.services.ecs.mock=false} runs ECS tasks as Docker containers. - * {@code EcsImagePullDockerIntegrationTest}, {@code EcsEssentialContainerExitDockerIntegrationTest} - * and {@code EcsLinuxParametersDockerIntegrationTest} rely on it. + * {@code EcsImagePullDockerIntegrationTest}, {@code EcsEssentialContainerExitDockerNightlyIntegrationTest} + * and {@code EcsLinuxParametersDockerNightlyIntegrationTest} rely on it. * {@code floci.network.security-group-enforcement.enabled=false} puts security-group enforcement * back to its shipped default of off, and {@code floci.services.ecs.image-pull-behavior=default} * back to the shipped pull on every launch, which the shared test config swaps for @@ -30,7 +30,7 @@ import java.util.Map; *
    • {@code floci.services.ecs.host-volume-roots=/dev/null} makes {@code /dev/null} the one host * path a device may take, since devices are refused by default, and * {@code floci.services.ecs.allow-privileged-containers=true} lets a task definition ask for - * privilege. {@code EcsLinuxParametersDockerIntegrationTest} relies on them.
    • + * privilege. {@code EcsLinuxParametersDockerNightlyIntegrationTest} relies on them. *
    • The extra CORS origins, allowed and exposed headers, and * {@code floci.security.cors-allow-private-network=true} are what a browser's preflight is * answered with. {@code GlobalCorsFilterIntegrationTest} relies on them.
    • diff --git a/src/test/java/io/floci/aws/testing/SidecarServiceSettingsProfile.java b/src/test/java/io/floci/aws/testing/SidecarServiceSettingsProfile.java index 30fbaa5db6..3f5265cf0e 100644 --- a/src/test/java/io/floci/aws/testing/SidecarServiceSettingsProfile.java +++ b/src/test/java/io/floci/aws/testing/SidecarServiceSettingsProfile.java @@ -25,7 +25,7 @@ import java.util.Map; *
    • {@link ExternalPostgresResource} starts a PostgreSQL server before Floci boots and makes it * the DSQL backend, with {@code floci.services.dsql.mock=false}, so every cluster's database is * on that one server instead of in a container of its own. - * {@code DsqlExternalBackendIntegrationTest} relies on it. A server that does not start fails + * {@code DsqlExternalBackendDockerNightlyIntegrationTest} relies on it. A server that does not start fails * only that class: the resource records why, and the application boots anyway.
    • *
    * diff --git a/src/test/java/io/floci/aws/testing/ValidateSignaturesProfile.java b/src/test/java/io/floci/aws/testing/ValidateSignaturesProfile.java index 7233ad9c19..cae4710a74 100644 --- a/src/test/java/io/floci/aws/testing/ValidateSignaturesProfile.java +++ b/src/test/java/io/floci/aws/testing/ValidateSignaturesProfile.java @@ -17,7 +17,7 @@ import java.util.Map; *
  • {@code floci.services.ecs.mock=false} runs ECS tasks as real containers, and * {@code floci.network.security-group-enforcement.enabled=false} puts security groups back to * their shipped default of off, since the enforcement helper needs rootful Docker. - * {@code EcsServiceDiscoveryDockerIntegrationTest} and {@code EcsLeftoverContainersDockerIntegrationTest} + * {@code EcsServiceDiscoveryDockerNightlyIntegrationTest} and {@code EcsLeftoverContainersDockerIntegrationTest} * rely on them.
  • * *