Skip to content

Commit 66ed93a

Browse files
committed
Passing integration tests
1 parent 2a77057 commit 66ed93a

4 files changed

Lines changed: 16 additions & 30 deletions

File tree

packages/ddb-publisher/src/__integration__/publish-action.integration.test.ts

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,6 @@ const bundlePath = resolve(
2727
const tableName = "supplier-config-it";
2828
const topicName = "supplier-api-eventsub-it";
2929
const queueName = "auppler-api-eventsub-queue-it";
30-
// const expectedRecords = [
31-
// {
32-
// entity: "volume-group",
33-
// id: "vg-1",
34-
// },
35-
// {
36-
// entity: "letter-variant",
37-
// id: "lv-1",
38-
// },
39-
// {
40-
// entity: "pack-specification",
41-
// id: "pack-spec-1",
42-
// },
43-
// {
44-
// entity: "supplier",
45-
// id: "sup-1",
46-
// },
47-
// {
48-
// entity: "supplier-allocation",
49-
// id: "alloc-1",
50-
// },
51-
// {
52-
// entity: "supplier-pack",
53-
// id: "sp-1",
54-
// },
55-
// ] as const;
5630

5731
const expectedRecords = [
5832
{
@@ -67,6 +41,18 @@ const expectedRecords = [
6741
id: "sp-1",
6842
subject: "supplier-pack/sp-1",
6943
},
44+
{
45+
id: "lv-1",
46+
subject: "letter-variant/lv-1",
47+
},
48+
{
49+
id: "pack-spec-1",
50+
subject: "pack-specification/pack-spec-1",
51+
},
52+
{
53+
id: "vg-1",
54+
subject: "volume-group/vg-1",
55+
},
7056
] as const;
7157

7258
let context: LocalTestContext | null = null;
@@ -118,7 +104,7 @@ async function receiveMessages(queueUrl: string) {
118104
new ReceiveMessageCommand({
119105
QueueUrl: queueUrl,
120106
MaxNumberOfMessages: 10,
121-
WaitTimeSeconds: 5,
107+
WaitTimeSeconds: 10,
122108
}),
123109
);
124110
return output.Messages ?? [];

tests/example-config-store/letter-variant/lv-1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"packSpecificationIds": [
55
"pack-spec-1"
66
],
7-
"status": "DRAFT",
7+
"status": "PROD",
88
"supplierId": "sup-1",
99
"type": "STANDARD",
1010
"volumeGroupId": "vg-1"

tests/example-config-store/pack-specification/pack-spec-1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"id": "postage-standard",
1010
"size": "STANDARD"
1111
},
12-
"status": "DRAFT",
12+
"status": "PROD",
1313
"updatedAt": "2026-01-01T00:00:00Z",
1414
"version": 1
1515
}

tests/example-config-store/volume-group/vg-1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"id": "vg-1",
44
"name": "Example Volume Group",
55
"startDate": "2026-01-01",
6-
"status": "DRAFT"
6+
"status": "PROD"
77
}

0 commit comments

Comments
 (0)