File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export TEST_URL=$(jq -r .CdkStack.GraphQLURL outputs.json)
2323export TEST_API_KEY=$( jq -r .CdkStack.ApiKey outputs.json)
2424
2525log " Accessing URL ${TEST_URL} with api key ${TEST_API_KEY} "
26- curl \
26+ RESULT= $( curl \
2727 --connect-timeout 30 \
2828 --retry 10 \
2929 --retry-delay 6 \
@@ -33,5 +33,10 @@ curl \
3333 -H " Content-Type:application/json" \
3434 $TEST_URL \
3535 -d ' {"query": "query { foo }"}'
36-
36+ )
37+ foo=$( jq .data.foo <<< " $RESULT" )
38+ errors=$( jq .errors <<< " $RESULT" )
39+ if [[ " $errors " != " null" || " $foo " != ' "my-string"' ]]; then
40+ exit 1
41+ fi
3742)
Original file line number Diff line number Diff line change 22
33This package provides an implementation for the ` @aws-appsync/utils ` package that is available on AWS.
44
5+ ## Changelog:
6+
7+ - v0.1.0: first pinned version of the library
8+
59> [ !TIP]
610> To ensure you are using the latest version of this package with LocalStack, start LocalStack with the environment variable
711>
Original file line number Diff line number Diff line change 44 "description" : " Implementation of the AppSync utils helpers" ,
55 "type" : " module" ,
66 "main" : " index.js" ,
7+ "exports" : {
8+ "." : " ./index.js" ,
9+ "./rds" : " ./rds/index.js" ,
10+ "./dynamodb" : " ./dynamodb/index.js"
11+ },
712 "scripts" : {
813 "test:aws" : " NODE_OPTIONS=\" --experimental-vm-modules\" TEST_TARGET=AWS_CLOUD jest -u" ,
914 "test" : " NODE_OPTIONS=\" --experimental-vm-modules\" jest --ci" ,
You can’t perform that action at this time.
0 commit comments