Skip to content

Commit

Permalink
Change AppProtect warning message (#3096)
Browse files Browse the repository at this point in the history
  • Loading branch information
vepatel authored Sep 26, 2022
1 parent badb489 commit 720ee28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/suite/test_app_protect_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,16 @@ def test_ap_multi_sec_logs(
assert_invalid_responses(response)
# check logs in dest. #1 i.e. syslog server #1
assert (
'ASM:attack_type="Non-browser Client,Abuse of Functionality,Cross Site Scripting (XSS)"' in log_contents
'ASM:attack_type="Non-browser Client,Abuse of Functionality,Cross Site Scripting (XSS),Other Application Activity"'
in log_contents
and 'severity="Critical"' in log_contents
and 'request_status="blocked"' in log_contents
and 'outcome="REJECTED"' in log_contents
)
# check logs in dest. #2 i.e. syslog server #2
assert (
'ASM:attack_type="Non-browser Client,Abuse of Functionality,Cross Site Scripting (XSS)"' in log2_contents
'ASM:attack_type="Non-browser Client,Abuse of Functionality,Cross Site Scripting (XSS),Other Application Activity"'
in log2_contents
and 'severity="Critical"' in log2_contents
and 'request_status="blocked"' in log2_contents
and 'outcome="REJECTED"' in log2_contents
Expand Down
5 changes: 4 additions & 1 deletion tests/suite/test_app_protect_waf_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ def test_ap_waf_policy_multi_logs(

assert_invalid_responses(response)

assert f'ASM:attack_type="Non-browser Client,Abuse of Functionality,Cross Site Scripting (XSS)"' in log_contents
assert (
f'ASM:attack_type="Non-browser Client,Abuse of Functionality,Cross Site Scripting (XSS),Other Application Activity"'
in log_contents
)
assert f'severity="Critical"' in log_contents
assert f'request_status="blocked"' in log_contents
assert f'outcome="REJECTED"' in log_contents
Expand Down

0 comments on commit 720ee28

Please sign in to comment.