From 92683f6f806e6dfe727034bf8c710f4c2c9f9d58 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 f3d63f5a34..2957a9035b 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 @@ -216,7 +216,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(