Skip to content

Commit 1364b7a

Browse files
authored
Update Template Test Requirement (#32)
Since #27 didn't include updates to runner.ts, I'm adding hints of what may be ignored. - [#ISS-217157](https://app.devrev.ai/devrev/works/ISS-217157)
1 parent cf610e0 commit 1364b7a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

devrev-snapin-template.plain

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@
7474
- The Conformance Tests should send a single event to the Snap-In Server in the request body without wrapping it in an array.
7575
- It is safe to assume that event payload will never be undefined, null, or empty.
7676

77+
- Do not invoke The Function with:
78+
- "function_name" that doesn't exist.
79+
- Empty event payload.
80+
- "None" event payload.
81+
- Missing "execution_metadata" field.
82+
83+
- More generally, for any unexpected events sent to The Snap-In Server, do not rely on the returned status codes being correct or meaningful.
84+
7785
- If generating The Acceptance Test that references a JSON file (The Attached JSON Of The Acceptance Test) in the resource, you should:
7886
- Store The Attached JSON Of The Acceptance Test in a separate JSON file.
7987
- Make sure to replace placeholders of the credentials (in `event["payload"]["connection_data"]["key"]` and `event["payload"]["connection_data"]["org_id"]`) in The Attached JSON Of The Acceptance Test with the actual values (credentials from The API).

0 commit comments

Comments
 (0)