Skip to content

Commit

Permalink
updated Makefile and entrypoint_test to align with the idp switch for…
Browse files Browse the repository at this point in the history
… the regression tests
  • Loading branch information
TylerGuerrero-va committed Aug 16, 2024
1 parent b5a5af5 commit 94e0380
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ regression:
--client-id=$(CLIENT_ID) \
--idp=$(IDP) \
--authorization-url=$(AUTHORIZATION_URL) \
--user-password=$(USER_PASSWORD) \
--valid-user=$(VALID_USER_EMAIL) \
--icn-error-user=$(ICN_ERROR_USER_EMAIL)
--valid-login-gov-user-email=$(VALID_LOGIN_GOV_USER_EMAIL) \
--valid-login-gov-user-seed=$(VALID_LOGIN_GOV_USER_SEED) \
--login-gov-user-password=$(LOGIN_GOV_USER_PASSWORD) \
--icn-error-login-gov-user-email=$(ICN_ERROR_LOGIN_GOV_USER_EMAIL) \
--icn-error-login-gov-user-seed=$(ICN_ERROR_LOGIN_GOV_USER_SEED)
--regression-test-timeout=$(REGRESSION_TEST_TIMEOUT)

## pull: Pull an image to ECR
Expand Down
24 changes: 15 additions & 9 deletions test/regression_tests/entrypoint_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ docker run \
--client-id=$CLIENT_ID \
--idp=$IDP \
--authorization-url=$AUTHORIZATION_URL \
--user-password=$USER_PASSWORD \
--valid-user=$VALID_USER_EMAIL \
--icn-error-user=$ICN_ERROR_USER_EMAIL
--valid-login-gov-user-email=$VALID_LOGIN_GOV_USER_EMAIL \
--valid-login-gov-user-seed=$VALID_LOGIN_GOV_USER_SEED \
--login-gov-user-password=$LOGIN_GOV_USER_PASSWORD \
--icn-error-login-gov-user-email=$ICN_ERROR_LOGIN_GOV_USER_EMAIL \
--icn-error-login-gov-user-seed=$ICN_ERROR_LOGIN_GOV_USER_SEED
EOF
}
Expand All @@ -38,12 +40,16 @@ case $i in
export IDP="${i#*=}"; shift ;;
--authorization-url=*)
export AUTHORIZATION_URL="${i#*=}"; shift ;;
--user-password=*)
export USER_PASSWORD="${i#*=}"; shift ;;
--valid-user=*)
export VALID_USER_EMAIL="${i#*=}"; shift ;;
--icn-error-user=*)
export ICN_ERROR_USER_EMAIL="${i#*=}"; shift ;;
--valid-login-gov-user-email=*)
export VALID_LOGIN_GOV_USER_EMAIL="${i#*=}"; shift ;;
--valid-login-gov-user-seed=*)
export VALID_LOGIN_GOV_USER_SEED="${i#*=}"; shift ;;
--login-gov-user-password=*)
export LOGIN_GOV_USER_PASSWORD="${i#*=}"; shift ;;
--icn-error-login-gov-user-email=*)
export ICN_ERROR_LOGIN_GOV_USER_EMAIL="${i#*=}"; shift ;;
--icn-error-login-gov-user-seed=*)
export ICN_ERROR_LOGIN_GOV_USER_SEED="${i#*=}"; shift ;;
esac
done

Expand Down

0 comments on commit 94e0380

Please sign in to comment.