From f248a69abdaa4b757dfe792855a6578b18507e36 Mon Sep 17 00:00:00 2001 From: Tim Schmelter Date: Tue, 28 Jul 2020 08:59:17 -0700 Subject: [PATCH] chore: Fix integration tests instructions and add test schema to support files (#21) --- .gitignore | 11 ++++++- .../README.md | 33 ++++++++----------- .../Support/schema.graphql | 5 +++ CHANGELOG.md | 7 ++++ 4 files changed, 36 insertions(+), 20 deletions(-) create mode 100644 AppSyncRealTimeClientIntegrationTests/Support/schema.graphql diff --git a/.gitignore b/.gitignore index 178749d3..9ca7b6c4 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,13 @@ Scripts/ocunit2junit __pycache__/ *awsconfiguration.json *amplifyconfiguration.json -credentials-mc.json \ No newline at end of file +credentials-mc.json + +amplify +build/ +dist/ +node_modules/ +aws-exports.js +amplify-build-config.json +amplify-gradle-config.json +amplifytools.xcconfig \ No newline at end of file diff --git a/AppSyncRealTimeClientIntegrationTests/README.md b/AppSyncRealTimeClientIntegrationTests/README.md index d9b1e0d7..904ce48c 100644 --- a/AppSyncRealTimeClientIntegrationTests/README.md +++ b/AppSyncRealTimeClientIntegrationTests/README.md @@ -9,26 +9,21 @@ The following steps demonstrate how to set up a GraphQL endpoint with AppSync. T 2. `amplify add api` - -```perl -? Please select from one of the below mentioned services: `GraphQL` -? Provide API name: `` -? Choose the default authorization type for the API `API key` -? Enter a description for the API key: -? After how many days from now the API key should expire (1-365): `365` -? Do you want to configure advanced settings for the GraphQL API `No, I am done` -? Do you have an annotated GraphQL schema? `Yes` -? Provide your schema file path: `schema.graphql` -``` -When asked to provide the schema, create the `schema.graphql` file -``` -type Todo @model { - id: ID! - name: String! - description: String -} -``` + ```perl + ? Please select from one of the below mentioned services: `GraphQL` + ? Provide API name: `` + ? Choose the default authorization type for the API `API key` + ? Enter a description for the API key: + ? After how many days from now the API key should expire (1-365): `365` + ? Do you want to configure advanced settings for the GraphQL API `No, I am done` + ? Do you have an annotated GraphQL schema? `Yes` + ? Provide your schema file path: `Support/schema.graphql` + ``` 3. `amplify push` + ```perl + ? Do you want to generate code for your newly created GraphQL API `No` + ``` + 4. Copy `amplifyconfiguration.json` over to this integration test project. This file is already set up to be copied to the HostApp bundle and loaded when the test is run. diff --git a/AppSyncRealTimeClientIntegrationTests/Support/schema.graphql b/AppSyncRealTimeClientIntegrationTests/Support/schema.graphql new file mode 100644 index 00000000..4ab76d8c --- /dev/null +++ b/AppSyncRealTimeClientIntegrationTests/Support/schema.graphql @@ -0,0 +1,5 @@ +type Todo @model { + id: ID! + name: String! + description: String +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index afe39ac0..8458517c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # AppSync RealTime Client for iOS +## Unreleased + +### Misc + +- Update CocoaPods JSON gem dependency. See [PR #20](https://github.com/aws-amplify/aws-appsync-realtime-client-ios/pull/20) +- Fix integration tests instructions and add test schema to support files. See [PR #21](https://github.com/aws-amplify/aws-appsync-realtime-client-ios/pull/21) + ## 1.2.1 ### Misc