Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Jan 5, 2025
1 parent c686982 commit 98b9f74
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,6 @@ steps:
'-c', 'CREATE DATABASE views;']
waitFor: ['Turn down FHIR Sink Server Search']

- name: 'docker/compose'
id: 'Launch HAPI FHIR Sink Server Controller'
args: [ '-f', './docker/sink-compose.yml', '-p', 'sink-server-controller', 'up','--force-recreate', '-d' ]
env:
- SINK_SERVER_NAME=sink-server-controller
- SINK_SERVER_PORT=9001
waitFor: ['Create views database']

- name: 'docker/compose'
id: 'Bring up controller and Spark containers'
env:
Expand Down Expand Up @@ -231,23 +223,14 @@ steps:
args: [ '-f', './docker/compose-controller-spark-sql-single.yaml', 'down' ,'-v']
waitFor: ['Run E2E Test for Dockerized Controller and Spark Thriftserver']

# Resetting Sink FHIR server for FHIR to FHIR sync
- name: 'docker/compose'
id: 'Turn down HAPI FHIR sink-server-controller'
args: [ '-f', './docker/sink-compose.yml', '-p', 'sink-server-controller' ,'down' ,'-v']
id: 'Launch HAPI FHIR Sink Server Controller'
args: [ '-f', './docker/sink-compose.yml', '-p', 'sink-server-controller', 'up','--force-recreate', '-d' ]
env:
- SINK_SERVER_NAME=sink-server-controller
- SINK_SERVER_PORT=9001
waitFor: ['Bring down controller and Spark containers for FHIR server to FHIR server sync']

- name: 'docker/compose'
id: 'Launch HAPI FHIR Sink Server Fhir sync'
args: ['-f', './docker/sink-compose.yml', '-p', 'sink-server-fhir-sync' , 'up' , '--force-recreate', '-d']
env:
- SINK_SERVER_NAME=sink-server-fhir-sync
- SINK_SERVER_PORT=9001
waitFor: ['Turn down HAPI FHIR sink-server-controller']

# Spinning up only the pipeline controller for FHIR server to FHIR server sync
- name: 'docker/compose'
id: 'Bring up the pipeline controller'
Expand All @@ -262,7 +245,7 @@ steps:
- FHIRDATA_SINKDBCONFIGPATH=
args: [ '-f', './docker/compose-controller-spark-sql-single.yaml', 'up',
'--force-recreate', '--no-deps' , '-d' ,'pipeline-controller' ]
waitFor: ['Launch HAPI FHIR Sink Server Fhir sync']
waitFor: ['Launch HAPI FHIR Sink Server Controller']

- name: '${_REPOSITORY}/e2e-tests/controller-spark:${_TAG}'
id: 'Run E2E Test for Dockerized Controller for FHIR server to FHIR server sync'
Expand All @@ -281,10 +264,10 @@ steps:
waitFor: ['Bring down controller']

- name: 'docker/compose'
id: 'Turn down HAPI FHIR Sink Server Fhir sync for e2e tests'
args: [ '-f', './docker/sink-compose.yml', '-p', 'sink-server-fhir-sync', 'down' ,'-v']
id: 'Turn down FHIR Sink Server Controller for e2e tests'
args: [ '-f', './docker/sink-compose.yml', '-p', 'sink-server-controller', 'down' ,'-v']
env:
- SINK_SERVER_NAME=sink-server-fhir-sync
- SINK_SERVER_NAME=sink-server-controller
- SINK_SERVER_PORT=9001
waitFor: ['Turn down HAPI Source Server']

Expand Down Expand Up @@ -379,7 +362,7 @@ steps:
args:
- -c
- 'cd dwh; ./validate_indicators.sh'
waitFor: ['Run E2E Test for JDBC mode with OpenMRS source', 'Turn down HAPI FHIR Sink Server Fhir sync for e2e tests']
waitFor: ['Run E2E Test for JDBC mode with OpenMRS source', 'Turn down FHIR Sink Server Controller for e2e tests'']

- name: 'docker/compose'
id: 'Turn down Webserver and HAPI Server'
Expand Down

0 comments on commit 98b9f74

Please sign in to comment.