amplify-swift/AmplifyPlugins/Analytics/Tests/AnalyticsHostApp/AWSPinpointAnalyticsPluginI...
Sebastian Villena 286776b257
fix(Analytics): Making connectivity errors to be retried indefinitely (#2497)
* fix(Analytics): Fixing issue when dirty/events that exceeded the retry count were not deleted when an error was thrown.
* fix(Analytics): Updating Pinpoint event quotas and exposing them as public constants.
* fix(Analytics): Stopping batch submission if all events in a batch are rejected by Pinpoint.
* chore(Analytics): Updating unit and integration tests.
2022-10-25 16:28:34 -04:00
..
AWSPinpointAnalyticsPluginIntegrationTests.swift fix(Analytics): Making connectivity errors to be retried indefinitely (#2497) 2022-10-25 16:28:34 -04:00
README.md chore(IntegrationTests): Enabling Auth and Analytics integration tests jobs on dev-preview (#2171) 2022-08-19 13:19:59 -04:00
TestConfigHelper.swift chore(IntegrationTests): Enabling Auth and Analytics integration tests jobs on dev-preview (#2171) 2022-08-19 13:19:59 -04:00

README.md

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

? 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`
  1. amplify push

  2. Copy amplifyconfiguration.json as AWSPinpointAnalyticsPluginIntegrationTests-amplifyconfiguration.json inside ~/.aws-amplify/amplify-ios/testconfiguration/

cp amplifyconfiguration.json ~/.aws-amplify/amplify-ios/testconfiguration/AWSPinpointAnalyticsPluginIntegrationTests-amplifyconfiguration.json
  1. You can now run all of the integration tests.

  2. You can run amplify console analytics to check what happens at the backend.