-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add integration tests * remove unneeded comments * Whitelist pyest functions * Add integration_tests to github actions * Add psycopg2 to pipfile * Update pipfile lockfile * Remove unneeded services and move data setup to tests * Update Pipfile * Update whitelist * Update docker-compose file * Update workflow * Remove unused code * use shared conftest.py * Update Makefile Co-authored-by: Adam <[email protected]> --------- Co-authored-by: Hugh Brace <[email protected]> Co-authored-by: Adam <[email protected]>
- Loading branch information
1 parent
d02d07c
commit f0483f1
Showing
15 changed files
with
477 additions
and
64 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: '3.8' | ||
services: | ||
pubsub-emulator-rh-ui-it: | ||
container_name: pubsub-emulator-rh-ui-it | ||
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/gcloud-pubsub-emulator:latest | ||
ports: | ||
- "9538:8538" | ||
|
||
setup-pubsub-emulator-rh-ui-it: | ||
container_name: setup-pubsub-emulator-rh-ui-it | ||
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/gcloud-pubsub-emulator:latest | ||
environment: | ||
- PUBSUB_SETUP_HOST=pubsub-emulator-rh-ui-it:8538 | ||
volumes: | ||
- ./tests/integration/setup_pubsub.sh:/setup_pubsub.sh | ||
depends_on: | ||
- pubsub-emulator-rh-ui-it | ||
entrypoint: sh -c "/setup_pubsub.sh" | ||
|
||
firestore-emulator: | ||
container_name: firestore-emulator-rh-ui-it | ||
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/gcloud-firestore-emulator:latest | ||
ports: | ||
- "9542:8540" | ||
|
||
rh-service: | ||
container_name: rh-service-rh-ui-it | ||
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/ssdc-rh-service:latest | ||
ports: | ||
- "9071:8071" | ||
environment: | ||
- spring.cloud.gcp.pubsub.emulator-host=pubsub-emulator-rh-ui-it:8538 | ||
- spring.cloud.gcp.pubsub.project-id=rh-ui-project | ||
- QUEUECONFIG_SHARED-PUBSUB-PROJECT=rh-ui-project | ||
- firestore.project-id=rh-ui-project | ||
- FIRESTORE_EMULATOR_HOST=firestore-emulator-rh-ui-it:8540 | ||
- GOOGLE_APPLICATION_CREDENTIALS=/gcp/config/google-credentials.json | ||
- GOOGLE_CLOUD_PROJECT=rh-ui-dummy-local | ||
- EQ_RESPONSE-ID-PEPPER=TABASCO_SAUCE | ||
- JWT_KEYS=/home/rh-service/keys/eq-keys.json | ||
- MESSAGELOGGING_LOGSTACKTRACES=true | ||
volumes: | ||
- type: bind | ||
source: ./tests/resources/fake-service-account.json # The spring Firestore client requires google credentials, give it a dummy account locally | ||
target: /gcp/config/google-credentials.json | ||
- ./tests/resources/java_healthcheck:/opt/healthcheck | ||
- ./tests/resources/dummy_keys:/home/rh-service/keys | ||
restart: always | ||
healthcheck: | ||
test: [ "CMD", "java", "-jar", "/opt/healthcheck/HealthCheck.jar", "http://localhost:8071/actuator/health" ] | ||
interval: 5s | ||
timeout: 3s | ||
retries: 20 | ||
start_period: 5s |
Empty file.
Oops, something went wrong.