Merge branch 'hapi-master' into feat/remote-terminology-support
This commit is contained in:
31
.github/workflows/smoke-tests.yml
vendored
31
.github/workflows/smoke-tests.yml
vendored
@@ -22,20 +22,49 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout project
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: zulu
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml -Dmaven.test.skip=true
|
||||
|
||||
- name: Docker Pull HTTP client
|
||||
run: docker pull jetbrains/intellij-http-client
|
||||
|
||||
- name: Start server with jetty
|
||||
run: |
|
||||
mvn -P jetty spring-boot:run & export JPA_PROCESS=$!
|
||||
mkdir -p logs
|
||||
mvn -P jetty spring-boot:run | tee logs/server.log &
|
||||
sleep 80
|
||||
|
||||
- name: Execute smoke tests
|
||||
run: docker run --rm -v $PWD:/workdir --add-host host.docker.internal:host-gateway jetbrains/intellij-http-client -D src/test/smoketest/plain_server.http --env-file src/test/smoketest/http-client.env.json --env default
|
||||
|
||||
- name: Show last server logs
|
||||
if: always()
|
||||
run: |
|
||||
echo "===== Last 200 Lines of Server Log ====="
|
||||
tail -n 200 logs/server.log || true
|
||||
|
||||
- name: Highlight server errors
|
||||
if: always()
|
||||
run: |
|
||||
echo "===== Highlighted Server Errors ====="
|
||||
if grep 'ERROR' logs/server.log > /dev/null; then
|
||||
grep 'ERROR' logs/server.log | while read -r line; do
|
||||
echo "::error::${line}"
|
||||
done
|
||||
else
|
||||
echo "No errors found in server logs."
|
||||
fi
|
||||
|
||||
- name: Upload server logs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: server-logs
|
||||
path: logs/server.log
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
||||
|
||||
<properties>
|
||||
<java.version>17</java.version>
|
||||
<hapi.fhir.jpa.server.starter.revision>1</hapi.fhir.jpa.server.starter.revision>
|
||||
<hapi.fhir.jpa.server.starter.revision>2</hapi.fhir.jpa.server.starter.revision>
|
||||
<clinical-reasoning.version>3.20.0</clinical-reasoning.version>
|
||||
</properties>
|
||||
|
||||
|
||||
@@ -865,7 +865,7 @@ public class AppProperties {
|
||||
private Boolean database_partition_mode_enabled = false;
|
||||
private Boolean patient_id_partitioning_mode = false;
|
||||
private Integer default_partition_id = 0;
|
||||
private boolean request_tenant_partitioning_mode;
|
||||
private boolean request_tenant_partitioning_mode = true;
|
||||
|
||||
public boolean isRequest_tenant_partitioning_mode() {
|
||||
return request_tenant_partitioning_mode;
|
||||
|
||||
@@ -3,6 +3,9 @@ server:
|
||||
# servlet:
|
||||
# context-path: /example/path
|
||||
port: 8080
|
||||
tomcat:
|
||||
# allow | as a separator in the URL
|
||||
relaxed-query-chars: "|"
|
||||
#Adds the option to go to eg. http://localhost:8080/actuator/health for seeing the running configuration
|
||||
#see https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints
|
||||
management:
|
||||
@@ -237,6 +240,7 @@ hapi:
|
||||
# allow_references_across_partitions: false
|
||||
# partitioning_include_in_search_hashes: false
|
||||
# conditional_create_duplicate_identifiers_enabled: false
|
||||
# request_tenant_partitioning_mode: true
|
||||
cors:
|
||||
allow_Credentials: true
|
||||
# These are allowed_origin patterns, see: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/cors/CorsConfiguration.html#setAllowedOriginPatterns-java.util.List-
|
||||
|
||||
Reference in New Issue
Block a user