From b562c9c351a9b46f4dade04c5ed9dabd6bc14c17 Mon Sep 17 00:00:00 2001 From: Kyle Ames Date: Wed, 12 Oct 2022 16:47:10 -0400 Subject: [PATCH] Disable local appsec for ASM_FEATURES tests Within tracers, appsec being enabled via the DD_APPSEC_ENABLED environment variable disables remote configuration. In order to be able to leverage these tests, we need that environment variable set to false. --- run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.sh b/run.sh index 88d6470573b..05c522036dc 100755 --- a/run.sh +++ b/run.sh @@ -132,6 +132,7 @@ elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_ASM_FEATURES" ]; th export RUNNER_ARGS="scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationFields scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceFeatures" export SYSTEMTESTS_LOG_FOLDER=logs_remote_config_mocked_backend_features export SYSTEMTESTS_LIBRARY_PROXY_STATE='{"mock_remote_config_backend": "ASM_FEATURES"}' + WEBLOG_ENV="DD_APPSEC_ENABLED=false" elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_LIVE_DEBUGGING" ]; then export RUNNER_ARGS="scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationFields scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceLiveDebugging" @@ -148,6 +149,7 @@ elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_ASM_FEATURES_NOCACH export RUNNER_ARGS="scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationFields scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceFeaturesNoCache" export SYSTEMTESTS_LOG_FOLDER=logs_remote_config_mocked_backend_features_nocache export SYSTEMTESTS_LIBRARY_PROXY_STATE='{"mock_remote_config_backend": "ASM_FEATURES_NO_CACHE"}' + WEBLOG_ENV="DD_APPSEC_ENABLED=false" elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_LIVE_DEBUGGING_NOCACHE" ]; then export RUNNER_ARGS="scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationFields scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceLiveDebuggingNoCache"