Skip to content

Commit

Permalink
chore: add IAST taint tracking logs
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 committed Apr 15, 2024
1 parent 9a6a45e commit f42a089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/appsec/iast/aspects/test_add_aspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def test_taint_ranges_as_evidence_info_different_tainted_op1_and_op3_add():
@pytest.mark.parametrize(
"log_level, iast_debug, expected_log_msg",
[
(logging.DEBUG, "", "Failed to taint pyobject"),
(logging.DEBUG, "", "[IAST] Tainted Map"),
(logging.WARNING, "", ""),
(logging.DEBUG, "true", "_iast/_taint_tracking/__init__.py"),
(logging.WARNING, "true", "_iast/_taint_tracking/__init__.py"),
Expand Down Expand Up @@ -350,7 +350,7 @@ def test_taint_object_error_with_no_context(log_level, iast_debug, expected_log_
record.message for record in caplog.records
]
else:
assert not any("Failed to taint pyobject" in record.message for record in caplog.records)
assert not any("[IAST] Tainted Map" in record.message for record in caplog.records)

create_context()
result = taint_pyobject(
Expand Down

0 comments on commit f42a089

Please sign in to comment.