Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test with local AppSyncRealTimeClient #1624

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ type Nested {

```

3. `amplify push`
3. This was originally written and tested against Transformer V1 so if you are using the latest CLI that has launched Transformer V2, update `cli.json` before running `amplify push`.

4. Copy `amplifyconfiguration.json` over as `GraphQLModelBasedTests-amplifyconfiguration.json` to `~/.aws-amplify/amplify-ios/testconfiguration/`
In `amplify/cli.json`, update `features.graphqltransformer.useexperimentalpipelinedtransformer` to `false` and `features.graphqltransformer.transformerversion` to `1`

4. `amplify push`

5. Copy `amplifyconfiguration.json` over as `GraphQLModelBasedTests-amplifyconfiguration.json` to `~/.aws-amplify/amplify-ios/testconfiguration/`
```
cp amplifyconfiguration.json ~/.aws-amplify/amplify-ios/testconfiguration/GraphQLModelBasedTests-amplifyconfiguration.json
```
2 changes: 1 addition & 1 deletion AmplifyPlugins/API/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include_build_tools!
target 'AWSAPICategoryPlugin' do
pod 'Amplify', :path => '../../'
pod 'AWSPluginsCore', :path => '../../'
pod "AppSyncRealTimeClient", "~> 1.4"
pod "AppSyncRealTimeClient", :path => "~/aws-amplify/aws-appsync-realtime-client-ios/"

target "AWSAPICategoryPluginTests" do
inherit! :complete
Expand Down
17 changes: 9 additions & 8 deletions AmplifyPlugins/API/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PODS:
- AWSPluginsCore (= 1.19.1)
- CwlPreconditionTesting (~> 2.0)
- AppSyncRealTimeClient (1.6.0):
- Starscream (~> 3.1.1)
- Starscream (~> 4.0.4)
- AWSAuthCore (2.27.1):
- AWSCore (= 2.27.1)
- AWSCognitoIdentityProvider (2.27.1):
Expand All @@ -46,23 +46,22 @@ PODS:
- CwlCatchException (~> 2.1.1)
- CwlMachBadInstructionHandler (~> 2.1.0)
- CwlPosixPreconditionTesting (~> 2.1.0)
- Starscream (3.1.1)
- Starscream (4.0.4)
- SwiftFormat/CLI (0.44.17)
- SwiftLint (0.46.2)

DEPENDENCIES:
- Amplify (from `../../`)
- AmplifyPlugins/AWSCognitoAuthPlugin (from `../../`)
- AmplifyTestCommon (from `../../`)
- AppSyncRealTimeClient (~> 1.4)
- AppSyncRealTimeClient (from `~/aws-amplify/aws-appsync-realtime-client-ios/`)
- AWSPluginsCore (from `../../`)
- CwlPreconditionTesting (from `https://github.com/mattgallagher/CwlPreconditionTesting.git`, tag `2.1.0`)
- SwiftFormat/CLI (= 0.44.17)
- SwiftLint

SPEC REPOS:
trunk:
- AppSyncRealTimeClient
- AWSAuthCore
- AWSCognitoIdentityProvider
- AWSCognitoIdentityProviderASF
Expand All @@ -83,6 +82,8 @@ EXTERNAL SOURCES:
:path: "../../"
AmplifyTestCommon:
:path: "../../"
AppSyncRealTimeClient:
:path: "~/aws-amplify/aws-appsync-realtime-client-ios/"
AWSPluginsCore:
:path: "../../"
CwlPreconditionTesting:
Expand All @@ -98,7 +99,7 @@ SPEC CHECKSUMS:
Amplify: cc137692ff768585ec3751825a10b85686a0f004
AmplifyPlugins: fc0cabd7626ca3b5d6ef45dcf4050ef7b9a70120
AmplifyTestCommon: 341bee5d527b4294dc256314221d75f9cc7e40be
AppSyncRealTimeClient: 8b5ec94085b8ee9bb6fb9d9d76a157beb538ec6f
AppSyncRealTimeClient: 3d9bdae7071577992f3476f270449bd4d58c13c5
AWSAuthCore: 9528c60ccdac6df6024fb0af1ed6a43782fd2d3d
AWSCognitoIdentityProvider: 4de7f96340be72c1dca35c0ba835c6b9b69a28c0
AWSCognitoIdentityProviderASF: 727f7c1c80d667a2da79e408c8c8745eac981d58
Expand All @@ -110,10 +111,10 @@ SPEC CHECKSUMS:
CwlMachBadInstructionHandler: aa1fe9f2d08b29507c150d099434b2890247e7f8
CwlPosixPreconditionTesting: 1ba4471964405941f79b3f06bbcf3c2be782950c
CwlPreconditionTesting: 73ae5de517a8761e5e40fb4136c6a26365af0440
Starscream: 4bb2f9942274833f7b4d296a55504dcfc7edb7b0
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
SwiftFormat: 3b5caa6389b2b9adbc00e133b3ccc8c6e687a6a4
SwiftLint: 6bc52a21f0fd44cab9aa2dc8e534fb9f5e3ec507

PODFILE CHECKSUM: 0abaf757d71567dcf70f5a3e79b0149917c3bb38
PODFILE CHECKSUM: b52b77b0497cee7de76a0a085f44f10d9745471d

COCOAPODS: 1.10.1
COCOAPODS: 1.11.2
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,17 @@ type CustomerOrder @model
}

