From 368a4adc7538a64b1d46ed745557083ef66822c2 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Mon, 12 Jun 2023 10:57:08 -0400 Subject: [PATCH] fix test --- .../net/web/http/api/v2/DiscoveryRegistrationHandlerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/io/cryostat/net/web/http/api/v2/DiscoveryRegistrationHandlerTest.java b/src/test/java/io/cryostat/net/web/http/api/v2/DiscoveryRegistrationHandlerTest.java index eb942f4a42..efc977c4f3 100644 --- a/src/test/java/io/cryostat/net/web/http/api/v2/DiscoveryRegistrationHandlerTest.java +++ b/src/test/java/io/cryostat/net/web/http/api/v2/DiscoveryRegistrationHandlerTest.java @@ -194,7 +194,8 @@ void shouldRegisterWithStorageAndSendResponse() throws Exception { resp.getHeaders(), Matchers.equalTo(Map.of(HttpHeaders.LOCATION, "/api/v2.2/discovery/" + id))); MatcherAssert.assertThat( - resp.getBody(), Matchers.equalTo(Map.of("token", token, "id", id.toString()))); + resp.getBody(), + Matchers.equalTo(Map.of("token", token, "id", id.toString(), "env", Map.of()))); Mockito.verify(storage) .register(