@@ -6,7 +6,7 @@ PIP_CMD ?= pip3
6
6
TEST_PATH ?= .
7
7
TEST_EXEC ?= python -m
8
8
PYTEST_LOGLEVEL ?= warning
9
- export LOCALSTACK_DISABLE_EVENTS ?= 1 # # disable analytics events from being sent to the backend
9
+ export DISABLE_EVENTS ?= 1 # # disable analytics events from being sent to the backend
10
10
11
11
uname_m := $(shell uname -m)
12
12
ifeq ($(uname_m ) ,x86_64)
@@ -92,14 +92,14 @@ start: ## Manually start the local infrastructure for testing
92
92
($( VENV_RUN) ; exec bin/localstack start --host)
93
93
94
94
docker-run-tests : # # Initializes the test environment and runs the tests in a docker container
95
- docker run -e LOCALSTACK_INTERNAL_TEST_COLLECT_METRIC=1 -e LOCALSTACK_DISABLE_EVENTS =$$ LOCALSTACK_DISABLE_EVENTS --entrypoint= -v ` pwd` /.git:/opt/code/localstack/.git -v ` pwd` /requirements-test.txt:/opt/code/localstack/requirements-test.txt -v ` pwd` /tests/:/opt/code/localstack/tests/ -v ` pwd` /dist/:/opt/code/localstack/dist/ -v ` pwd` /target/:/opt/code/localstack/target/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/localstack:/var/lib/localstack \
95
+ docker run -e LOCALSTACK_INTERNAL_TEST_COLLECT_METRIC=1 -e DISABLE_EVENTS =$$ DISABLE_EVENTS --entrypoint= -v ` pwd` /.git:/opt/code/localstack/.git -v ` pwd` /requirements-test.txt:/opt/code/localstack/requirements-test.txt -v ` pwd` /tests/:/opt/code/localstack/tests/ -v ` pwd` /dist/:/opt/code/localstack/dist/ -v ` pwd` /target/:/opt/code/localstack/target/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/localstack:/var/lib/localstack \
96
96
$(IMAGE_NAME ) :$(DEFAULT_TAG ) \
97
97
bash -c " make install-test && DEBUG=$( DEBUG) PYTEST_LOGLEVEL=$( PYTEST_LOGLEVEL) PYTEST_ARGS='$( PYTEST_ARGS) ' COVERAGE_FILE='$( COVERAGE_FILE) ' JUNIT_REPORTS_FILE=$( JUNIT_REPORTS_FILE) TEST_PATH='$( TEST_PATH) ' LAMBDA_IGNORE_ARCHITECTURE=1 LAMBDA_INIT_POST_INVOKE_WAIT_MS=50 TINYBIRD_PYTEST_ARGS='$( TINYBIRD_PYTEST_ARGS) ' TINYBIRD_DATASOURCE='$( TINYBIRD_DATASOURCE) ' TINYBIRD_TOKEN='$( TINYBIRD_TOKEN) ' TINYBIRD_URL='$( TINYBIRD_URL) ' CI_REPOSITORY_NAME='$( CI_REPOSITORY_NAME) ' CI_WORKFLOW_NAME='$( CI_WORKFLOW_NAME) ' CI_COMMIT_BRANCH='$( CI_COMMIT_BRANCH) ' CI_COMMIT_SHA='$( CI_COMMIT_SHA) ' CI_JOB_URL='$( CI_JOB_URL) ' CI_JOB_NAME='$( CI_JOB_NAME) ' CI_JOB_ID='$( CI_JOB_ID) ' CI='$( CI) ' TEST_AWS_REGION_NAME='${TEST_AWS_REGION_NAME} ' TEST_AWS_ACCESS_KEY_ID='${TEST_AWS_ACCESS_KEY_ID} ' TEST_AWS_ACCOUNT_ID='${TEST_AWS_ACCOUNT_ID} ' make test-coverage"
98
98
99
99
docker-run-tests-s3-only : # # Initializes the test environment and runs the tests in a docker container for the S3 only image
100
100
# TODO: We need node as it's a dependency of the InfraProvisioner at import time, remove when we do not need it anymore
101
101
# g++ is a workaround to fix the JPype1 compile error on ARM Linux "gcc: fatal error: cannot execute ‘cc1plus’" because the test dependencies include the runtime dependencies.
102
- docker run -e LOCALSTACK_INTERNAL_TEST_COLLECT_METRIC=1 -e LOCALSTACK_DISABLE_EVENTS =$$ LOCALSTACK_DISABLE_EVENTS --entrypoint= -v ` pwd` /.git:/opt/code/localstack/.git -v ` pwd` /requirements-test.txt:/opt/code/localstack/requirements-test.txt -v ` pwd` /tests/:/opt/code/localstack/tests/ -v ` pwd` /target/:/opt/code/localstack/target/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/localstack:/var/lib/localstack \
102
+ docker run -e LOCALSTACK_INTERNAL_TEST_COLLECT_METRIC=1 -e DISABLE_EVENTS =$$ DISABLE_EVENTS --entrypoint= -v ` pwd` /.git:/opt/code/localstack/.git -v ` pwd` /requirements-test.txt:/opt/code/localstack/requirements-test.txt -v ` pwd` /tests/:/opt/code/localstack/tests/ -v ` pwd` /target/:/opt/code/localstack/target/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/localstack:/var/lib/localstack \
103
103
$(IMAGE_NAME ) :$(DEFAULT_TAG ) \
104
104
bash -c " apt-get update && apt-get install -y g++ git && make install-test && apt-get install -y --no-install-recommends gnupg && mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && echo \" deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main\" > /etc/apt/sources.list.d/nodesource.list && apt-get update && apt-get install -y --no-install-recommends nodejs && DEBUG=$( DEBUG) PYTEST_LOGLEVEL=$( PYTEST_LOGLEVEL) PYTEST_ARGS='$( PYTEST_ARGS) ' TEST_PATH='$( TEST_PATH) ' TINYBIRD_PYTEST_ARGS='$( TINYBIRD_PYTEST_ARGS) ' TINYBIRD_DATASOURCE='$( TINYBIRD_DATASOURCE) ' TINYBIRD_TOKEN='$( TINYBIRD_TOKEN) ' TINYBIRD_URL='$( TINYBIRD_URL) ' CI_COMMIT_BRANCH='$( CI_COMMIT_BRANCH) ' CI_COMMIT_SHA='$( CI_COMMIT_SHA) ' CI_JOB_URL='$( CI_JOB_URL) ' CI_JOB_NAME='$( CI_JOB_NAME) ' CI_JOB_ID='$( CI_JOB_ID) ' CI='$( CI) ' make test"
105
105
0 commit comments