Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions apigatewayv2-http-kinesis-integration/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ response=$(curl -s -X POST "$httpapi.execute-api.localhost.localstack.cloud:4566
# Output the response for debugging purposes
echo "API Response: $response"

# Smoke test to validate the output
if echo "$response" | jq -e '.ShardId and .SequenceNumber and .EncryptionType' > /dev/null; then
echo "Smoke test passed: The response contains 'ShardId', 'SequenceNumber', and 'EncryptionType'."
# Smoke test to validate the output. PutRecord returns EncryptionType only for encrypted streams,
# and this stream is not encrypted, so AWS answers with ShardId and SequenceNumber.
if echo "$response" | jq -e '.ShardId and .SequenceNumber' > /dev/null; then
echo "Smoke test passed: The response contains 'ShardId' and 'SequenceNumber'."
else
echo "Smoke test failed: The response does not contain the expected fields."
exit 1
Expand Down
Loading