Skip to content

Commit

Permalink
Disable local appsec for ASM_FEATURES tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ameske committed Oct 24, 2022
1 parent d66348d commit 0219948
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ elif [ $SYSTEMTESTS_SCENARIO = "BACKEND_WAF" ]; then

elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_ASM_FEATURES" ]; then
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_LOG_FOLDER=logs_remote_config_mocked_backend_asm_features
export SYSTEMTESTS_LIBRARY_PROXY_STATE='{"mock_remote_config_backend": "ASM_FEATURES"}'
WEBLOG_ENV="DD_APPSEC_ENABLED="

elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_LIVE_DEBUGGING" ]; then
export RUNNER_ARGS="scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceLiveDebugging"
Expand All @@ -146,8 +147,9 @@ elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_ASM_DD" ]; then

elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_ASM_FEATURES_NOCACHE" ]; then
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_LOG_FOLDER=logs_remote_config_mocked_backend_asm_features_nocache
export SYSTEMTESTS_LIBRARY_PROXY_STATE='{"mock_remote_config_backend": "ASM_FEATURES_NO_CACHE"}'
WEBLOG_ENV="DD_APPSEC_ENABLED="

elif [ $SYSTEMTESTS_SCENARIO = "REMOTE_CONFIG_MOCKED_BACKEND_LIVE_DEBUGGING_NOCACHE" ]; then
export RUNNER_ARGS="scenarios/remote_config/test_remote_configuration.py::Test_RemoteConfigurationUpdateSequenceLiveDebuggingNoCache"
Expand Down

0 comments on commit 0219948

Please sign in to comment.