-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into dependabot/gradle/develop/org.flywaydb.fl…
…yway-10.2.0
- Loading branch information
Showing
66 changed files
with
994 additions
and
254 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
**/integrationTest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
workflow_call: | ||
|
||
env: | ||
COMPOSE_PROFILES: 'bip' | ||
COMPOSE_PROFILES: 'bip,bgs' | ||
VRO_DEV_SECRETS_FOLDER: "${{ github.workspace }}/.cache/abd-vro-dev-secrets" | ||
|
||
jobs: | ||
|
@@ -62,18 +62,6 @@ jobs: | |
# Quit after 60 seconds | ||
retries: 30 | ||
|
||
# Temporary step added to avoid condition where bipApiExchange is not yet created. | ||
- name: 'Create bipApiExchange exchange' | ||
uses: indiesdev/[email protected] | ||
with: | ||
url: 'http://localhost:15672/api/exchanges/%2f/bipApiExchange' | ||
method: 'PUT' | ||
basic-auth-token: '${{env.RABBITMQ_BASIC_AUTH}}' | ||
body: '{"type":"direct", "durable":true, "auto_delete":true}' | ||
accept: 201, 204 | ||
retries: 3 | ||
log-response: true | ||
|
||
- name: "Run Employee Experience Integration Tests" | ||
run: | | ||
./gradlew :domain-ee:ee-ep-merge-app:integrationTest | ||
|
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 |
---|---|---|
|
@@ -9,12 +9,16 @@ on: | |
|
||
env: | ||
COMPOSE_PROFILES: 'bgs' | ||
CORRELATION_ID: '1234' | ||
|
||
jobs: | ||
integration-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Setup Ruby' | ||
uses: ruby/[email protected] | ||
with: | ||
ruby-version: '3.2.2' | ||
|
||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -58,76 +62,12 @@ jobs: | |
retries: 30 | ||
|
||
- name: 'Check for healthy BGS container' | ||
run: timeout 180s sh -c 'until docker ps | grep ".*svc-bgs-api.*" | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done' | ||
|
||
- name: 'Create add-note-response queue' | ||
uses: indiesdev/[email protected] | ||
with: | ||
url: 'http://localhost:15672/api/queues/%2f/add-note-response' | ||
method: 'PUT' | ||
basic-auth-token: '${{env.RABBITMQ_BASIC_AUTH}}' | ||
body: '{"durable":true, "auto_delete":true}' | ||
accept: 201, 204 | ||
retries: 3 | ||
log-response: true | ||
|
||
- name: 'Create binding for add-note-response queue to bgs-api exchange' | ||
uses: indiesdev/[email protected] | ||
with: | ||
url: 'http://localhost:15672/api/bindings/%2f/e/bgs-api/q/add-note-response' | ||
method: 'POST' | ||
basic-auth-token: '${{env.RABBITMQ_BASIC_AUTH}}' | ||
body: '{"routing_key":"add-note-response","arguments":{}}' | ||
accept: 201, 204 | ||
retries: 3 | ||
log-response: true | ||
|
||
- name: 'Send message to RabbitMQ on bgs-api exchange routed to add-note queue' | ||
uses: indiesdev/[email protected] | ||
with: | ||
url: 'http://localhost:15672/api/exchanges/%2F/bgs-api/publish' | ||
method: 'POST' | ||
basic-auth-token: '${{env.RABBITMQ_BASIC_AUTH}}' | ||
body: '{"properties": {"delivery_mode": 1,"reply_to": "add-note-response","correlation_id": "${{env.CORRELATION_ID}}"},"routing_key": "add-note","payload": "{\\\"veteranNote\\\":\\\"test\\\",\\\"veteranParticipantId\\\":111}","payload_encoding": "string"}' | ||
accept: 200 | ||
retries: 3 | ||
log-response: true | ||
|
||
- name: 'Sleep to give svc-bgs-api time to process and put response in add-note-response queue' | ||
run: sleep 5 | ||
shell: bash | ||
|
||
- name: 'Get message from RabbitMQ add-note-response queue' | ||
id: 'addNoteResponse' | ||
uses: indiesdev/[email protected] | ||
with: | ||
url: 'http://localhost:15672/api/queues/%2f/add-note-response/get' | ||
method: 'POST' | ||
basic-auth-token: '${{env.RABBITMQ_BASIC_AUTH}}' | ||
headers: '{"accept":"application/json","content-type":"application/json"}' | ||
body: '{"count":1,"ackmode":"ack_requeue_true","encoding":"auto"}' | ||
accept: 200 | ||
retries: 3 | ||
log-response: true | ||
run: timeout 60s sh -c 'until docker ps | grep ".*svc-bgs-api.*" | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done' | ||
|
||
# Validate response Tests | ||
- name: 'Validate response in payload of message from RabbitMQ add-note-response queue' | ||
- name: 'Run integration tests' | ||
run: | | ||
# Validate Response: | ||
CHECKS_FAILED=false | ||
echo "Checking correlation_id..." | ||
echo "correlation_id: ${{ fromJson(steps.addNoteResponse.outputs.response).data[0].properties.correlation_id }}" | ||
if [ "${{ fromJson(steps.addNoteResponse.outputs.response).data[0].properties.correlation_id }}" != "${{env.CORRELATION_ID}}" ]; then | ||
echo "Unexpected correlation_id: Expected ${{env.CORRELATION_ID}}. Found ${{ fromJson(steps.addNoteResponse.outputs.response).data[0].properties.correlation_id }}" | ||
CHECKS_FAILED=true | ||
fi | ||
echo "Skip checking payload until bgs-api is connected..." | ||
if $CHECKS_FAILED; then | ||
echo "Some checks failed." | ||
exit 10 | ||
fi | ||
./gradlew :svc-bgs-api:bundleInstall | ||
./gradlew :svc-bgs-api:integrationTest | ||
- name: 'Clean shutdown of all containers' | ||
if: always() | ||
|
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
15 changes: 15 additions & 0 deletions
15
.../main/resources/database/migrations/V1.4__BIE_Contention_Event_Add_additional_Columns.sql
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ALTER TABLE "bie_contention_event" | ||
ADD COLUMN "date_added" TIMESTAMP, | ||
ADD COLUMN "date_completed" TIMESTAMP, | ||
ADD COLUMN "date_updated" TIMESTAMP, | ||
ADD COLUMN "actor_station" VARCHAR(255), | ||
ADD COLUMN "automation_indicator" boolean, | ||
ADD COLUMN "benefit_claim_type_code" VARCHAR(255), | ||
ADD COLUMN "contention_status_type_code" VARCHAR(255), | ||
ADD COLUMN "current_lifecycle_status" VARCHAR(255), | ||
ADD COLUMN "clmnt_txt" VARCHAR(255), | ||
ADD COLUMN "details" VARCHAR(255), | ||
ADD COLUMN "event_time" TIMESTAMP, | ||
ADD COLUMN "journal_status_type_code" VARCHAR(255), | ||
ADD COLUMN "veteran_participant_id" VARCHAR(255), | ||
ADD COLUMN "event_details" JSON; |
Oops, something went wrong.