Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Core): bootstrap Auth configuration before other categories, and…
… fixed analytics integration tests (#475) * Start to debug integration test * configure Auth before all others * bug not fixed yet, need to verify other stuff * fix Integration test target - add Host application * fix README.md description and step 4 * deleted amplifyconfiguration.json fix README.md step 4, and add to ignore configuration file in gitignore * commit * Fixed a typo, set up array of categories to be initialised in Categories.swift * set up array of categoried to be initialized * move var category under var display * fix a typo Co-authored-by: Michael law <1365977+lawmicha@users.noreply.github.com>
- Loading branch information
Showing
11 changed files
with
332 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
AmplifyPlugins/Analytics/AWSPinpointAnalyticsPluginIntegrationTests/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Analytics Integration Tests | ||
|
||
The following steps demonstrate how to set up Analytics. Auth category is also required for signing with AWS Pinpoint service and requesting with IAM credentials to allow unauthenticated and authenticated access. | ||
|
||
### Set-up | ||
|
||
1. `amplify init` | ||
|
||
2. `amplify add analytics` | ||
|
||
```perl | ||
? Select an Analytics provider: Amazon Pinpoint` | ||
? Provide your pinpoint resource name `yourPinpointResourceName` | ||
? Apps need autorization to send analytics events. Do you want to allow guests and unauthenticated users to send analytics events? (we recommend you allow this when getting started) `Yes` | ||
``` | ||
|
||
3. `amplify push` | ||
|
||
[temporary step]: Until Amplify CLI supports adding the auth section into amplifyconfiguation.json, copy `awsconfiguration.json`'s auth section over | ||
4. Copy `amplifyconfiguration.json` over to folder `AWSPinpointAnalyticPluginIntegrationTests` as `AWSPinpointAnalyticsPluginIntegrationTests-amplifyconfiguration.json` | ||
5. You can now run all of the integration tests. | ||
6. You can run `amplify console analytics` to check what happens at the backend. |
Oops, something went wrong.