Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into rel_7_8_tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Feb 11, 2025
2 parents 48fd41c + d6359e1 commit 8ef1d46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerR4IT.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -315,10 +316,10 @@ private int activeSubscriptionCount() {

@ParameterizedTest
@ValueSource(strings = {"prometheus", "health", "metrics", "info"})
void testActuatorEndpointExists(String endpoint) throws IOException {
void testActuatorEndpointExists(String endpoint) throws IOException, URISyntaxException {

CloseableHttpClient httpclient = HttpClients.createDefault();
CloseableHttpResponse response = httpclient.execute(new HttpGet("http://localhost:" + port + "/actuator/" + endpoint));
CloseableHttpResponse response = httpclient.execute(new HttpGet(new URI("http", null, "localhost", port, "/actuator/" + endpoint, null, null)));
int statusCode = response.getStatusLine().getStatusCode();
assertEquals(200, statusCode);

Expand Down

0 comments on commit 8ef1d46

Please sign in to comment.