Skip to content

Commit

Permalink
Turn sinkFhirServerUrl off by default but on in e2e (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
bashir2 authored May 30, 2024
1 parent c1dd688 commit 2290aa3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ steps:
env:
- PIPELINE_CONFIG=/workspace/docker/config
- DWH_ROOT=/workspace/e2e-tests/controller-spark/dwh
- FHIRDATA_SINKFHIRSERVERURL=http://sink-server:8080/fhir
args: [ '-f', './docker/compose-controller-spark-sql-single.yaml', 'up',
'--force-recreate', '-d' ]

Expand Down
2 changes: 2 additions & 0 deletions docker/compose-controller-spark-sql-single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ services:
- ${DWH_ROOT}:/dwh
environment:
- JAVA_OPTS=$JAVA_OPTS
# This is to turn this on in e2e but leave it off in the default config.
- FHIRDATA_SINKFHIRSERVERURL=$FHIRDATA_SINKFHIRSERVERURL
ports:
- '8090:8080'
networks:
Expand Down
2 changes: 1 addition & 1 deletion docker/config/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fhirdata:
rowGroupSizeForParquetFiles: 33554432 # 32mb
viewDefinitionsDir: "config/views"
sinkDbConfigPath: "config/hapi-postgres-config_local_views.json"
sinkFhirServerUrl: "http://sink-server:8080/fhir"
#sinkFhirServerUrl: "http://sink-server:8080/fhir"
#sinkUserName: "hapi"
#sinkPassword: "hapi123"
recursiveDepth: 1
Expand Down
5 changes: 3 additions & 2 deletions pipelines/controller/config/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ fhirdata:
# empty string disables this feature.
sinkDbConfigPath: "config/hapi-postgres-config_local_views.json"

# The base URL of the sink FHIR server .if not set ,only a parquet DWH is created
sinkFhirServerUrl: "http://172.17.0.1:8098/fhir"
# The base URL of the sink FHIR server. If not set, the feature for sending
# resources to a sink FHIR server is disabled.
#sinkFhirServerUrl: "http://172.17.0.1:8098/fhir"
# The following user-name/password should be set if the sink FHIR server supports Basic Auth.
#sinkUserName: "hapi"
#sinkPassword: "hapi123"
Expand Down
2 changes: 1 addition & 1 deletion pipelines/streaming/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2020-2023 Google LLC
Copyright 2020-2024 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 2290aa3

Please sign in to comment.