-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* UML-3121 make redirect uri dynamic * Clean up authenticateOneLoginHandler * Fix redirect fail on welsh bug * revert url helper logic * Refactor work, rename redirect url and store ui_locale in authsession * Add behat test * Revert workflow changes * Refactor behat tests
- Loading branch information
Showing
11 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,19 +146,9 @@ jobs: | |
matrix.run_unit_tests == 'true' && | ||
(inputs.specific_path == 'all' || inputs.specific_path == matrix.svc_prefix) | ||
- name: ecr login | ||
id: login_ecr | ||
uses: aws-actions/amazon-ecr-login@f8672cc4c5410eabbb9df3d9bb4c7ad01fc4cc3e # [email protected] | ||
with: | ||
registries: 311462405659 | ||
if: | | ||
inputs.push_to_ecr == 'true' && | ||
(inputs.specific_path == 'all' || inputs.specific_path == matrix.svc_prefix) | ||
- name: docker integration and acceptance tests | ||
env: | ||
SVC_PREFIX: ${{ matrix.svc_prefix }} | ||
ECR_REGISTRY: ${{ steps.login_ecr.outputs.registry }} | ||
run: | | ||
if [[ "${SVC_PREFIX}" = "api" ]]; then | ||
docker run -d --rm --name lpa-codes-pact-mock pactfoundation/pact-cli:latest mock-service -p "80" --host "0.0.0.0" \ | ||
|
@@ -167,15 +157,10 @@ jobs: | |
--pact-dir /tmp/pacts --consumer use_a_lasting_power_of_attorney --provider api-gateway | ||
docker run -d --rm --name iap-images-mock pactfoundation/pact-cli:latest mock-service -p "80" --host "0.0.0.0" \ | ||
--pact-dir /tmp/pacts --consumer use_a_lasting_power_of_attorney --provider iap-api-gateway | ||
docker run -d --rm --name mock-one-login $ECR_REGISTRY/use_an_lpa/mock_onelogin_app | ||
export DOCKER_REMOTE_LPA_PACT_IP="$(docker inspect --format='{{.NetworkSettings.IPAddress}}' lpa-codes-pact-mock)" | ||
export DOCKER_REMOTE_API_PACT_IP="$(docker inspect --format='{{.NetworkSettings.IPAddress}}' api-gateway-pact-mock)" | ||
export DOCKER_REMOTE_IAP_PACT_IP="$(docker inspect --format='{{.NetworkSettings.IPAddress}}' iap-images-mock)" | ||
export DOCKER_REMOTE_MOCK_ONELOGIN_IP="$(docker inspect --format='{{.NetworkSettings.IPAddress}}' mock-one-login)" | ||
curl -XGET $DOCKER_REMOTE_MOCK_ONELOGIN_IP:8080/token | ||
docker logs mock-one-login | ||
docker run -d --name behattests \ | ||
--add-host lpa-codes-pact-mock:$DOCKER_REMOTE_LPA_PACT_IP \ | ||
|
@@ -189,7 +174,6 @@ jobs: | |
docker stop lpa-codes-pact-mock | ||
docker stop api-gateway-pact-mock | ||
docker stop iap-images-mock | ||
docker stop mock-one-login | ||
elif [[ "${SVC_PREFIX}" = "front" ]]; then | ||
docker run -d --name behattests front-app:latest | ||
|
@@ -272,6 +256,15 @@ jobs: | |
with: | ||
sarif_file: 'trivy-results.sarif' | ||
|
||
- name: ecr login | ||
id: login_ecr | ||
uses: aws-actions/amazon-ecr-login@f8672cc4c5410eabbb9df3d9bb4c7ad01fc4cc3e # [email protected] | ||
with: | ||
registries: 311462405659 | ||
if: | | ||
inputs.push_to_ecr == 'true' && | ||
(inputs.specific_path == 'all' || inputs.specific_path == matrix.svc_prefix) | ||
- name: tag and push container | ||
env: | ||
ECR_REGISTRY: ${{ steps.login_ecr.outputs.registry }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters