diff --git a/tests/appsec/integrations/django_tests/django_app/urls.py b/tests/appsec/integrations/django_tests/django_app/urls.py index 8dc672cd620..c9193b230f0 100644 --- a/tests/appsec/integrations/django_tests/django_app/urls.py +++ b/tests/appsec/integrations/django_tests/django_app/urls.py @@ -15,7 +15,9 @@ def shutdown(request): # Endpoint used to flush traces to the agent when doing snapshots. - tracer.shutdown() + # Bounded because the default never gives up, and gevent can park an untimed wait forever. + # Stays under the caller's 10s read timeout in appsec_utils. + tracer.shutdown(timeout=5) return HttpResponse(status=200) diff --git a/tests/appsec/suitespec.yml b/tests/appsec/suitespec.yml index 12ed6fbe08f..10bb1bde8b2 100644 --- a/tests/appsec/suitespec.yml +++ b/tests/appsec/suitespec.yml @@ -74,6 +74,7 @@ suites: paths: - '@appsec_iast' - tests/appsec/iast_packages/* + - tests/appsec/app.py - tests/appsec/appsec_utils.py timeout: 50m iast_tdd_propagation: @@ -85,6 +86,7 @@ suites: - '@appsec_iast' - '@remoteconfig' - tests/appsec/iast_tdd_propagation/* + - tests/appsec/app.py - tests/appsec/appsec_utils.py retry: 2 snapshot: true @@ -150,6 +152,7 @@ suites: - '@appsec_iast' - tests/appsec/integrations/flask_tests/test_iast_flask.py - tests/appsec/integrations/flask_tests/test_appsec_flask_telemetry.py + - tests/appsec/app.py - tests/appsec/appsec_utils.py retry: 2 # test_appsec_flask_telemetry.py asserts on payloads received by the test agent. @@ -165,6 +168,7 @@ suites: - '@appsec_iast' - '@remoteconfig' - tests/appsec/integrations/flask_tests/* + - tests/appsec/app.py - tests/appsec/appsec_utils.py retry: 2 services: