Skip to content

Commit ae454cf

Browse files
authored
Fix sqs (#41)
* extra $ * use valid test event * INPUT_JSON --------- Co-authored-by: Dr. Ernie Prabhakar <19791+drernie@users.noreply.github.com>
1 parent dbb6b3a commit ae454cf

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export ENDPOINT_ID=4abcdef123
7676
export ENDPOINT_URL=https://$ENDPOINT_ID.execute-api.$CDK_DEFAULT_REGION.amazonaws.com/$STAGE/event
7777
export ENTRY_ID=etr_XXXXXX
7878

79-
curl -X POST $ENDPOINT_URL -H "Content-Type: application/json" -d @test/entry-created.json
79+
curl -X POST $ENDPOINT_URL -H "Content-Type: application/json" -d @test/entry-updated.json
8080

8181
aws s3 cp s3://$BUCKET_NAME/$PREFIX/$ENTRY_ID/api_payload.json -
8282
open https://$QUILT_CATALOG/b/$BUCKET_NAME/tree/$PREFIX/$ENTRY_ID

app-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ subscriptions:
77
deliveryMethod: WEBHOOK
88
messages:
99
- type: v2-beta.app.configuration.updated
10-
- type: v2-beta.canvas.created
1110
- type: v2.app.activateRequested
1211
- type: v2.app.deactivated
1312
- type: v2.app.installed
13+
- type: v2-beta.canvas.created
1414
- type: v2.canvas.initialized
1515
- type: v2.canvas.userInteracted
1616
- type: v2.entity.registered

lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const EXPORT_STATUS = {
66

77
export const FILES = {
88
ENTRY_JSON: "entry.json",
9-
RO_CRATE_METADATA_JSON: "ro-crate-metadata.json",
9+
INPUT_JSON: "input.json",
1010
README_MD: "README.md",
1111
} as const;
1212

lib/state-machine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class WebhookStateMachine extends Construct {
8989
);
9090
const writeMetadataTask = this.createS3WriteTask(
9191
props.bucket,
92-
FILES.RO_CRATE_METADATA_JSON,
92+
FILES.INPUT_JSON,
9393
"$.message",
9494
);
9595
const sendToSQSTask = this.createSQSTask(props);
@@ -279,7 +279,7 @@ export class WebhookStateMachine extends Construct {
279279
QueueUrl: queueUrl,
280280
MessageBody: {
281281
"source_prefix.$":
282-
"States.Format('s3://${}/{}/',$.var.registry,$.var.packageName)",
282+
"States.Format('s3://{}/{}/',$.var.registry,$.var.packageName)",
283283
"registry.$": "$.var.registry",
284284
"package_name.$": "$.var.packageName",
285285
"metadata_uri": FILES.ENTRY_JSON,

lib/templates/readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ This package contains the data and metadata for a Benchling Notebook entry.
88
## Files
99
1010
- ${FILES.ENTRY_JSON}: Entry data
11-
- ${FILES.RO_CRATE_METADATA_JSON}: Webhook event message
11+
- ${FILES.INPUT_JSON}: Webhook event message
1212
- ${FILES.README_MD}: This README file
1313
`;

0 commit comments

Comments
 (0)