From 03bf728f82c6f59f4602a8b3351ad91b612b426f Mon Sep 17 00:00:00 2001 From: Thomas Papke Date: Tue, 3 Oct 2023 16:24:57 +0200 Subject: [PATCH] Disable HTTP Keepalive in certain tests * Producer side use http keepalive which cause issues in some cases of quick restarts of the http server component --- .../ipf/platform/camel/ihe/fhir/chppqm/chppq3/ChPpq3Test.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform-camel/ihe/fhir/r4/chppqm/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/chppqm/chppq3/ChPpq3Test.java b/platform-camel/ihe/fhir/r4/chppqm/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/chppqm/chppq3/ChPpq3Test.java index c0e534d729..472af9f226 100644 --- a/platform-camel/ihe/fhir/r4/chppqm/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/chppqm/chppq3/ChPpq3Test.java +++ b/platform-camel/ihe/fhir/r4/chppqm/src/test/java/org/openehealth/ipf/platform/camel/ihe/fhir/chppqm/chppq3/ChPpq3Test.java @@ -71,7 +71,8 @@ private Exchange send(Object request, String httpMethod) throws Exception { exchange.getMessage().setHeader(Constants.HTTP_METHOD, httpMethod); exchange.getMessage().setHeader(Constants.HTTP_OUTGOING_HEADERS, Map.of( "Authorization", List.of("Bearer d2h5IGFyZSB5b3UgcmVhZGluZyB0aGlzPw=="), - "Header2", List.of("Value1", "Value2", "Value3") + "Header2", List.of("Value1", "Value2", "Value3"), + "Connection", List.of("close") )); exchange = producerTemplate.send("ch-ppq3://localhost:" + DEMO_APP_PORT, exchange); Exception exception = Exchanges.extractException(exchange);