From e456701485f08da9b35dd1e5a22da1799aa2f6b6 Mon Sep 17 00:00:00 2001 From: Munir Abdinur Date: Sun, 6 Oct 2024 19:18:07 -0400 Subject: [PATCH] fix asm tests, mocked config object needs to use the new name --- tests/appsec/appsec/test_processor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/appsec/appsec/test_processor.py b/tests/appsec/appsec/test_processor.py index 36c17d127d4..3d86cff0793 100644 --- a/tests/appsec/appsec/test_processor.py +++ b/tests/appsec/appsec/test_processor.py @@ -590,7 +590,7 @@ def test_ddwaf_info_with_3_errors(): def test_ddwaf_info_with_json_decode_errors(tracer_appsec, caplog): tracer = tracer_appsec config = rules.Config() - config.http_tag_query_string = True + config._http_tag_query_string = True with caplog.at_level(logging.WARNING), mock.patch( "ddtrace.appsec._processor.json.dumps", side_effect=JSONDecodeError("error", "error", 0) @@ -627,7 +627,7 @@ def test_ddwaf_run_contained_typeerror(tracer_appsec, caplog): tracer = tracer_appsec config = rules.Config() - config.http_tag_query_string = True + config._http_tag_query_string = True with caplog.at_level(logging.DEBUG), mock.patch( "ddtrace.appsec._ddwaf.ddwaf_run", side_effect=TypeError("expected c_long instead of int") @@ -665,7 +665,7 @@ def test_ddwaf_run_contained_oserror(tracer_appsec, caplog): tracer = tracer_appsec config = rules.Config() - config.http_tag_query_string = True + config._http_tag_query_string = True with caplog.at_level(logging.DEBUG), mock.patch( "ddtrace.appsec._ddwaf.ddwaf_run", side_effect=OSError("ddwaf run failed")