diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 34d9451c..13491631 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,10 +19,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Gradle cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.gradle/caches diff --git a/src/test/java/com/datastax/fallout/components/metrics/MetricsCollectionConfigurationManagerTest.java b/src/test/java/com/datastax/fallout/components/metrics/MetricsCollectionConfigurationManagerTest.java index 587b1abf..e989120e 100644 --- a/src/test/java/com/datastax/fallout/components/metrics/MetricsCollectionConfigurationManagerTest.java +++ b/src/test/java/com/datastax/fallout/components/metrics/MetricsCollectionConfigurationManagerTest.java @@ -28,7 +28,6 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.datastax.fallout.ops.NodeGroup; import com.datastax.fallout.util.ResourceUtils; import static com.datastax.fallout.assertj.Assertions.assertThat; @@ -38,7 +37,6 @@ import static com.github.tomakehurst.wiremock.client.WireMock.get; import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.options; -import static org.mockito.Mockito.mock; class MetricsCollectionConfigurationManagerTest { @@ -92,7 +90,6 @@ public void shouldGetMetricFromHttpEndpoint() throws IOException { MetricsCollectionConfigurationManager metricsCollectionConfigurationManager = new MetricsCollectionConfigurationManager(instantSupplier); - metricsCollectionConfigurationManager.configureImpl(mock(NodeGroup.class)); String jsonResponse = metricsCollectionConfigurationManager.executeGetRequestForJsonContent(metricName, prometheusUrl()); @@ -110,7 +107,6 @@ public void shouldThrowWhenGetNonExistingMetricFromHttpEndpoint() throws IOExcep { MetricsCollectionConfigurationManager metricsCollectionConfigurationManager = new MetricsCollectionConfigurationManager(instantSupplier); - metricsCollectionConfigurationManager.configureImpl(mock(NodeGroup.class)); assertThatThrownBy( () -> metricsCollectionConfigurationManager.executeGetRequestForJsonContent(nonExistingMetricName, @@ -127,7 +123,6 @@ public void shouldCollectMetricsIntoArtifactsDirectoryFromPrometheusAPI() Supplier instantSupplier = nowReference::get; MetricsCollectionConfigurationManager metricsCollectionConfigurationManager = new MetricsCollectionConfigurationManager(instantSupplier); - metricsCollectionConfigurationManager.configureImpl(mock(NodeGroup.class)); String metricName = "metric_a"; Instant end = start.plus(Duration.ofSeconds(100));