Skip to content

Commit 5f20105

Browse files
committed
Fix test cases for removed headers & body from attack reporting
1 parent 014cfd3 commit 5f20105

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

aikido_zen/background_process/cloud_connection_manager/on_detected_attack_test.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,8 @@ def test_on_detected_attack_request_data_and_attack_data(
144144
assert request_data["method"] == "GET"
145145
assert request_data["url"] == "http://localhost:8080/hello"
146146
assert request_data["ipAddress"] == "198.51.100.23"
147-
assert request_data["body"] == 123
148-
assert request_data["headers"] == {
149-
"CONTENT_TYPE": ["application/json"],
150-
"USER_AGENT": ["Mozilla/5.0"],
151-
"COOKIE": ["sessionId=abc123xyz456;"],
152-
"HEADER_1": ["header 1 value"],
153-
"HEADER_2": ["Header 2 value"],
154-
"HOST": ["localhost:8080"],
155-
}
147+
assert not "body" in request_data
148+
assert not "headers" in request_data
156149
assert request_data["source"] == "django"
157150
assert request_data["route"] == "/hello"
158151
assert request_data["userAgent"] == "Mozilla/5.0"

0 commit comments

Comments
 (0)