Skip to content

Commit 03c528c

Browse files
authored
Merge pull request eclipse-tractusx#1445 from Cofinity-X/fix/TRACEX-670-fix-automated-tests-repair-filter
fix: eclipse-tractusx/sig-release#1327 repair filter in broken cucumber tests
2 parents 1d7fa09 + 24a300b commit 03c528c

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ _**For better traceability add the corresponding GitHub issue number in each cha
4545
- repair unit test pipeline and revert breaking dependency changes eclipse-tractusx/traceability-foss/issues#1439
4646
- change dummy test controller to post requests to resolve CSRF alert eclipse-tractusx/traceability-foss/issues#1439
4747
- repair flaky integration tests eclipse-tractusx/traceability-foss/issues#1439
48+
- fix notification filter for automated tests eclipse-tractusx/sig-release#1327
4849

4950
### Removed
5051
- Remove unused vulnerable dependency commons-fileupload eclipse-tractusx/traceability-foss/issues#1439

tx-cucumber-tests/src/test/java/org/eclipse/tractusx/traceability/test/tooling/rest/RestProvider.java

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,21 +246,28 @@ public void updateNotification(final Long notificationId,
246246
}
247247

248248
public List<NotificationResponse> getReceivedNotifications() {
249-
250249
return given().spec(getRequestSpecification())
251250
.contentType(ContentType.JSON)
252251
.when()
253252
.body("""
254253
{
255-
"pageAble": {
256-
"size": 1000\s
257-
},
258-
"searchCriteria": {
259-
"filter": [
260-
"channel,EQUAL,RECEIVER,AND"
261-
]
254+
"page": 0,
255+
"size": 1000,
256+
"sort": ["created,desc"],
257+
"notificationFilter": {
258+
"channel": {
259+
"value": [
260+
{
261+
"value": "RECEIVER",
262+
"strategy": "OR"
263+
264+
}
265+
],
266+
"operator": "EQUAL"
262267
}
263-
}""")
268+
}
269+
}
270+
""")
264271
.post("/api/notifications/filter")
265272
.then()
266273
.statusCode(HttpStatus.SC_OK)

0 commit comments

Comments
 (0)