From 427311f0b7383732c6296d951aa74fb720fed5a1 Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Sat, 16 Oct 2021 18:40:38 -0400 Subject: [PATCH] test: split up flaky test suite --- .circleci/config.yml | 1497 +++++++++++------ .../migration/api.key.migration2.test.ts | 118 +- .../migration/api.key.migration3.test.ts | 57 + .../migration/api.key.migration4.test.ts | 48 + .../migration/api.key.migration5.test.ts | 59 + 5 files changed, 1105 insertions(+), 674 deletions(-) create mode 100644 packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration3.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration4.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration5.test.ts diff --git a/.circleci/config.yml b/.circleci/config.yml index 6e20d1898e8..ee3d4e58e74 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2141,6 +2141,110 @@ jobs: AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/api.connection.migration2.test.ts CLI_REGION: eu-west-2 + migration-api-key-migration4-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + TEST_SUITE: src/__tests__/migration/api.key.migration4.test.ts + CLI_REGION: eu-central-1 + migration-api-key-migration5-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + TEST_SUITE: src/__tests__/migration/api.key.migration5.test.ts + CLI_REGION: ap-northeast-1 migration-node-function-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2192,7 +2296,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/node.function.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 pull-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2244,7 +2348,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/pull.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 resolvers-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2296,7 +2400,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/resolvers.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 s3-sse-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2348,7 +2452,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/s3-sse.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-12-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2400,7 +2504,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-12.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-auth-13-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2452,7 +2556,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-13.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-function-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2504,7 +2608,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-function-1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-function-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2556,7 +2660,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-function-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-iterative-update-locking-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2608,7 +2712,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 storage-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2660,7 +2764,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/storage-1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 storage-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2712,7 +2816,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/storage-2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 storage-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2764,7 +2868,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/storage-3.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 plugin-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2816,7 +2920,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/plugin.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 init-special-case-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2868,7 +2972,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/init-special-case.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 datastore-modelgen-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2920,7 +3024,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/datastore-modelgen.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 amplify-configure-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2972,7 +3076,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/amplify-configure.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 init-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3024,7 +3128,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/init.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 tags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3076,7 +3180,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/tags.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 notifications-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3128,7 +3232,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/notifications.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-versioned-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3180,7 +3284,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-versioned.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-data-access-patterns-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3232,7 +3336,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 interactions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3336,7 +3440,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-predictions.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 amplify-app-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3388,7 +3492,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/amplify-app.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 hosting-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3440,7 +3544,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/hosting.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 analytics-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3492,7 +3596,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/analytics.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 feature-flags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3544,7 +3648,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/feature-flags.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-iterative-update-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3596,7 +3700,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 containers-api-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3648,7 +3752,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/containers-api.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 predictions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3700,7 +3804,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/predictions.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 hostingPROD-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3752,7 +3856,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/hostingPROD.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 geo-add-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3804,7 +3908,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 geo-update-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3856,7 +3960,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 geo-remove-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3908,7 +4012,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-auth-10-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3960,7 +4064,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-10.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-key-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4012,7 +4116,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-key.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4064,7 +4168,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 auth_5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4116,7 +4220,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_5.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 function_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4168,7 +4272,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_3.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-iterative-update-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4220,7 +4324,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-auth-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4272,7 +4376,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-3.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 delete-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4324,7 +4428,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/delete.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 function_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4376,7 +4480,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/function_2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4428,7 +4532,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_3.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 migration-api-key-migration1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4480,7 +4584,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 auth_4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4532,7 +4636,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_4.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-7-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4584,7 +4688,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-7.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-auth-8-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4636,7 +4740,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-8.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-searchable-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4688,7 +4792,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-searchable.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-auth-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4740,7 +4844,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-4.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 api_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4792,7 +4896,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_3.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 import_auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4844,7 +4948,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_auth_1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 import_auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4896,7 +5000,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_auth_2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 import_s3_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4948,7 +5052,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_s3_1.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo @@ -5001,7 +5105,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 USE_PARENT_ACCOUNT: 1 schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo @@ -5054,7 +5158,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-iterative-rollback-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5106,7 +5210,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 env-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5158,7 +5262,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/env.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5210,7 +5314,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/auth_2.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 schema-auth-9-amplify_e2e_tests: working_directory: ~/repo @@ -5263,7 +5367,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-9.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-11-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5315,7 +5419,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-11.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 migration-api-key-migration2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5367,9 +5471,9 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 USE_PARENT_ACCOUNT: 1 - function_1-amplify_e2e_tests: + migration-api-key-migration3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5419,9 +5523,9 @@ jobs: environment: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - TEST_SUITE: src/__tests__/function_1.test.ts - CLI_REGION: eu-west-2 - schema-auth-1-amplify_e2e_tests: + TEST_SUITE: src/__tests__/migration/api.key.migration3.test.ts + CLI_REGION: ap-northeast-1 + function_1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5471,9 +5575,9 @@ jobs: environment: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - TEST_SUITE: src/__tests__/schema-auth-1.test.ts - CLI_REGION: eu-central-1 - function_4-amplify_e2e_tests: + TEST_SUITE: src/__tests__/function_1.test.ts + CLI_REGION: ap-southeast-1 + schema-auth-1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5523,9 +5627,9 @@ jobs: environment: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - TEST_SUITE: src/__tests__/function_4.test.ts - CLI_REGION: ap-northeast-1 - schema-model-amplify_e2e_tests: + TEST_SUITE: src/__tests__/schema-auth-1.test.ts + CLI_REGION: ap-southeast-2 + function_4-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5575,9 +5679,9 @@ jobs: environment: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - TEST_SUITE: src/__tests__/schema-model.test.ts - CLI_REGION: ap-southeast-1 - migration-api-connection-migration-amplify_e2e_tests: + TEST_SUITE: src/__tests__/function_4.test.ts + CLI_REGION: us-east-2 + schema-model-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5627,9 +5731,9 @@ jobs: environment: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts - CLI_REGION: ap-southeast-2 - schema-connection-amplify_e2e_tests: + TEST_SUITE: src/__tests__/schema-model.test.ts + CLI_REGION: us-west-2 + migration-api-connection-migration-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5679,10 +5783,62 @@ jobs: environment: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - TEST_SUITE: src/__tests__/schema-connection.test.ts - CLI_REGION: us-east-2 - schema-auth-6-amplify_e2e_tests: - working_directory: ~/repo + TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + CLI_REGION: eu-west-2 + schema-connection-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + TEST_SUITE: src/__tests__/schema-connection.test.ts + CLI_REGION: eu-central-1 + schema-auth-6-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor @@ -5732,7 +5888,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-6.test.ts - CLI_REGION: us-west-2 + CLI_REGION: ap-northeast-1 schema-iterative-update-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5784,7 +5940,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-southeast-1 schema-auth-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5836,7 +5992,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-2 api_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5888,7 +6044,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 schema-auth-5-amplify_e2e_tests: working_directory: ~/repo @@ -5941,7 +6097,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-auth-5.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-west-2 api_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5993,7 +6149,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 api_5-amplify_e2e_tests: working_directory: ~/repo @@ -6046,7 +6202,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/api_5.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-central-1 schema-iterative-update-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -6098,7 +6254,7 @@ jobs: AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts - CLI_REGION: us-west-2 + CLI_REGION: ap-northeast-1 api_4-amplify_e2e_tests_pkg: parameters: os: @@ -6939,6 +7095,76 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.connection.migration2.test.ts CLI_REGION: eu-west-2 + migration-api-key-migration4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/migration/api.key.migration4.test.ts + CLI_REGION: eu-central-1 + migration-api-key-migration5-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/migration/api.key.migration5.test.ts + CLI_REGION: ap-northeast-1 migration-node-function-amplify_e2e_tests_pkg: parameters: os: @@ -6973,7 +7199,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/node.function.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 pull-amplify_e2e_tests_pkg: parameters: os: @@ -7008,7 +7234,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/pull.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 resolvers-amplify_e2e_tests_pkg: parameters: os: @@ -7043,7 +7269,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/resolvers.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 s3-sse-amplify_e2e_tests_pkg: parameters: os: @@ -7078,7 +7304,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/s3-sse.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-12-amplify_e2e_tests_pkg: parameters: os: @@ -7113,7 +7339,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-12.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-auth-13-amplify_e2e_tests_pkg: parameters: os: @@ -7148,7 +7374,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-13.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-function-1-amplify_e2e_tests_pkg: parameters: os: @@ -7183,7 +7409,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-function-1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-function-2-amplify_e2e_tests_pkg: parameters: os: @@ -7218,7 +7444,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-function-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 schema-iterative-update-locking-amplify_e2e_tests_pkg: parameters: os: @@ -7253,7 +7479,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 storage-1-amplify_e2e_tests_pkg: parameters: os: @@ -7288,7 +7514,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/storage-1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 storage-2-amplify_e2e_tests_pkg: parameters: os: @@ -7323,7 +7549,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/storage-2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 storage-3-amplify_e2e_tests_pkg: parameters: os: @@ -7358,7 +7584,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/storage-3.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 plugin-amplify_e2e_tests_pkg: parameters: os: @@ -7393,7 +7619,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/plugin.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 init-special-case-amplify_e2e_tests_pkg: parameters: os: @@ -7428,7 +7654,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/init-special-case.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 datastore-modelgen-amplify_e2e_tests_pkg: parameters: os: @@ -7463,7 +7689,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/datastore-modelgen.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 amplify-configure-amplify_e2e_tests_pkg: parameters: os: @@ -7498,7 +7724,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/amplify-configure.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 init-amplify_e2e_tests_pkg: parameters: os: @@ -7533,7 +7759,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/init.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 tags-amplify_e2e_tests_pkg: parameters: os: @@ -7568,7 +7794,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/tags.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 notifications-amplify_e2e_tests_pkg: parameters: os: @@ -7603,7 +7829,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/notifications.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-versioned-amplify_e2e_tests_pkg: parameters: os: @@ -7638,7 +7864,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-versioned.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-data-access-patterns-amplify_e2e_tests_pkg: parameters: os: @@ -7673,7 +7899,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 interactions-amplify_e2e_tests_pkg: parameters: os: @@ -7743,7 +7969,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-predictions.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 amplify-app-amplify_e2e_tests_pkg: parameters: os: @@ -7778,7 +8004,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/amplify-app.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 hosting-amplify_e2e_tests_pkg: parameters: os: @@ -7813,7 +8039,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/hosting.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 analytics-amplify_e2e_tests_pkg: parameters: os: @@ -7848,7 +8074,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/analytics.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 feature-flags-amplify_e2e_tests_pkg: parameters: os: @@ -7883,7 +8109,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/feature-flags.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-iterative-update-2-amplify_e2e_tests_pkg: parameters: os: @@ -7918,7 +8144,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 containers-api-amplify_e2e_tests_pkg: parameters: os: @@ -7953,7 +8179,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/containers-api.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 predictions-amplify_e2e_tests_pkg: parameters: os: @@ -7988,7 +8214,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/predictions.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 hostingPROD-amplify_e2e_tests_pkg: parameters: os: @@ -8023,7 +8249,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/hostingPROD.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 geo-add-amplify_e2e_tests_pkg: parameters: os: @@ -8058,7 +8284,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 geo-update-amplify_e2e_tests_pkg: parameters: os: @@ -8093,7 +8319,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 geo-remove-amplify_e2e_tests_pkg: parameters: os: @@ -8128,7 +8354,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-auth-10-amplify_e2e_tests_pkg: parameters: os: @@ -8163,7 +8389,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-10.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-key-amplify_e2e_tests_pkg: parameters: os: @@ -8198,7 +8424,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-key.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 auth_1-amplify_e2e_tests_pkg: parameters: os: @@ -8233,7 +8459,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 auth_5-amplify_e2e_tests_pkg: parameters: os: @@ -8268,7 +8494,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_5.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 function_3-amplify_e2e_tests_pkg: parameters: os: @@ -8303,7 +8529,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_3.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-iterative-update-1-amplify_e2e_tests_pkg: parameters: os: @@ -8338,7 +8564,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-auth-3-amplify_e2e_tests_pkg: parameters: os: @@ -8373,7 +8599,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-3.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 delete-amplify_e2e_tests_pkg: parameters: os: @@ -8408,7 +8634,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/delete.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 function_2-amplify_e2e_tests_pkg: parameters: os: @@ -8443,7 +8669,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 auth_3-amplify_e2e_tests_pkg: parameters: os: @@ -8478,7 +8704,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_3.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 migration-api-key-migration1-amplify_e2e_tests_pkg: parameters: os: @@ -8513,7 +8739,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 auth_4-amplify_e2e_tests_pkg: parameters: os: @@ -8548,7 +8774,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_4.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-7-amplify_e2e_tests_pkg: parameters: os: @@ -8583,7 +8809,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-7.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 schema-auth-8-amplify_e2e_tests_pkg: parameters: os: @@ -8618,7 +8844,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-8.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 schema-searchable-amplify_e2e_tests_pkg: parameters: os: @@ -8653,7 +8879,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-searchable.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-auth-4-amplify_e2e_tests_pkg: parameters: os: @@ -8688,7 +8914,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-4.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 api_3-amplify_e2e_tests_pkg: parameters: os: @@ -8723,7 +8949,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_3.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 import_auth_1-amplify_e2e_tests_pkg: parameters: os: @@ -8758,7 +8984,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_auth_1.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 import_auth_2-amplify_e2e_tests_pkg: parameters: os: @@ -8793,7 +9019,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_auth_2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 import_s3_1-amplify_e2e_tests_pkg: parameters: os: @@ -8828,7 +9054,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_s3_1.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 import_dynamodb_1-amplify_e2e_tests_pkg: parameters: @@ -8864,7 +9090,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 USE_PARENT_ACCOUNT: 1 schema-iterative-rollback-1-amplify_e2e_tests_pkg: parameters: @@ -8900,7 +9126,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-northeast-1 schema-iterative-rollback-2-amplify_e2e_tests_pkg: parameters: os: @@ -8935,7 +9161,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-1 env-amplify_e2e_tests_pkg: parameters: os: @@ -8970,7 +9196,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/env.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: ap-southeast-2 auth_2-amplify_e2e_tests_pkg: parameters: os: @@ -9005,7 +9231,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/auth_2.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 schema-auth-9-amplify_e2e_tests_pkg: parameters: @@ -9041,7 +9267,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-9.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: us-west-2 schema-auth-11-amplify_e2e_tests_pkg: parameters: os: @@ -9076,7 +9302,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-11.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-west-2 migration-api-key-migration2-amplify_e2e_tests_pkg: parameters: os: @@ -9111,8 +9337,43 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts - CLI_REGION: us-west-2 + CLI_REGION: eu-central-1 USE_PARENT_ACCOUNT: 1 + migration-api-key-migration3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/migration/api.key.migration3.test.ts + CLI_REGION: ap-northeast-1 function_1-amplify_e2e_tests_pkg: parameters: os: @@ -9147,7 +9408,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_1.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-southeast-1 schema-auth-1-amplify_e2e_tests_pkg: parameters: os: @@ -9182,7 +9443,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-1.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-2 function_4-amplify_e2e_tests_pkg: parameters: os: @@ -9217,7 +9478,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/function_4.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: us-east-2 schema-model-amplify_e2e_tests_pkg: parameters: os: @@ -9252,7 +9513,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-model.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-west-2 migration-api-connection-migration-amplify_e2e_tests_pkg: parameters: os: @@ -9287,7 +9548,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: eu-west-2 schema-connection-amplify_e2e_tests_pkg: parameters: os: @@ -9322,7 +9583,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-connection.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-central-1 schema-auth-6-amplify_e2e_tests_pkg: parameters: os: @@ -9357,7 +9618,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-6.test.ts - CLI_REGION: us-west-2 + CLI_REGION: ap-northeast-1 schema-iterative-update-3-amplify_e2e_tests_pkg: parameters: os: @@ -9392,7 +9653,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts - CLI_REGION: eu-west-2 + CLI_REGION: ap-southeast-1 schema-auth-2-amplify_e2e_tests_pkg: parameters: os: @@ -9427,7 +9688,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-2.test.ts - CLI_REGION: eu-central-1 + CLI_REGION: ap-southeast-2 api_1-amplify_e2e_tests_pkg: parameters: os: @@ -9462,7 +9723,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_1.test.ts - CLI_REGION: ap-northeast-1 + CLI_REGION: us-east-2 USE_PARENT_ACCOUNT: 1 schema-auth-5-amplify_e2e_tests_pkg: parameters: @@ -9498,7 +9759,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-auth-5.test.ts - CLI_REGION: ap-southeast-1 + CLI_REGION: us-west-2 api_2-amplify_e2e_tests_pkg: parameters: os: @@ -9533,7 +9794,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_2.test.ts - CLI_REGION: ap-southeast-2 + CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 api_5-amplify_e2e_tests_pkg: parameters: @@ -9569,7 +9830,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/api_5.test.ts - CLI_REGION: us-east-2 + CLI_REGION: eu-central-1 schema-iterative-update-4-amplify_e2e_tests_pkg: parameters: os: @@ -9604,7 +9865,7 @@ jobs: path: packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts - CLI_REGION: us-west-2 + CLI_REGION: ap-northeast-1 AuthV2Transformer-e2e-graphql_e2e_tests: working_directory: ~/repo parameters: @@ -11683,6 +11944,37 @@ workflows: - custom_policies_function-amplify_e2e_tests - hooks-amplify_e2e_tests - layer-3-amplify_e2e_tests + - resolvers-amplify_e2e_tests + - storage-1-amplify_e2e_tests + - init-amplify_e2e_tests + - amplify-app-amplify_e2e_tests + - hostingPROD-amplify_e2e_tests + - auth_5-amplify_e2e_tests + - migration-api-key-migration1-amplify_e2e_tests + - import_auth_1-amplify_e2e_tests + - auth_2-amplify_e2e_tests + - function_4-amplify_e2e_tests + - api_1-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - layer-4-amplify_e2e_tests + - s3-sse-amplify_e2e_tests + - storage-2-amplify_e2e_tests + - tags-amplify_e2e_tests + - interactions-amplify_e2e_tests + - hosting-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - function_3-amplify_e2e_tests + - auth_4-amplify_e2e_tests + - import_auth_2-amplify_e2e_tests + - schema-auth-9-amplify_e2e_tests + - schema-model-amplify_e2e_tests + - schema-auth-5-amplify_e2e_tests + - auth_7-amplify_e2e_tests + - function_5-amplify_e2e_tests + - import_auth_3-amplify_e2e_tests + - migration-api-connection-migration2-amplify_e2e_tests - schema-auth-12-amplify_e2e_tests - storage-3-amplify_e2e_tests - notifications-amplify_e2e_tests @@ -11692,28 +11984,27 @@ workflows: - schema-auth-7-amplify_e2e_tests - import_s3_1-amplify_e2e_tests - schema-auth-11-amplify_e2e_tests - - schema-connection-amplify_e2e_tests - - api_5-amplify_e2e_tests - - auth_6-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests - - layer-4-amplify_e2e_tests + - migration-api-connection-migration-amplify_e2e_tests + - api_2-amplify_e2e_tests + - auth_8-amplify_e2e_tests + - function_6-amplify_e2e_tests + - import_dynamodb_2-amplify_e2e_tests + - migration-api-key-migration4-amplify_e2e_tests - schema-auth-13-amplify_e2e_tests - plugin-amplify_e2e_tests - schema-versioned-amplify_e2e_tests - - interactions-amplify_e2e_tests - feature-flags-amplify_e2e_tests - geo-remove-amplify_e2e_tests - schema-auth-3-amplify_e2e_tests - schema-auth-8-amplify_e2e_tests - import_dynamodb_1-amplify_e2e_tests - migration-api-key-migration2-amplify_e2e_tests - - schema-auth-6-amplify_e2e_tests - - schema-iterative-update-4-amplify_e2e_tests - - auth_7-amplify_e2e_tests - - function_5-amplify_e2e_tests - - import_auth_3-amplify_e2e_tests - - migration-api-connection-migration2-amplify_e2e_tests + - schema-connection-amplify_e2e_tests + - api_5-amplify_e2e_tests + - configure-project-amplify_e2e_tests + - function_7-amplify_e2e_tests + - import_s3_2-amplify_e2e_tests + - migration-api-key-migration5-amplify_e2e_tests - schema-function-1-amplify_e2e_tests - init-special-case-amplify_e2e_tests - schema-data-access-patterns-amplify_e2e_tests @@ -11722,11 +12013,12 @@ workflows: - delete-amplify_e2e_tests - schema-searchable-amplify_e2e_tests - schema-iterative-rollback-1-amplify_e2e_tests - - function_1-amplify_e2e_tests - - schema-iterative-update-3-amplify_e2e_tests - - auth_8-amplify_e2e_tests - - function_6-amplify_e2e_tests - - import_dynamodb_2-amplify_e2e_tests + - migration-api-key-migration3-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - container-hosting-amplify_e2e_tests + - function_8-amplify_e2e_tests + - layer-1-amplify_e2e_tests - migration-node-function-amplify_e2e_tests - schema-function-2-amplify_e2e_tests - datastore-modelgen-amplify_e2e_tests @@ -11735,11 +12027,11 @@ workflows: - function_2-amplify_e2e_tests - schema-auth-4-amplify_e2e_tests - schema-iterative-rollback-2-amplify_e2e_tests - - schema-auth-1-amplify_e2e_tests - - schema-auth-2-amplify_e2e_tests - - configure-project-amplify_e2e_tests - - function_7-amplify_e2e_tests - - import_s3_2-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests + - custom_policies_container-amplify_e2e_tests + - function_9-amplify_e2e_tests + - layer-2-amplify_e2e_tests - pull-amplify_e2e_tests - schema-iterative-update-locking-amplify_e2e_tests - amplify-configure-amplify_e2e_tests @@ -11749,40 +12041,43 @@ workflows: - auth_3-amplify_e2e_tests - api_3-amplify_e2e_tests - env-amplify_e2e_tests - - function_4-amplify_e2e_tests - - api_1-amplify_e2e_tests - - container-hosting-amplify_e2e_tests - - function_8-amplify_e2e_tests - - layer-1-amplify_e2e_tests - - resolvers-amplify_e2e_tests - - storage-1-amplify_e2e_tests - - init-amplify_e2e_tests - - amplify-app-amplify_e2e_tests - - hostingPROD-amplify_e2e_tests - - auth_5-amplify_e2e_tests - - migration-api-key-migration1-amplify_e2e_tests - - import_auth_1-amplify_e2e_tests - - auth_2-amplify_e2e_tests - - schema-model-amplify_e2e_tests - - schema-auth-5-amplify_e2e_tests - - custom_policies_container-amplify_e2e_tests - - function_9-amplify_e2e_tests - - layer-2-amplify_e2e_tests - - s3-sse-amplify_e2e_tests - - storage-2-amplify_e2e_tests - - tags-amplify_e2e_tests - - hosting-amplify_e2e_tests - - geo-add-amplify_e2e_tests - - function_3-amplify_e2e_tests - - auth_4-amplify_e2e_tests - - import_auth_2-amplify_e2e_tests - - schema-auth-9-amplify_e2e_tests - - migration-api-connection-migration-amplify_e2e_tests - - api_2-amplify_e2e_tests + - schema-auth-1-amplify_e2e_tests + - schema-auth-2-amplify_e2e_tests - api_4-amplify_e2e_tests_pkg - custom_policies_function-amplify_e2e_tests_pkg - hooks-amplify_e2e_tests_pkg - layer-3-amplify_e2e_tests_pkg + - resolvers-amplify_e2e_tests_pkg + - storage-1-amplify_e2e_tests_pkg + - init-amplify_e2e_tests_pkg + - amplify-app-amplify_e2e_tests_pkg + - hostingPROD-amplify_e2e_tests_pkg + - auth_5-amplify_e2e_tests_pkg + - migration-api-key-migration1-amplify_e2e_tests_pkg + - import_auth_1-amplify_e2e_tests_pkg + - auth_2-amplify_e2e_tests_pkg + - function_4-amplify_e2e_tests_pkg + - api_1-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - layer-4-amplify_e2e_tests_pkg + - s3-sse-amplify_e2e_tests_pkg + - storage-2-amplify_e2e_tests_pkg + - tags-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - hosting-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - function_3-amplify_e2e_tests_pkg + - auth_4-amplify_e2e_tests_pkg + - import_auth_2-amplify_e2e_tests_pkg + - schema-auth-9-amplify_e2e_tests_pkg + - schema-model-amplify_e2e_tests_pkg + - schema-auth-5-amplify_e2e_tests_pkg + - auth_7-amplify_e2e_tests_pkg + - function_5-amplify_e2e_tests_pkg + - import_auth_3-amplify_e2e_tests_pkg + - migration-api-connection-migration2-amplify_e2e_tests_pkg - schema-auth-12-amplify_e2e_tests_pkg - storage-3-amplify_e2e_tests_pkg - notifications-amplify_e2e_tests_pkg @@ -11792,28 +12087,27 @@ workflows: - schema-auth-7-amplify_e2e_tests_pkg - import_s3_1-amplify_e2e_tests_pkg - schema-auth-11-amplify_e2e_tests_pkg - - schema-connection-amplify_e2e_tests_pkg - - api_5-amplify_e2e_tests_pkg - - auth_6-amplify_e2e_tests_pkg - - frontend_config_drift-amplify_e2e_tests_pkg - - iam-permissions-boundary-amplify_e2e_tests_pkg - - layer-4-amplify_e2e_tests_pkg + - migration-api-connection-migration-amplify_e2e_tests_pkg + - api_2-amplify_e2e_tests_pkg + - auth_8-amplify_e2e_tests_pkg + - function_6-amplify_e2e_tests_pkg + - import_dynamodb_2-amplify_e2e_tests_pkg + - migration-api-key-migration4-amplify_e2e_tests_pkg - schema-auth-13-amplify_e2e_tests_pkg - plugin-amplify_e2e_tests_pkg - schema-versioned-amplify_e2e_tests_pkg - - interactions-amplify_e2e_tests_pkg - feature-flags-amplify_e2e_tests_pkg - geo-remove-amplify_e2e_tests_pkg - schema-auth-3-amplify_e2e_tests_pkg - schema-auth-8-amplify_e2e_tests_pkg - import_dynamodb_1-amplify_e2e_tests_pkg - migration-api-key-migration2-amplify_e2e_tests_pkg - - schema-auth-6-amplify_e2e_tests_pkg - - schema-iterative-update-4-amplify_e2e_tests_pkg - - auth_7-amplify_e2e_tests_pkg - - function_5-amplify_e2e_tests_pkg - - import_auth_3-amplify_e2e_tests_pkg - - migration-api-connection-migration2-amplify_e2e_tests_pkg + - schema-connection-amplify_e2e_tests_pkg + - api_5-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg + - function_7-amplify_e2e_tests_pkg + - import_s3_2-amplify_e2e_tests_pkg + - migration-api-key-migration5-amplify_e2e_tests_pkg - schema-function-1-amplify_e2e_tests_pkg - init-special-case-amplify_e2e_tests_pkg - schema-data-access-patterns-amplify_e2e_tests_pkg @@ -11822,11 +12116,12 @@ workflows: - delete-amplify_e2e_tests_pkg - schema-searchable-amplify_e2e_tests_pkg - schema-iterative-rollback-1-amplify_e2e_tests_pkg - - function_1-amplify_e2e_tests_pkg - - schema-iterative-update-3-amplify_e2e_tests_pkg - - auth_8-amplify_e2e_tests_pkg - - function_6-amplify_e2e_tests_pkg - - import_dynamodb_2-amplify_e2e_tests_pkg + - migration-api-key-migration3-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg + - function_8-amplify_e2e_tests_pkg + - layer-1-amplify_e2e_tests_pkg - migration-node-function-amplify_e2e_tests_pkg - schema-function-2-amplify_e2e_tests_pkg - datastore-modelgen-amplify_e2e_tests_pkg @@ -11835,11 +12130,11 @@ workflows: - function_2-amplify_e2e_tests_pkg - schema-auth-4-amplify_e2e_tests_pkg - schema-iterative-rollback-2-amplify_e2e_tests_pkg - - schema-auth-1-amplify_e2e_tests_pkg - - schema-auth-2-amplify_e2e_tests_pkg - - configure-project-amplify_e2e_tests_pkg - - function_7-amplify_e2e_tests_pkg - - import_s3_2-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg + - custom_policies_container-amplify_e2e_tests_pkg + - function_9-amplify_e2e_tests_pkg + - layer-2-amplify_e2e_tests_pkg - pull-amplify_e2e_tests_pkg - schema-iterative-update-locking-amplify_e2e_tests_pkg - amplify-configure-amplify_e2e_tests_pkg @@ -11849,36 +12144,8 @@ workflows: - auth_3-amplify_e2e_tests_pkg - api_3-amplify_e2e_tests_pkg - env-amplify_e2e_tests_pkg - - function_4-amplify_e2e_tests_pkg - - api_1-amplify_e2e_tests_pkg - - container-hosting-amplify_e2e_tests_pkg - - function_8-amplify_e2e_tests_pkg - - layer-1-amplify_e2e_tests_pkg - - resolvers-amplify_e2e_tests_pkg - - storage-1-amplify_e2e_tests_pkg - - init-amplify_e2e_tests_pkg - - amplify-app-amplify_e2e_tests_pkg - - hostingPROD-amplify_e2e_tests_pkg - - auth_5-amplify_e2e_tests_pkg - - migration-api-key-migration1-amplify_e2e_tests_pkg - - import_auth_1-amplify_e2e_tests_pkg - - auth_2-amplify_e2e_tests_pkg - - schema-model-amplify_e2e_tests_pkg - - schema-auth-5-amplify_e2e_tests_pkg - - custom_policies_container-amplify_e2e_tests_pkg - - function_9-amplify_e2e_tests_pkg - - layer-2-amplify_e2e_tests_pkg - - s3-sse-amplify_e2e_tests_pkg - - storage-2-amplify_e2e_tests_pkg - - tags-amplify_e2e_tests_pkg - - hosting-amplify_e2e_tests_pkg - - geo-add-amplify_e2e_tests_pkg - - function_3-amplify_e2e_tests_pkg - - auth_4-amplify_e2e_tests_pkg - - import_auth_2-amplify_e2e_tests_pkg - - schema-auth-9-amplify_e2e_tests_pkg - - migration-api-connection-migration-amplify_e2e_tests_pkg - - api_2-amplify_e2e_tests_pkg + - schema-auth-1-amplify_e2e_tests_pkg + - schema-auth-2-amplify_e2e_tests_pkg - >- migration_tests-auth-deployment-migration-auth-deployment-secrets-amplify_migration_tests_v4 - update_tests-function_migration_update-amplify_migration_tests_v4 @@ -11927,6 +12194,37 @@ workflows: - custom_policies_function-amplify_e2e_tests - hooks-amplify_e2e_tests - layer-3-amplify_e2e_tests + - resolvers-amplify_e2e_tests + - storage-1-amplify_e2e_tests + - init-amplify_e2e_tests + - amplify-app-amplify_e2e_tests + - hostingPROD-amplify_e2e_tests + - auth_5-amplify_e2e_tests + - migration-api-key-migration1-amplify_e2e_tests + - import_auth_1-amplify_e2e_tests + - auth_2-amplify_e2e_tests + - function_4-amplify_e2e_tests + - api_1-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - layer-4-amplify_e2e_tests + - s3-sse-amplify_e2e_tests + - storage-2-amplify_e2e_tests + - tags-amplify_e2e_tests + - interactions-amplify_e2e_tests + - hosting-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - function_3-amplify_e2e_tests + - auth_4-amplify_e2e_tests + - import_auth_2-amplify_e2e_tests + - schema-auth-9-amplify_e2e_tests + - schema-model-amplify_e2e_tests + - schema-auth-5-amplify_e2e_tests + - auth_7-amplify_e2e_tests + - function_5-amplify_e2e_tests + - import_auth_3-amplify_e2e_tests + - migration-api-connection-migration2-amplify_e2e_tests - schema-auth-12-amplify_e2e_tests - storage-3-amplify_e2e_tests - notifications-amplify_e2e_tests @@ -11936,28 +12234,27 @@ workflows: - schema-auth-7-amplify_e2e_tests - import_s3_1-amplify_e2e_tests - schema-auth-11-amplify_e2e_tests - - schema-connection-amplify_e2e_tests - - api_5-amplify_e2e_tests - - auth_6-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests - - layer-4-amplify_e2e_tests + - migration-api-connection-migration-amplify_e2e_tests + - api_2-amplify_e2e_tests + - auth_8-amplify_e2e_tests + - function_6-amplify_e2e_tests + - import_dynamodb_2-amplify_e2e_tests + - migration-api-key-migration4-amplify_e2e_tests - schema-auth-13-amplify_e2e_tests - plugin-amplify_e2e_tests - schema-versioned-amplify_e2e_tests - - interactions-amplify_e2e_tests - feature-flags-amplify_e2e_tests - geo-remove-amplify_e2e_tests - schema-auth-3-amplify_e2e_tests - schema-auth-8-amplify_e2e_tests - import_dynamodb_1-amplify_e2e_tests - migration-api-key-migration2-amplify_e2e_tests - - schema-auth-6-amplify_e2e_tests - - schema-iterative-update-4-amplify_e2e_tests - - auth_7-amplify_e2e_tests - - function_5-amplify_e2e_tests - - import_auth_3-amplify_e2e_tests - - migration-api-connection-migration2-amplify_e2e_tests + - schema-connection-amplify_e2e_tests + - api_5-amplify_e2e_tests + - configure-project-amplify_e2e_tests + - function_7-amplify_e2e_tests + - import_s3_2-amplify_e2e_tests + - migration-api-key-migration5-amplify_e2e_tests - schema-function-1-amplify_e2e_tests - init-special-case-amplify_e2e_tests - schema-data-access-patterns-amplify_e2e_tests @@ -11966,11 +12263,12 @@ workflows: - delete-amplify_e2e_tests - schema-searchable-amplify_e2e_tests - schema-iterative-rollback-1-amplify_e2e_tests - - function_1-amplify_e2e_tests - - schema-iterative-update-3-amplify_e2e_tests - - auth_8-amplify_e2e_tests - - function_6-amplify_e2e_tests - - import_dynamodb_2-amplify_e2e_tests + - migration-api-key-migration3-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - container-hosting-amplify_e2e_tests + - function_8-amplify_e2e_tests + - layer-1-amplify_e2e_tests - migration-node-function-amplify_e2e_tests - schema-function-2-amplify_e2e_tests - datastore-modelgen-amplify_e2e_tests @@ -11979,11 +12277,11 @@ workflows: - function_2-amplify_e2e_tests - schema-auth-4-amplify_e2e_tests - schema-iterative-rollback-2-amplify_e2e_tests - - schema-auth-1-amplify_e2e_tests - - schema-auth-2-amplify_e2e_tests - - configure-project-amplify_e2e_tests - - function_7-amplify_e2e_tests - - import_s3_2-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests + - custom_policies_container-amplify_e2e_tests + - function_9-amplify_e2e_tests + - layer-2-amplify_e2e_tests - pull-amplify_e2e_tests - schema-iterative-update-locking-amplify_e2e_tests - amplify-configure-amplify_e2e_tests @@ -11993,40 +12291,43 @@ workflows: - auth_3-amplify_e2e_tests - api_3-amplify_e2e_tests - env-amplify_e2e_tests - - function_4-amplify_e2e_tests - - api_1-amplify_e2e_tests - - container-hosting-amplify_e2e_tests - - function_8-amplify_e2e_tests - - layer-1-amplify_e2e_tests - - resolvers-amplify_e2e_tests - - storage-1-amplify_e2e_tests - - init-amplify_e2e_tests - - amplify-app-amplify_e2e_tests - - hostingPROD-amplify_e2e_tests - - auth_5-amplify_e2e_tests - - migration-api-key-migration1-amplify_e2e_tests - - import_auth_1-amplify_e2e_tests - - auth_2-amplify_e2e_tests - - schema-model-amplify_e2e_tests - - schema-auth-5-amplify_e2e_tests - - custom_policies_container-amplify_e2e_tests - - function_9-amplify_e2e_tests - - layer-2-amplify_e2e_tests - - s3-sse-amplify_e2e_tests - - storage-2-amplify_e2e_tests - - tags-amplify_e2e_tests - - hosting-amplify_e2e_tests - - geo-add-amplify_e2e_tests - - function_3-amplify_e2e_tests - - auth_4-amplify_e2e_tests - - import_auth_2-amplify_e2e_tests - - schema-auth-9-amplify_e2e_tests - - migration-api-connection-migration-amplify_e2e_tests - - api_2-amplify_e2e_tests + - schema-auth-1-amplify_e2e_tests + - schema-auth-2-amplify_e2e_tests - api_4-amplify_e2e_tests_pkg - custom_policies_function-amplify_e2e_tests_pkg - hooks-amplify_e2e_tests_pkg - layer-3-amplify_e2e_tests_pkg + - resolvers-amplify_e2e_tests_pkg + - storage-1-amplify_e2e_tests_pkg + - init-amplify_e2e_tests_pkg + - amplify-app-amplify_e2e_tests_pkg + - hostingPROD-amplify_e2e_tests_pkg + - auth_5-amplify_e2e_tests_pkg + - migration-api-key-migration1-amplify_e2e_tests_pkg + - import_auth_1-amplify_e2e_tests_pkg + - auth_2-amplify_e2e_tests_pkg + - function_4-amplify_e2e_tests_pkg + - api_1-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - layer-4-amplify_e2e_tests_pkg + - s3-sse-amplify_e2e_tests_pkg + - storage-2-amplify_e2e_tests_pkg + - tags-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - hosting-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - function_3-amplify_e2e_tests_pkg + - auth_4-amplify_e2e_tests_pkg + - import_auth_2-amplify_e2e_tests_pkg + - schema-auth-9-amplify_e2e_tests_pkg + - schema-model-amplify_e2e_tests_pkg + - schema-auth-5-amplify_e2e_tests_pkg + - auth_7-amplify_e2e_tests_pkg + - function_5-amplify_e2e_tests_pkg + - import_auth_3-amplify_e2e_tests_pkg + - migration-api-connection-migration2-amplify_e2e_tests_pkg - schema-auth-12-amplify_e2e_tests_pkg - storage-3-amplify_e2e_tests_pkg - notifications-amplify_e2e_tests_pkg @@ -12036,28 +12337,27 @@ workflows: - schema-auth-7-amplify_e2e_tests_pkg - import_s3_1-amplify_e2e_tests_pkg - schema-auth-11-amplify_e2e_tests_pkg - - schema-connection-amplify_e2e_tests_pkg - - api_5-amplify_e2e_tests_pkg - - auth_6-amplify_e2e_tests_pkg - - frontend_config_drift-amplify_e2e_tests_pkg - - iam-permissions-boundary-amplify_e2e_tests_pkg - - layer-4-amplify_e2e_tests_pkg + - migration-api-connection-migration-amplify_e2e_tests_pkg + - api_2-amplify_e2e_tests_pkg + - auth_8-amplify_e2e_tests_pkg + - function_6-amplify_e2e_tests_pkg + - import_dynamodb_2-amplify_e2e_tests_pkg + - migration-api-key-migration4-amplify_e2e_tests_pkg - schema-auth-13-amplify_e2e_tests_pkg - plugin-amplify_e2e_tests_pkg - schema-versioned-amplify_e2e_tests_pkg - - interactions-amplify_e2e_tests_pkg - feature-flags-amplify_e2e_tests_pkg - geo-remove-amplify_e2e_tests_pkg - schema-auth-3-amplify_e2e_tests_pkg - schema-auth-8-amplify_e2e_tests_pkg - import_dynamodb_1-amplify_e2e_tests_pkg - migration-api-key-migration2-amplify_e2e_tests_pkg - - schema-auth-6-amplify_e2e_tests_pkg - - schema-iterative-update-4-amplify_e2e_tests_pkg - - auth_7-amplify_e2e_tests_pkg - - function_5-amplify_e2e_tests_pkg - - import_auth_3-amplify_e2e_tests_pkg - - migration-api-connection-migration2-amplify_e2e_tests_pkg + - schema-connection-amplify_e2e_tests_pkg + - api_5-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg + - function_7-amplify_e2e_tests_pkg + - import_s3_2-amplify_e2e_tests_pkg + - migration-api-key-migration5-amplify_e2e_tests_pkg - schema-function-1-amplify_e2e_tests_pkg - init-special-case-amplify_e2e_tests_pkg - schema-data-access-patterns-amplify_e2e_tests_pkg @@ -12066,11 +12366,12 @@ workflows: - delete-amplify_e2e_tests_pkg - schema-searchable-amplify_e2e_tests_pkg - schema-iterative-rollback-1-amplify_e2e_tests_pkg - - function_1-amplify_e2e_tests_pkg - - schema-iterative-update-3-amplify_e2e_tests_pkg - - auth_8-amplify_e2e_tests_pkg - - function_6-amplify_e2e_tests_pkg - - import_dynamodb_2-amplify_e2e_tests_pkg + - migration-api-key-migration3-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg + - function_8-amplify_e2e_tests_pkg + - layer-1-amplify_e2e_tests_pkg - migration-node-function-amplify_e2e_tests_pkg - schema-function-2-amplify_e2e_tests_pkg - datastore-modelgen-amplify_e2e_tests_pkg @@ -12079,11 +12380,11 @@ workflows: - function_2-amplify_e2e_tests_pkg - schema-auth-4-amplify_e2e_tests_pkg - schema-iterative-rollback-2-amplify_e2e_tests_pkg - - schema-auth-1-amplify_e2e_tests_pkg - - schema-auth-2-amplify_e2e_tests_pkg - - configure-project-amplify_e2e_tests_pkg - - function_7-amplify_e2e_tests_pkg - - import_s3_2-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg + - custom_policies_container-amplify_e2e_tests_pkg + - function_9-amplify_e2e_tests_pkg + - layer-2-amplify_e2e_tests_pkg - pull-amplify_e2e_tests_pkg - schema-iterative-update-locking-amplify_e2e_tests_pkg - amplify-configure-amplify_e2e_tests_pkg @@ -12093,36 +12394,8 @@ workflows: - auth_3-amplify_e2e_tests_pkg - api_3-amplify_e2e_tests_pkg - env-amplify_e2e_tests_pkg - - function_4-amplify_e2e_tests_pkg - - api_1-amplify_e2e_tests_pkg - - container-hosting-amplify_e2e_tests_pkg - - function_8-amplify_e2e_tests_pkg - - layer-1-amplify_e2e_tests_pkg - - resolvers-amplify_e2e_tests_pkg - - storage-1-amplify_e2e_tests_pkg - - init-amplify_e2e_tests_pkg - - amplify-app-amplify_e2e_tests_pkg - - hostingPROD-amplify_e2e_tests_pkg - - auth_5-amplify_e2e_tests_pkg - - migration-api-key-migration1-amplify_e2e_tests_pkg - - import_auth_1-amplify_e2e_tests_pkg - - auth_2-amplify_e2e_tests_pkg - - schema-model-amplify_e2e_tests_pkg - - schema-auth-5-amplify_e2e_tests_pkg - - custom_policies_container-amplify_e2e_tests_pkg - - function_9-amplify_e2e_tests_pkg - - layer-2-amplify_e2e_tests_pkg - - s3-sse-amplify_e2e_tests_pkg - - storage-2-amplify_e2e_tests_pkg - - tags-amplify_e2e_tests_pkg - - hosting-amplify_e2e_tests_pkg - - geo-add-amplify_e2e_tests_pkg - - function_3-amplify_e2e_tests_pkg - - auth_4-amplify_e2e_tests_pkg - - import_auth_2-amplify_e2e_tests_pkg - - schema-auth-9-amplify_e2e_tests_pkg - - migration-api-connection-migration-amplify_e2e_tests_pkg - - api_2-amplify_e2e_tests_pkg + - schema-auth-1-amplify_e2e_tests_pkg + - schema-auth-2-amplify_e2e_tests_pkg - AuthV2Transformer-e2e-graphql_e2e_tests - IndexTransformer-e2e-graphql_e2e_tests - ModelConnectionWithKeyTransformer-e2e-graphql_e2e_tests @@ -12279,7 +12552,7 @@ workflows: parameters: os: - linux - - schema-auth-12-amplify_e2e_tests: + - resolvers-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12297,7 +12570,7 @@ workflows: parameters: os: - linux - - storage-3-amplify_e2e_tests: + - storage-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12315,7 +12588,7 @@ workflows: parameters: os: - linux - - notifications-amplify_e2e_tests: + - init-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12333,7 +12606,7 @@ workflows: parameters: os: - linux - - analytics-amplify_e2e_tests: + - amplify-app-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12351,7 +12624,7 @@ workflows: parameters: os: - linux - - geo-update-amplify_e2e_tests: + - hostingPROD-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12369,7 +12642,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-1-amplify_e2e_tests: + - auth_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12387,7 +12660,7 @@ workflows: parameters: os: - linux - - schema-auth-7-amplify_e2e_tests: + - migration-api-key-migration1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12405,7 +12678,7 @@ workflows: parameters: os: - linux - - import_s3_1-amplify_e2e_tests: + - import_auth_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12423,7 +12696,7 @@ workflows: parameters: os: - linux - - schema-auth-11-amplify_e2e_tests: + - auth_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12441,7 +12714,7 @@ workflows: parameters: os: - linux - - schema-connection-amplify_e2e_tests: + - function_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12459,7 +12732,7 @@ workflows: parameters: os: - linux - - api_5-amplify_e2e_tests: + - api_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12549,7 +12822,7 @@ workflows: parameters: os: - linux - - schema-auth-13-amplify_e2e_tests: + - s3-sse-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12567,7 +12840,7 @@ workflows: parameters: os: - linux - - plugin-amplify_e2e_tests: + - storage-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12585,7 +12858,7 @@ workflows: parameters: os: - linux - - schema-versioned-amplify_e2e_tests: + - tags-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12621,7 +12894,7 @@ workflows: parameters: os: - linux - - feature-flags-amplify_e2e_tests: + - hosting-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12639,7 +12912,7 @@ workflows: parameters: os: - linux - - geo-remove-amplify_e2e_tests: + - geo-add-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12657,7 +12930,7 @@ workflows: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests: + - function_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12675,7 +12948,7 @@ workflows: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests: + - auth_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12693,7 +12966,7 @@ workflows: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests: + - import_auth_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12711,7 +12984,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests: + - schema-auth-9-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12729,7 +13002,7 @@ workflows: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests: + - schema-model-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12747,7 +13020,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests: + - schema-auth-5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12837,7 +13110,7 @@ workflows: parameters: os: - linux - - schema-function-1-amplify_e2e_tests: + - schema-auth-12-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12855,7 +13128,7 @@ workflows: parameters: os: - linux - - init-special-case-amplify_e2e_tests: + - storage-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12873,7 +13146,7 @@ workflows: parameters: os: - linux - - schema-data-access-patterns-amplify_e2e_tests: + - notifications-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12891,7 +13164,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests: + - analytics-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12909,7 +13182,7 @@ workflows: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests: + - geo-update-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12927,7 +13200,7 @@ workflows: parameters: os: - linux - - delete-amplify_e2e_tests: + - schema-iterative-update-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12945,7 +13218,7 @@ workflows: parameters: os: - linux - - schema-searchable-amplify_e2e_tests: + - schema-auth-7-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12963,7 +13236,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-1-amplify_e2e_tests: + - import_s3_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12981,7 +13254,7 @@ workflows: parameters: os: - linux - - function_1-amplify_e2e_tests: + - schema-auth-11-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -12999,7 +13272,25 @@ workflows: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests: + - migration-api-connection-migration-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - api_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13071,7 +13362,7 @@ workflows: parameters: os: - linux - - migration-node-function-amplify_e2e_tests: + - migration-api-key-migration4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13089,7 +13380,7 @@ workflows: parameters: os: - linux - - schema-function-2-amplify_e2e_tests: + - schema-auth-13-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13107,7 +13398,7 @@ workflows: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests: + - plugin-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13125,7 +13416,7 @@ workflows: parameters: os: - linux - - containers-api-amplify_e2e_tests: + - schema-versioned-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13143,7 +13434,7 @@ workflows: parameters: os: - linux - - schema-key-amplify_e2e_tests: + - feature-flags-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13161,7 +13452,7 @@ workflows: parameters: os: - linux - - function_2-amplify_e2e_tests: + - geo-remove-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13179,7 +13470,7 @@ workflows: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests: + - schema-auth-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13197,7 +13488,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests: + - schema-auth-8-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13215,7 +13506,7 @@ workflows: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests: + - import_dynamodb_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13233,7 +13524,43 @@ workflows: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests: + - migration-api-key-migration2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-connection-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - api_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13305,7 +13632,7 @@ workflows: parameters: os: - linux - - pull-amplify_e2e_tests: + - migration-api-key-migration5-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13323,7 +13650,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-locking-amplify_e2e_tests: + - schema-function-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13341,7 +13668,7 @@ workflows: parameters: os: - linux - - amplify-configure-amplify_e2e_tests: + - init-special-case-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13359,7 +13686,7 @@ workflows: parameters: os: - linux - - schema-predictions-amplify_e2e_tests: + - schema-data-access-patterns-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13377,7 +13704,7 @@ workflows: parameters: os: - linux - - predictions-amplify_e2e_tests: + - schema-iterative-update-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13395,7 +13722,7 @@ workflows: parameters: os: - linux - - auth_1-amplify_e2e_tests: + - schema-auth-10-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13413,7 +13740,7 @@ workflows: parameters: os: - linux - - auth_3-amplify_e2e_tests: + - delete-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13431,7 +13758,7 @@ workflows: parameters: os: - linux - - api_3-amplify_e2e_tests: + - schema-searchable-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13449,7 +13776,7 @@ workflows: parameters: os: - linux - - env-amplify_e2e_tests: + - schema-iterative-rollback-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13467,7 +13794,7 @@ workflows: parameters: os: - linux - - function_4-amplify_e2e_tests: + - migration-api-key-migration3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13485,7 +13812,61 @@ workflows: parameters: os: - linux - - api_1-amplify_e2e_tests: + - schema-auth-6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-iterative-update-4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - container-hosting-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - cleanup-resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_8-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13503,7 +13884,7 @@ workflows: parameters: os: - linux - - container-hosting-amplify_e2e_tests: + - layer-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13521,7 +13902,7 @@ workflows: parameters: os: - linux - - function_8-amplify_e2e_tests: + - migration-node-function-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13539,7 +13920,7 @@ workflows: parameters: os: - linux - - layer-1-amplify_e2e_tests: + - schema-function-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13557,7 +13938,7 @@ workflows: parameters: os: - linux - - resolvers-amplify_e2e_tests: + - datastore-modelgen-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13575,7 +13956,7 @@ workflows: parameters: os: - linux - - storage-1-amplify_e2e_tests: + - containers-api-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13593,7 +13974,7 @@ workflows: parameters: os: - linux - - init-amplify_e2e_tests: + - schema-key-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13611,7 +13992,7 @@ workflows: parameters: os: - linux - - amplify-app-amplify_e2e_tests: + - function_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13629,7 +14010,7 @@ workflows: parameters: os: - linux - - hostingPROD-amplify_e2e_tests: + - schema-auth-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13647,7 +14028,7 @@ workflows: parameters: os: - linux - - auth_5-amplify_e2e_tests: + - schema-iterative-rollback-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13665,7 +14046,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests: + - function_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13683,7 +14064,7 @@ workflows: parameters: os: - linux - - import_auth_1-amplify_e2e_tests: + - schema-iterative-update-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13701,7 +14082,7 @@ workflows: parameters: os: - linux - - auth_2-amplify_e2e_tests: + - custom_policies_container-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13719,7 +14100,7 @@ workflows: parameters: os: - linux - - schema-model-amplify_e2e_tests: + - function_9-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13737,7 +14118,7 @@ workflows: parameters: os: - linux - - schema-auth-5-amplify_e2e_tests: + - layer-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13755,7 +14136,7 @@ workflows: parameters: os: - linux - - custom_policies_container-amplify_e2e_tests: + - pull-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13773,7 +14154,7 @@ workflows: parameters: os: - linux - - function_9-amplify_e2e_tests: + - schema-iterative-update-locking-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13791,7 +14172,7 @@ workflows: parameters: os: - linux - - layer-2-amplify_e2e_tests: + - amplify-configure-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13809,7 +14190,7 @@ workflows: parameters: os: - linux - - s3-sse-amplify_e2e_tests: + - schema-predictions-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13827,7 +14208,7 @@ workflows: parameters: os: - linux - - storage-2-amplify_e2e_tests: + - predictions-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13845,7 +14226,7 @@ workflows: parameters: os: - linux - - tags-amplify_e2e_tests: + - auth_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13863,7 +14244,7 @@ workflows: parameters: os: - linux - - hosting-amplify_e2e_tests: + - auth_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13881,7 +14262,7 @@ workflows: parameters: os: - linux - - geo-add-amplify_e2e_tests: + - api_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13899,7 +14280,7 @@ workflows: parameters: os: - linux - - function_3-amplify_e2e_tests: + - env-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13917,7 +14298,7 @@ workflows: parameters: os: - linux - - auth_4-amplify_e2e_tests: + - schema-auth-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13935,7 +14316,7 @@ workflows: parameters: os: - linux - - import_auth_2-amplify_e2e_tests: + - schema-auth-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - cleanup-resources @@ -13953,7 +14334,7 @@ workflows: parameters: os: - linux - - schema-auth-9-amplify_e2e_tests: + - api_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13966,12 +14347,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests: + - custom_policies_function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -13984,12 +14365,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - api_2-amplify_e2e_tests: + - hooks-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14002,12 +14383,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - api_4-amplify_e2e_tests_pkg: + - layer-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14025,7 +14406,7 @@ workflows: parameters: os: - linux - - custom_policies_function-amplify_e2e_tests_pkg: + - resolvers-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14043,7 +14424,7 @@ workflows: parameters: os: - linux - - hooks-amplify_e2e_tests_pkg: + - storage-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14061,7 +14442,7 @@ workflows: parameters: os: - linux - - layer-3-amplify_e2e_tests_pkg: + - init-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14079,7 +14460,7 @@ workflows: parameters: os: - linux - - schema-auth-12-amplify_e2e_tests_pkg: + - amplify-app-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14097,7 +14478,7 @@ workflows: parameters: os: - linux - - storage-3-amplify_e2e_tests_pkg: + - hostingPROD-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14115,7 +14496,7 @@ workflows: parameters: os: - linux - - notifications-amplify_e2e_tests_pkg: + - auth_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14133,7 +14514,7 @@ workflows: parameters: os: - linux - - analytics-amplify_e2e_tests_pkg: + - migration-api-key-migration1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14151,7 +14532,7 @@ workflows: parameters: os: - linux - - geo-update-amplify_e2e_tests_pkg: + - import_auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14169,7 +14550,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-1-amplify_e2e_tests_pkg: + - auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14187,7 +14568,7 @@ workflows: parameters: os: - linux - - schema-auth-7-amplify_e2e_tests_pkg: + - function_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14205,7 +14586,7 @@ workflows: parameters: os: - linux - - import_s3_1-amplify_e2e_tests_pkg: + - api_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14223,7 +14604,7 @@ workflows: parameters: os: - linux - - schema-auth-11-amplify_e2e_tests_pkg: + - auth_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14241,7 +14622,7 @@ workflows: parameters: os: - linux - - schema-connection-amplify_e2e_tests_pkg: + - frontend_config_drift-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14259,7 +14640,7 @@ workflows: parameters: os: - linux - - api_5-amplify_e2e_tests_pkg: + - iam-permissions-boundary-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14277,7 +14658,7 @@ workflows: parameters: os: - linux - - auth_6-amplify_e2e_tests_pkg: + - layer-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14295,7 +14676,7 @@ workflows: parameters: os: - linux - - frontend_config_drift-amplify_e2e_tests_pkg: + - s3-sse-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14313,7 +14694,7 @@ workflows: parameters: os: - linux - - iam-permissions-boundary-amplify_e2e_tests_pkg: + - storage-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14331,7 +14712,7 @@ workflows: parameters: os: - linux - - layer-4-amplify_e2e_tests_pkg: + - tags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14349,7 +14730,7 @@ workflows: parameters: os: - linux - - schema-auth-13-amplify_e2e_tests_pkg: + - interactions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14367,7 +14748,7 @@ workflows: parameters: os: - linux - - plugin-amplify_e2e_tests_pkg: + - hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14385,8 +14766,7 @@ workflows: parameters: os: - linux - - windows - - schema-versioned-amplify_e2e_tests_pkg: + - geo-add-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14404,7 +14784,7 @@ workflows: parameters: os: - linux - - interactions-amplify_e2e_tests_pkg: + - function_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14422,7 +14802,7 @@ workflows: parameters: os: - linux - - feature-flags-amplify_e2e_tests_pkg: + - auth_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14440,7 +14820,7 @@ workflows: parameters: os: - linux - - geo-remove-amplify_e2e_tests_pkg: + - import_auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14458,7 +14838,7 @@ workflows: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests_pkg: + - schema-auth-9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14476,7 +14856,7 @@ workflows: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests_pkg: + - schema-model-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14494,7 +14874,7 @@ workflows: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests_pkg: + - schema-auth-5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14512,7 +14892,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests_pkg: + - auth_7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14530,7 +14910,7 @@ workflows: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests_pkg: + - function_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14548,7 +14928,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests_pkg: + - import_auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14566,7 +14946,7 @@ workflows: parameters: os: - linux - - auth_7-amplify_e2e_tests_pkg: + - migration-api-connection-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14584,7 +14964,7 @@ workflows: parameters: os: - linux - - function_5-amplify_e2e_tests_pkg: + - schema-auth-12-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14602,7 +14982,7 @@ workflows: parameters: os: - linux - - import_auth_3-amplify_e2e_tests_pkg: + - storage-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14620,7 +15000,7 @@ workflows: parameters: os: - linux - - migration-api-connection-migration2-amplify_e2e_tests_pkg: + - notifications-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14638,7 +15018,7 @@ workflows: parameters: os: - linux - - schema-function-1-amplify_e2e_tests_pkg: + - analytics-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14656,7 +15036,7 @@ workflows: parameters: os: - linux - - init-special-case-amplify_e2e_tests_pkg: + - geo-update-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14674,8 +15054,7 @@ workflows: parameters: os: - linux - - windows - - schema-data-access-patterns-amplify_e2e_tests_pkg: + - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14693,7 +15072,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests_pkg: + - schema-auth-7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14711,7 +15090,7 @@ workflows: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests_pkg: + - import_s3_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14729,7 +15108,7 @@ workflows: parameters: os: - linux - - delete-amplify_e2e_tests_pkg: + - schema-auth-11-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14747,7 +15126,7 @@ workflows: parameters: os: - linux - - schema-searchable-amplify_e2e_tests_pkg: + - migration-api-connection-migration-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14765,7 +15144,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-1-amplify_e2e_tests_pkg: + - api_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14783,7 +15162,7 @@ workflows: parameters: os: - linux - - function_1-amplify_e2e_tests_pkg: + - auth_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14801,7 +15180,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests_pkg: + - function_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14819,7 +15198,7 @@ workflows: parameters: os: - linux - - auth_8-amplify_e2e_tests_pkg: + - import_dynamodb_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14837,7 +15216,7 @@ workflows: parameters: os: - linux - - function_6-amplify_e2e_tests_pkg: + - migration-api-key-migration4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14855,7 +15234,8 @@ workflows: parameters: os: - linux - - import_dynamodb_2-amplify_e2e_tests_pkg: + - windows + - schema-auth-13-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14873,7 +15253,7 @@ workflows: parameters: os: - linux - - migration-node-function-amplify_e2e_tests_pkg: + - plugin-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14891,7 +15271,8 @@ workflows: parameters: os: - linux - - schema-function-2-amplify_e2e_tests_pkg: + - windows + - schema-versioned-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14909,7 +15290,7 @@ workflows: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests_pkg: + - feature-flags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14927,7 +15308,7 @@ workflows: parameters: os: - linux - - containers-api-amplify_e2e_tests_pkg: + - geo-remove-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14945,7 +15326,7 @@ workflows: parameters: os: - linux - - schema-key-amplify_e2e_tests_pkg: + - schema-auth-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14963,7 +15344,7 @@ workflows: parameters: os: - linux - - function_2-amplify_e2e_tests_pkg: + - schema-auth-8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14981,7 +15362,7 @@ workflows: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests_pkg: + - import_dynamodb_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -14999,7 +15380,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests_pkg: + - migration-api-key-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15017,7 +15398,7 @@ workflows: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests_pkg: + - schema-connection-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15035,7 +15416,7 @@ workflows: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests_pkg: + - api_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15108,7 +15489,7 @@ workflows: parameters: os: - linux - - pull-amplify_e2e_tests_pkg: + - migration-api-key-migration5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15126,7 +15507,8 @@ workflows: parameters: os: - linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg: + - windows + - schema-function-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15144,7 +15526,7 @@ workflows: parameters: os: - linux - - amplify-configure-amplify_e2e_tests_pkg: + - init-special-case-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15163,7 +15545,7 @@ workflows: os: - linux - windows - - schema-predictions-amplify_e2e_tests_pkg: + - schema-data-access-patterns-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15181,7 +15563,7 @@ workflows: parameters: os: - linux - - predictions-amplify_e2e_tests_pkg: + - schema-iterative-update-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15199,7 +15581,7 @@ workflows: parameters: os: - linux - - auth_1-amplify_e2e_tests_pkg: + - schema-auth-10-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15217,7 +15599,7 @@ workflows: parameters: os: - linux - - auth_3-amplify_e2e_tests_pkg: + - delete-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15235,7 +15617,7 @@ workflows: parameters: os: - linux - - api_3-amplify_e2e_tests_pkg: + - schema-searchable-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15253,7 +15635,7 @@ workflows: parameters: os: - linux - - env-amplify_e2e_tests_pkg: + - schema-iterative-rollback-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15271,7 +15653,7 @@ workflows: parameters: os: - linux - - function_4-amplify_e2e_tests_pkg: + - migration-api-key-migration3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15289,7 +15671,7 @@ workflows: parameters: os: - linux - - api_1-amplify_e2e_tests_pkg: + - schema-auth-6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15307,7 +15689,7 @@ workflows: parameters: os: - linux - - container-hosting-amplify_e2e_tests_pkg: + - schema-iterative-update-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15325,8 +15707,7 @@ workflows: parameters: os: - linux - - windows - - function_8-amplify_e2e_tests_pkg: + - container-hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15344,7 +15725,8 @@ workflows: parameters: os: - linux - - layer-1-amplify_e2e_tests_pkg: + - windows + - function_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15362,7 +15744,7 @@ workflows: parameters: os: - linux - - resolvers-amplify_e2e_tests_pkg: + - layer-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15380,7 +15762,7 @@ workflows: parameters: os: - linux - - storage-1-amplify_e2e_tests_pkg: + - migration-node-function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15398,7 +15780,7 @@ workflows: parameters: os: - linux - - init-amplify_e2e_tests_pkg: + - schema-function-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15416,7 +15798,7 @@ workflows: parameters: os: - linux - - amplify-app-amplify_e2e_tests_pkg: + - datastore-modelgen-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15434,7 +15816,7 @@ workflows: parameters: os: - linux - - hostingPROD-amplify_e2e_tests_pkg: + - containers-api-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15452,7 +15834,7 @@ workflows: parameters: os: - linux - - auth_5-amplify_e2e_tests_pkg: + - schema-key-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15470,7 +15852,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests_pkg: + - function_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15488,7 +15870,7 @@ workflows: parameters: os: - linux - - import_auth_1-amplify_e2e_tests_pkg: + - schema-auth-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15506,7 +15888,7 @@ workflows: parameters: os: - linux - - auth_2-amplify_e2e_tests_pkg: + - schema-iterative-rollback-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15524,7 +15906,7 @@ workflows: parameters: os: - linux - - schema-model-amplify_e2e_tests_pkg: + - function_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15542,7 +15924,7 @@ workflows: parameters: os: - linux - - schema-auth-5-amplify_e2e_tests_pkg: + - schema-iterative-update-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15614,7 +15996,7 @@ workflows: parameters: os: - linux - - s3-sse-amplify_e2e_tests_pkg: + - pull-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15632,7 +16014,7 @@ workflows: parameters: os: - linux - - storage-2-amplify_e2e_tests_pkg: + - schema-iterative-update-locking-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15650,7 +16032,7 @@ workflows: parameters: os: - linux - - tags-amplify_e2e_tests_pkg: + - amplify-configure-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15668,7 +16050,8 @@ workflows: parameters: os: - linux - - hosting-amplify_e2e_tests_pkg: + - windows + - schema-predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15686,7 +16069,7 @@ workflows: parameters: os: - linux - - geo-add-amplify_e2e_tests_pkg: + - predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15704,7 +16087,7 @@ workflows: parameters: os: - linux - - function_3-amplify_e2e_tests_pkg: + - auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15722,7 +16105,7 @@ workflows: parameters: os: - linux - - auth_4-amplify_e2e_tests_pkg: + - auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15740,7 +16123,7 @@ workflows: parameters: os: - linux - - import_auth_2-amplify_e2e_tests_pkg: + - api_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15758,7 +16141,7 @@ workflows: parameters: os: - linux - - schema-auth-9-amplify_e2e_tests_pkg: + - env-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15776,7 +16159,7 @@ workflows: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests_pkg: + - schema-auth-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources @@ -15794,7 +16177,7 @@ workflows: parameters: os: - linux - - api_2-amplify_e2e_tests_pkg: + - schema-auth-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - cleanup-resources diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration2.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration2.test.ts index 724026221f8..14a8345ec1c 100644 --- a/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration2.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration2.test.ts @@ -6,7 +6,7 @@ import { addEnvironment } from '../../environment/env'; describe('amplify add api', () => { let projRoot: string; beforeEach(async () => { - projRoot = await createNewProjectDir('api-key-migration'); + projRoot = await createNewProjectDir('api-key-migration-2'); }); afterEach(async () => { @@ -46,120 +46,4 @@ describe('amplify add api', () => { expect(GraphQLAPIEndpointOutput).toBeDefined(); expect(GraphQLAPIKeyOutput).toBeDefined(); }); - - it('init project, run invalid migration trying to add more than one gsi, and check for error', async () => { - const projectName = 'migratingkey'; - const initialSchema = 'migrations_key/initial_schema.graphql'; - const nextSchema1 = 'migrations_key/cant_add_more_gsi.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithoutSchema(projRoot); - await updateApiSchema(projRoot, projectName, initialSchema); - await amplifyPush(projRoot); - - updateApiSchema(projRoot, projectName, nextSchema1); - await expect( - amplifyPushUpdate( - projRoot, - /Attempting to add more than 1 global secondary index SomeGSI1 and someGSI2 on the TodoTable table in the Todo stack.*/, - ), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - }); - - it('init project, run invalid migration trying to delete more than one gsi, and check for error', async () => { - const projectName = 'migratingkey1'; - const initialSchema = 'migrations_key/initial_schema1.graphql'; - const nextSchema1 = 'migrations_key/cant_remove_more_gsi.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithoutSchema(projRoot); - await updateApiSchema(projRoot, projectName, initialSchema); - await amplifyPush(projRoot); - - updateApiSchema(projRoot, projectName, nextSchema1); - await expect( - amplifyPushUpdate( - projRoot, - /Attempting to delete more than 1 global secondary index SomeGSI1 and someGSI2 on the TodoTable table in the Todo stack.*/, - ), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - }); - - it('init project, run invalid migration trying to add and delete gsi, and check for error', async () => { - const projectName = 'migratingkey2'; - const initialSchema = 'migrations_key/initial_schema.graphql'; - const nextSchema1 = 'migrations_key/cant_update_delete_gsi.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithoutSchema(projRoot); - await updateApiSchema(projRoot, projectName, initialSchema); - await amplifyPush(projRoot); - updateApiSchema(projRoot, projectName, nextSchema1); - await expect( - amplifyPushUpdate( - projRoot, - /Attempting to add and delete a global secondary index SomeGSI1 and someGSI2 on the TodoTable table in the Todo stack.*/, - ), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - }); - - it('init project, run invalid migration when adding more than one gsi on the same table', async () => { - const projectName = 'invalidgsiupdate'; - - const initialSchema = 'migrations_key/simple_key.graphql'; - const nextSchema = 'migrations_key/cant_add_multiple_gsi.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithoutSchema(projRoot); - await updateApiSchema(projRoot, projectName, initialSchema); - await amplifyPush(projRoot); - - updateApiSchema(projRoot, projectName, nextSchema); - await expect( - amplifyPushUpdate( - projRoot, - /Attempting to mutate more than 1 global secondary index at the same time on the TodoTable table in the Todo stack.*/, - ), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - }); - - it('init project, allow updated two types with new GSIs', async () => { - const projectName = 'twotableupdategsi'; - const initialSchema = 'migrations_key/two_key_model_schema.graphql'; - const nextSchema = 'migrations_key/four_key_model_schema.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithoutSchema(projRoot); - await updateApiSchema(projRoot, projectName, initialSchema); - await amplifyPush(projRoot); - - updateApiSchema(projRoot, projectName, nextSchema); - await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); - }); - - it('init project, run valid migration adding a GSI', async () => { - const projectName = 'validaddinggsi'; - const initialSchema = 'migrations_key/initial_schema.graphql'; - const nextSchema1 = 'migrations_key/add_gsi.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithoutSchema(projRoot); - await updateApiSchema(projRoot, projectName, initialSchema); - await amplifyPush(projRoot); - - updateApiSchema(projRoot, projectName, nextSchema1); - await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration3.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration3.test.ts new file mode 100644 index 00000000000..f3a59e0fcee --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration3.test.ts @@ -0,0 +1,57 @@ +import { initJSProjectWithProfile, deleteProject, amplifyPush, amplifyPushUpdate, addFeatureFlag } from 'amplify-e2e-core'; +import { addApiWithoutSchema, updateApiSchema, getProjectMeta } from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir } from 'amplify-e2e-core'; +import { addEnvironment } from '../../environment/env'; + +describe('amplify add api', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('api-key-migration-3'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init project, run invalid migration trying to delete more than one gsi, and check for error', async () => { + const projectName = 'migratingkey1'; + const initialSchema = 'migrations_key/initial_schema1.graphql'; + const nextSchema1 = 'migrations_key/cant_remove_more_gsi.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithoutSchema(projRoot); + await updateApiSchema(projRoot, projectName, initialSchema); + await amplifyPush(projRoot); + + updateApiSchema(projRoot, projectName, nextSchema1); + await expect( + amplifyPushUpdate( + projRoot, + /Attempting to delete more than 1 global secondary index SomeGSI1 and someGSI2 on the TodoTable table in the Todo stack.*/, + ), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + }); + + it('init project, run invalid migration trying to add and delete gsi, and check for error', async () => { + const projectName = 'migratingkey2'; + const initialSchema = 'migrations_key/initial_schema.graphql'; + const nextSchema1 = 'migrations_key/cant_update_delete_gsi.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithoutSchema(projRoot); + await updateApiSchema(projRoot, projectName, initialSchema); + await amplifyPush(projRoot); + updateApiSchema(projRoot, projectName, nextSchema1); + await expect( + amplifyPushUpdate( + projRoot, + /Attempting to add and delete a global secondary index SomeGSI1 and someGSI2 on the TodoTable table in the Todo stack.*/, + ), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration4.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration4.test.ts new file mode 100644 index 00000000000..8af292182db --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration4.test.ts @@ -0,0 +1,48 @@ +import { initJSProjectWithProfile, deleteProject, amplifyPush, amplifyPushUpdate, addFeatureFlag } from 'amplify-e2e-core'; +import { addApiWithoutSchema, updateApiSchema, getProjectMeta } from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir } from 'amplify-e2e-core'; +import { addEnvironment } from '../../environment/env'; + +describe('amplify add api', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('api-key-migration-4'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init project, allow updated two types with new GSIs', async () => { + const projectName = 'twotableupdategsi'; + const initialSchema = 'migrations_key/two_key_model_schema.graphql'; + const nextSchema = 'migrations_key/four_key_model_schema.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithoutSchema(projRoot); + await updateApiSchema(projRoot, projectName, initialSchema); + await amplifyPush(projRoot); + + updateApiSchema(projRoot, projectName, nextSchema); + await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); + }); + + it('init project, run valid migration adding a GSI', async () => { + const projectName = 'validaddinggsi'; + const initialSchema = 'migrations_key/initial_schema.graphql'; + const nextSchema1 = 'migrations_key/add_gsi.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithoutSchema(projRoot); + await updateApiSchema(projRoot, projectName, initialSchema); + await amplifyPush(projRoot); + + updateApiSchema(projRoot, projectName, nextSchema1); + await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration5.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration5.test.ts new file mode 100644 index 00000000000..0f4a4fdccde --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/migration/api.key.migration5.test.ts @@ -0,0 +1,59 @@ +import { initJSProjectWithProfile, deleteProject, amplifyPush, amplifyPushUpdate, addFeatureFlag } from 'amplify-e2e-core'; +import { addApiWithoutSchema, updateApiSchema, getProjectMeta } from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir } from 'amplify-e2e-core'; +import { addEnvironment } from '../../environment/env'; + +describe('amplify add api', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('api-key-migration-5'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init project, run invalid migration trying to add more than one gsi, and check for error', async () => { + const projectName = 'migratingkey3'; + const initialSchema = 'migrations_key/initial_schema.graphql'; + const nextSchema1 = 'migrations_key/cant_add_more_gsi.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithoutSchema(projRoot); + await updateApiSchema(projRoot, projectName, initialSchema); + await amplifyPush(projRoot); + + updateApiSchema(projRoot, projectName, nextSchema1); + await expect( + amplifyPushUpdate( + projRoot, + /Attempting to add more than 1 global secondary index SomeGSI1 and someGSI2 on the TodoTable table in the Todo stack.*/, + ), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + }); + + it('init project, run invalid migration when adding more than one gsi on the same table', async () => { + const projectName = 'invalidgsiupdate'; + + const initialSchema = 'migrations_key/simple_key.graphql'; + const nextSchema = 'migrations_key/cant_add_multiple_gsi.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithoutSchema(projRoot); + await updateApiSchema(projRoot, projectName, initialSchema); + await amplifyPush(projRoot); + + updateApiSchema(projRoot, projectName, nextSchema); + await expect( + amplifyPushUpdate( + projRoot, + /Attempting to mutate more than 1 global secondary index at the same time on the TodoTable table in the Todo stack.*/, + ), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + }); +});