Skip to content

Commit

Permalink
chore: Fix integration tests instructions and add test schema to supp…
Browse files Browse the repository at this point in the history
…ort files (#21)
  • Loading branch information
palpatim authored Jul 28, 2020
1 parent 1f9167e commit f248a69
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 20 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@ Scripts/ocunit2junit
__pycache__/
*awsconfiguration.json
*amplifyconfiguration.json
credentials-mc.json
credentials-mc.json

amplify
build/
dist/
node_modules/
aws-exports.js
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
33 changes: 14 additions & 19 deletions AppSyncRealTimeClientIntegrationTests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<APIName>`
? 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: `<APIName>`
? 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.
5 changes: 5 additions & 0 deletions AppSyncRealTimeClientIntegrationTests/Support/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type Todo @model {
id: ID!
name: String!
description: String
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f248a69

Please sign in to comment.