File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
appsec/tests/integration/src/test
groovy/com/datadog/appsec/php/integration Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ trait CommonTests {
181
181
182
182
@Test
183
183
void ' test blocking and stack generation' () {
184
- HttpRequest req = container. buildReq(' /generate_stack.php?id=user2020 ' ). GET (). build()
184
+ HttpRequest req = container. buildReq(' /generate_stack.php?id=stack_user ' ). GET (). build()
185
185
def trace = container. traceFromRequest(req, ofString()) { HttpResponse<String > re ->
186
186
assert re. statusCode() == 403
187
187
assert re. body(). contains(' blocked' )
Original file line number Diff line number Diff line change 44
44
"address" : " usr.id"
45
45
}
46
46
],
47
- "data" : " blocked_users "
47
+ "data" : " blocked_users_with_stack "
48
48
},
49
49
"operator" : " exact_match"
50
50
}
6894
6894
}
6895
6895
]
6896
6896
},
6897
+ {
6898
+ "id" : " blocked_users_with_stack" ,
6899
+ "type" : " data_with_expiration" ,
6900
+ "data" : [
6901
+ {
6902
+ "value" : " stack_user" ,
6903
+ "expiration" : 0
6904
+ }
6905
+ ]
6906
+ },
6907
+
6897
6908
{
6898
6909
"id" : " redirected_users" ,
6899
6910
"type" : " data_with_expiration" ,
You can’t perform that action at this time.
0 commit comments