Skip to content

Commit

Permalink
ci: e2e test setup for assume role in test account org (aws-amplify#1…
Browse files Browse the repository at this point in the history
…2392)

* ci: test assume role

* ci: retry

* ci: test again

* ci: cleanup

* ci: reduce duration to 1h max for role chaining

* ci: full e2e run

* ci: run with breakpoint

* ci: run with debug

* ci: add CI flag

* ci: re-enable test

* ci: fix ci

* ci: add circleci env var

* ci: prepare for pr
  • Loading branch information
awsluja authored and aws-eddy committed Apr 11, 2023
1 parent 101dcf7 commit 54844e2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions codebuild_specs/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ batch:
env:
compute-type: BUILD_GENERAL1_LARGE
debug-session: true
<<<<<<< HEAD
depend-on:
- upload_pkg_binaries
- identifier: run_e2e_tests_windows
Expand All @@ -106,5 +107,7 @@ batch:
type: WINDOWS_SERVER_2019_CONTAINER
compute-type: BUILD_GENERAL1_LARGE
image: aws/codebuild/windows-base:2019-2.0
=======
>>>>>>> 5c700107f0 (ci: e2e test setup for assume role in test account org (#12392))
depend-on:
- upload_pkg_binaries
9 changes: 9 additions & 0 deletions codebuild_specs/run_e2e_tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ env:
shell: bash
variables:
CLI_REGION: us-east-1
<<<<<<< HEAD
TEST_SUITE: src/__tests__/auth_2a.test.ts|src/__tests__/auth_2b.test.ts|src/__tests__/auth_2d.test.ts|src/__tests__/auth_2f.test.ts
CI: true
CIRCLECI: true
Expand All @@ -22,6 +23,11 @@ env:
APPLE_KEY_ID: '2QLZXKYJ8J'
# mock value, Cognito validates the private key, this is an invalidated key.
APPLE_PRIVATE_KEY: '----BEGIN PRIVATE KEY-----MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgIltgNsTgTfSzUadYiCS0VYtDDMFln/J8i1yJsSIw5g+gCgYIKoZIzj0DAQehRANCAASI8E0L/DhR/mIfTT07v3VwQu6q8I76lgn7kFhT0HvWoLuHKGQFcFkXXCgztgBrprzd419mUChAnKE6y89bWcNw----END PRIVATE KEY----'
=======
TEST_SUITE: src/__tests__/auth_2b.test.ts
CI: true
CIRCLECI: true
>>>>>>> 5c700107f0 (ci: e2e test setup for assume role in test account org (#12392))
phases:
build:
commands:
Expand All @@ -37,8 +43,11 @@ phases:
post_build:
commands:
- aws sts get-caller-identity
<<<<<<< HEAD
- source ./shared-scripts.sh && _scanArtifacts

artifacts:
files:
- $CODEBUILD_SRC_DIR/packages/amplify-e2e-tests/amplify-e2e-reports/*
=======
>>>>>>> 5c700107f0 (ci: e2e test setup for assume role in test account org (#12392))
7 changes: 5 additions & 2 deletions shared-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,11 @@ function _runE2ETestsLinux {
changeNpmGlobalPath
amplify version

# cd packages/amplify-e2e-tests
# retry runE2eTest
cd packages/amplify-e2e-tests

_loadTestAccountCredentials

retry runE2eTest
}
function _runE2ETestsWin {
echo RUN E2E Tests Windows
Expand Down

0 comments on commit 54844e2

Please sign in to comment.