Skip to content

Commit dbc09ab

Browse files
committed
CCM-12744: fix api test
1 parent a458730 commit dbc09ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test-team/template-mgmt-api-tests/update-routing-config.api.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,12 @@ test.describe('PATCH /v1/routing-configuration/:routingConfigId', () => {
410410

411411
const start = new Date();
412412

413-
const updateResponse = await request.put(
413+
const updateResponse = await request.patch(
414414
`${process.env.API_BASE_URL}/v1/routing-configuration/${dbEntry.id}`,
415415
{
416416
headers: {
417417
Authorization: await user1.getAccessToken(),
418+
'X-Lock-Number': String(dbEntry.lockNumber),
418419
},
419420
data: update,
420421
}
@@ -430,6 +431,7 @@ test.describe('PATCH /v1/routing-configuration/:routingConfigId', () => {
430431
...apiResponse,
431432
...update,
432433
updatedAt: expect.stringMatching(isoDateRegExp),
434+
lockNumber: dbEntry.lockNumber + 1,
433435
},
434436
});
435437

0 commit comments

Comments
 (0)