Skip to content

Commit 4c6618b

Browse files
committed
Disbale test for localstack and export envs
1 parent e76c24f commit 4c6618b

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

Dockerfile.ci

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,27 @@ function environment_initialization() {
12071207
ssh-keyscan -H localhost >> ~/.ssh/known_hosts 2>/dev/null
12081208
fi
12091209

1210+
if [[ ${INTEGRATION_LOCALSTACK} == "true" ]]; then
1211+
echo
1212+
echo "${COLOR_BLUE}Configuring LocalStack integration${COLOR_RESET}"
1213+
echo
1214+
1215+
# Define LocalStack AWS configuration
1216+
declare -A localstack_config=(
1217+
["AWS_ENDPOINT_URL"]="http://localstack:4566"
1218+
["AWS_ACCESS_KEY_ID"]="test"
1219+
["AWS_SECRET_ACCESS_KEY"]="test"
1220+
["AWS_DEFAULT_REGION"]="us-east-1"
1221+
)
1222+
1223+
# Export each configuration variable and log it
1224+
for key in "${!localstack_config[@]}"; do
1225+
export "$key"="${localstack_config[$key]}"
1226+
echo " * ${COLOR_BLUE}${key}:${COLOR_RESET} ${localstack_config[$key]}"
1227+
done
1228+
echo
1229+
fi
1230+
12101231
cd "${AIRFLOW_SOURCES}"
12111232

12121233
# Temporarily add /opt/airflow/providers/standard/tests to PYTHONPATH in order to see example dags

dev/breeze/src/airflow_breeze/global_constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
]
8484
DISABLE_TESTABLE_INTEGRATIONS_FROM_CI = [
8585
"mssql",
86+
"localstack", # just for local integration testing for now
8687
]
8788
KEYCLOAK_INTEGRATION = "keycloak"
8889
STATSD_INTEGRATION = "statsd"

dev/breeze/tests/test_selective_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
10421042
"providers-test-types-list-as-strings-in-json": ALL_PROVIDERS_SELECTIVE_TEST_TYPES_AS_JSON,
10431043
"testable-core-integrations": "['kerberos', 'redis']",
10441044
"testable-providers-integrations": "['celery', 'cassandra', 'drill', 'tinkerpop', 'kafka', "
1045-
"'localstack', 'mongo', 'pinot', 'qdrant', 'redis', 'trino', 'ydb']",
1045+
"'mongo', 'pinot', 'qdrant', 'redis', 'trino', 'ydb']",
10461046
"run-mypy": "true",
10471047
"mypy-checks": ALL_MYPY_CHECKS,
10481048
},

scripts/docker/entrypoint_ci.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,27 @@ function environment_initialization() {
184184
ssh-keyscan -H localhost >> ~/.ssh/known_hosts 2>/dev/null
185185
fi
186186

187+
if [[ ${INTEGRATION_LOCALSTACK:-"false"} == "true" ]]; then
188+
echo
189+
echo "${COLOR_BLUE}Configuring LocalStack integration${COLOR_RESET}"
190+
echo
191+
192+
# Define LocalStack AWS configuration
193+
declare -A localstack_config=(
194+
["AWS_ENDPOINT_URL"]="http://localstack:4566"
195+
["AWS_ACCESS_KEY_ID"]="test"
196+
["AWS_SECRET_ACCESS_KEY"]="test"
197+
["AWS_DEFAULT_REGION"]="us-east-1"
198+
)
199+
200+
# Export each configuration variable and log it
201+
for key in "${!localstack_config[@]}"; do
202+
export "$key"="${localstack_config[$key]}"
203+
echo " * ${COLOR_BLUE}${key}:${COLOR_RESET} ${localstack_config[$key]}"
204+
done
205+
echo
206+
fi
207+
187208
cd "${AIRFLOW_SOURCES}"
188209

189210
# Temporarily add /opt/airflow/providers/standard/tests to PYTHONPATH in order to see example dags

0 commit comments

Comments
 (0)