Skip to content

Commit

Permalink
feat(iast): report telemetry log error
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 committed Sep 20, 2024
1 parent 707ee82 commit 069bf81
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/appsec/iast/aspects/test_join_aspect_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ def test_string_join_tainted_joiner_generator(self): # type: () -> None
# order it's not constant
assert result in (
"a-joiner-c-joiner-b",
"b-joiner-c-joiner-a",
"c-joiner-a-joiner-b",
"a-joiner-b-joiner-c",
"b-joiner-c-joiner-a",
"b-joiner-a-joiner-c",
"c-joiner-a-joiner-b",
"c-joiner-b-joiner-a",
)
ranges = get_tainted_ranges(result)
assert result[ranges[0].start : (ranges[0].start + ranges[0].length)] == "-joiner-"
Expand All @@ -89,10 +90,11 @@ def test_string_join_tainted_joiner_and_string_iterator(self): # type: () -> No
# order it's not constant
assert result in (
"a-joiner-c-joiner-b",
"b-joiner-c-joiner-a",
"c-joiner-a-joiner-b",
"a-joiner-b-joiner-c",
"b-joiner-c-joiner-a",
"b-joiner-a-joiner-c",
"c-joiner-a-joiner-b",
"c-joiner-b-joiner-a",
)
ranges = get_tainted_ranges(result)
assert result[ranges[0].start : (ranges[0].start + ranges[0].length)] == "-joiner-"
Expand Down

0 comments on commit 069bf81

Please sign in to comment.