Skip to content

Commit 7c4b3c2

Browse files
committed
Fix integration tests
1 parent 1c805a7 commit 7c4b3c2

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

appsec/tests/integration/src/test/groovy/com/datadog/appsec/php/integration/CommonTests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ trait CommonTests {
181181

182182
@Test
183183
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()
185185
def trace = container.traceFromRequest(req, ofString()) { HttpResponse<String> re ->
186186
assert re.statusCode() == 403
187187
assert re.body().contains('blocked')

appsec/tests/integration/src/test/waf/recommended.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"address": "usr.id"
4545
}
4646
],
47-
"data": "blocked_users"
47+
"data": "blocked_users_with_stack"
4848
},
4949
"operator": "exact_match"
5050
}
@@ -6894,6 +6894,17 @@
68946894
}
68956895
]
68966896
},
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+
68976908
{
68986909
"id": "redirected_users",
68996910
"type": "data_with_expiration",

0 commit comments

Comments
 (0)