File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
tests/appsec/iast/taint_sinks Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -231,16 +231,13 @@ def test_insecure_cookies_exclusions_env_var_invalid_regex(iast_context_defaults
231
231
"regex" ,
232
232
[
233
233
("|*" ),
234
- ("\|||\\ \\ \\ \\ \\ " ),
234
+ ("\\ |||\\ \\ \\ \\ \\ " ),
235
235
],
236
236
)
237
237
def test_insecure_cookies_exclusions_env_var_invalid_regex_with_exception (iast_context_defaults , caplog , regex ):
238
- with override_global_config (
239
- dict (
240
- _iast_cookie_filter_pattern = regex ,
241
- _iast_debug = True
242
- )
243
- ), caplog .at_level (logging .DEBUG ):
238
+ with override_global_config (dict (_iast_cookie_filter_pattern = regex , _iast_debug = True )), caplog .at_level (
239
+ logging .DEBUG
240
+ ):
244
241
_start_iast_context_and_oce ()
245
242
cookies = {"session_id" : "bar" }
246
243
asm_check_cookies (cookies )
@@ -250,7 +247,9 @@ def test_insecure_cookies_exclusions_env_var_invalid_regex_with_exception(iast_c
250
247
assert span_report is None
251
248
252
249
_end_iast_context_and_oce ()
253
- assert any ("[IAST] Propagation error. [IAST] error in asm_check_cookies" in record .message for record in caplog .records )
250
+ assert any (
251
+ "[IAST] Propagation error. [IAST] error in asm_check_cookies" in record .message for record in caplog .records
252
+ )
254
253
255
254
256
255
def test_insecure_cookies_deduplication (iast_context_deduplication_enabled ):
You can’t perform that action at this time.
0 commit comments