From 7b3179aef087678efd7ab3bff02b2daddca25b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20F=C4=85derski?= Date: Tue, 29 Aug 2023 16:15:21 +0200 Subject: [PATCH] Fix unworking test --- ...nhealthySubscriptionsForOwnerBasedOnGraphiteTest.java | 9 --------- integration/src/test/resources/application.yaml | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/ListUnhealthySubscriptionsForOwnerBasedOnGraphiteTest.java b/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/ListUnhealthySubscriptionsForOwnerBasedOnGraphiteTest.java index 4b723cc347..477bc48d5e 100644 --- a/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/ListUnhealthySubscriptionsForOwnerBasedOnGraphiteTest.java +++ b/integration/src/integration/java/pl/allegro/tech/hermes/integration/management/ListUnhealthySubscriptionsForOwnerBasedOnGraphiteTest.java @@ -6,8 +6,6 @@ import jakarta.ws.rs.client.ClientBuilder; import jakarta.ws.rs.core.GenericType; import org.javers.common.collections.Lists; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; @@ -287,7 +285,6 @@ public void shouldTimeoutUnhealthySubscriptionsRequest() { } - @Test public void shouldReportSuspendedSubscriptionAsHealthy() { // given @@ -342,14 +339,8 @@ private List listAllUnhealthySubscriptions(List s return listUnhealthy(null, null, true, subscriptionNames, qualifiedTopicNames); } - Logger logger = LoggerFactory.getLogger(ListUnhealthySubscriptionsForOwnerBasedOnGraphiteTest.class); - private List listUnhealthy(String ownerSourceName, String ownerId, boolean respectMonitoringSeverity, List subscriptionNames, List qualifiedTopicNames) { - logger.info("Response -> {}", customManagement.unhealthyEndpoint() - .listUnhealthy(ownerSourceName, ownerId, respectMonitoringSeverity, subscriptionNames, qualifiedTopicNames) - .readEntity(String.class)); - return customManagement.unhealthyEndpoint() .listUnhealthy(ownerSourceName, ownerId, respectMonitoringSeverity, subscriptionNames, qualifiedTopicNames) .readEntity(new GenericType<>() { diff --git a/integration/src/test/resources/application.yaml b/integration/src/test/resources/application.yaml index d474ec7a36..1635892834 100644 --- a/integration/src/test/resources/application.yaml +++ b/integration/src/test/resources/application.yaml @@ -49,6 +49,7 @@ graphite: client: enabled: false cacheTtlSeconds: 1 + externalMonitoringUrl: http://localhost:18089/ prometheus: client: