Skip to content

Commit

Permalink
Fix unworking test
Browse files Browse the repository at this point in the history
  • Loading branch information
faderskd committed Aug 29, 2023
1 parent 692f173 commit 7b3179a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -287,7 +285,6 @@ public void shouldTimeoutUnhealthySubscriptionsRequest() {

}


@Test
public void shouldReportSuspendedSubscriptionAsHealthy() {
// given
Expand Down Expand Up @@ -342,14 +339,8 @@ private List<UnhealthySubscription> listAllUnhealthySubscriptions(List<String> s
return listUnhealthy(null, null, true, subscriptionNames, qualifiedTopicNames);
}

Logger logger = LoggerFactory.getLogger(ListUnhealthySubscriptionsForOwnerBasedOnGraphiteTest.class);

private List<UnhealthySubscription> listUnhealthy(String ownerSourceName, String ownerId, boolean respectMonitoringSeverity,
List<String> subscriptionNames, List<String> 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<>() {
Expand Down
1 change: 1 addition & 0 deletions integration/src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ graphite:
client:
enabled: false
cacheTtlSeconds: 1
externalMonitoringUrl: http://localhost:18089/

prometheus:
client:
Expand Down

0 comments on commit 7b3179a

Please sign in to comment.