Skip to content

Commit

Permalink
test: add credential refresh to long-running test (#13441)
Browse files Browse the repository at this point in the history
* test: add credential refresh to long-running test

* test: add credential refresh to long-running test
  • Loading branch information
sobolk authored Nov 30, 2023
1 parent 202dc5f commit 74f7698
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
getUserPool,
getUserPoolDomain,
getUserPoolId,
tryScheduleCredentialRefresh,
updateAuthAddUserGroups,
updateAuthDomainPrefixWithAllProvidersConfigured,
updateHeadlessAuth,
Expand All @@ -25,6 +26,8 @@ import { UpdateAuthRequest } from 'amplify-headless-interface';

describe('amplify auth hosted ui', () => {
beforeAll(async () => {
tryScheduleCredentialRefresh();

const migrateFromVersion = { v: '12.0.3' };
const migrateToVersion = { v: 'uninitialized' };

Expand Down
2 changes: 1 addition & 1 deletion scripts/cloud-cli-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function authenticate {
role_name=$2
profile_name=$3
echo Authenticating terminal...
mwinit --aea
mwinit
echo Loading account credentials for Account $account_number with Role: $role_name...
ada cred update --profile="${profile_name}" --account="${account_number}" --role=${role_name} --provider=isengard --once
aws configure set region us-east-1 --profile $profile_name
Expand Down
2 changes: 1 addition & 1 deletion scripts/cloud-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source $scriptDir/.env set
printf 'What is your PR number ? '
read PR_NUMBER

mwinit --aea
mwinit
ada cred update --profile=cb-ci-account --account=$E2E_ACCOUNT_PROD --role=CodeBuildE2E --provider=isengard --once
RESULT=$(aws codebuild start-build-batch \
--profile=cb-ci-account \
Expand Down

0 comments on commit 74f7698

Please sign in to comment.