```
3. `amplify push`

4. Copy `amplifyconfiguration.json` to a new file named `AWSDataStoreCategoryPluginIntegrationTests-amplifyconfiguration.json` inside `~/.aws-amplify/amplify-ios/testconfiguration/`
3. This was originally written and tested against Transformer V1 so if you are using the latest CLI that has launched Transformer V2, update `cli.json` before running `amplify push`.
In `amplify/cli.json`, update `features.graphqltransformer.useexperimentalpipelinedtransformer` to `false` and `features.graphqltransformer.transformerversion` to `1`

4. `amplify push`


5. Copy `amplifyconfiguration.json` to a new file named `AWSDataStoreCategoryPluginIntegrationTests-amplifyconfiguration.json` inside `~/.aws-amplify/amplify-ios/testconfiguration/`
```
cp amplifyconfiguration.json ~/.aws-amplify/amplify-ios/testconfiguration/AWSDataStoreCategoryPluginIntegrationTests-amplifyconfiguration.json

```

You should now be able to run all of the tests
3 changes: 2 additions & 1 deletion AmplifyPlugins/DataStore/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ target 'AWSDataStoreCategoryPlugin' do
pod 'Amplify', :path => '../../'
pod 'AWSPluginsCore', :path => '../../'
pod "SQLite.swift", "0.12.2"

pod "AppSyncRealTimeClient", :path => "~/aws-amplify/aws-appsync-realtime-client-ios/"

target "AWSDataStoreCategoryPluginTests" do
inherit! :complete

Expand Down
16 changes: 9 additions & 7 deletions AmplifyPlugins/DataStore/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PODS:
- AWSPluginsCore (= 1.19.1)
- CwlPreconditionTesting (~> 2.0)
- AppSyncRealTimeClient (1.6.0):
- Starscream (~> 3.1.1)
- Starscream (~> 4.0.4)
- AWSAuthCore (2.27.1):
- AWSCore (= 2.27.1)
- AWSCognitoIdentityProvider (2.27.1):
Expand Down Expand Up @@ -53,7 +53,7 @@ PODS:
- SQLite.swift (0.12.2):
- SQLite.swift/standard (= 0.12.2)
- SQLite.swift/standard (0.12.2)
- Starscream (3.1.1)
- Starscream (4.0.4)
- SwiftFormat/CLI (0.44.17)
- SwiftLint (0.46.2)

Expand All @@ -62,6 +62,7 @@ DEPENDENCIES:
- AmplifyPlugins/AWSAPIPlugin (from `../../`)
- AmplifyPlugins/AWSCognitoAuthPlugin (from `../../`)
- AmplifyTestCommon (from `../../`)
- AppSyncRealTimeClient (from `~/aws-amplify/aws-appsync-realtime-client-ios/`)
- AWSMobileClient (~> 2.27.0)
- AWSPluginsCore (from `../../`)
- CwlPreconditionTesting (from `https://github.com/mattgallagher/CwlPreconditionTesting.git`, tag `2.1.0`)
Expand All @@ -71,7 +72,6 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- AppSyncRealTimeClient
- AWSAuthCore
- AWSCognitoIdentityProvider
- AWSCognitoIdentityProviderASF
Expand All @@ -93,6 +93,8 @@ EXTERNAL SOURCES:
:path: "../../"
AmplifyTestCommon:
:path: "../../"
AppSyncRealTimeClient:
:path: "~/aws-amplify/aws-appsync-realtime-client-ios/"
AWSPluginsCore:
:path: "../../"
CwlPreconditionTesting:
Expand All @@ -108,7 +110,7 @@ SPEC CHECKSUMS:
Amplify: cc137692ff768585ec3751825a10b85686a0f004
AmplifyPlugins: fc0cabd7626ca3b5d6ef45dcf4050ef7b9a70120
AmplifyTestCommon: 341bee5d527b4294dc256314221d75f9cc7e40be
AppSyncRealTimeClient: 8b5ec94085b8ee9bb6fb9d9d76a157beb538ec6f
AppSyncRealTimeClient: 3d9bdae7071577992f3476f270449bd4d58c13c5
AWSAuthCore: 9528c60ccdac6df6024fb0af1ed6a43782fd2d3d
AWSCognitoIdentityProvider: 4de7f96340be72c1dca35c0ba835c6b9b69a28c0
AWSCognitoIdentityProviderASF: 727f7c1c80d667a2da79e408c8c8745eac981d58
Expand All @@ -121,10 +123,10 @@ SPEC CHECKSUMS:
CwlPosixPreconditionTesting: 1ba4471964405941f79b3f06bbcf3c2be782950c
CwlPreconditionTesting: 73ae5de517a8761e5e40fb4136c6a26365af0440
SQLite.swift: d2b4642190917051ce6bd1d49aab565fe794eea3
Starscream: 4bb2f9942274833f7b4d296a55504dcfc7edb7b0
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
SwiftFormat: 3b5caa6389b2b9adbc00e133b3ccc8c6e687a6a4
SwiftLint: 6bc52a21f0fd44cab9aa2dc8e534fb9f5e3ec507

PODFILE CHECKSUM: 78ccedd30ee5c56d82712b227290345e458bf378
PODFILE CHECKSUM: b9153dce650220352e07a22119575c4cda8123f8

COCOAPODS: 1.10.1
COCOAPODS: 1.11.2