Skip to content

Commit

Permalink
Merge pull request #35 from helios/disable_metrics_tests
Browse files Browse the repository at this point in the history
disable metrics tests
  • Loading branch information
nozik authored Sep 12, 2022
2 parents 50c978f + 77e3202 commit 10b4ce6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
package io.opentelemetry.smoketest

import io.opentelemetry.testing.internal.armeria.client.WebClient
import spock.lang.Ignore

import java.time.Duration
import spock.lang.IgnoreIf

Expand Down Expand Up @@ -33,6 +35,7 @@ class PrometheusSmokeTest extends SmokeTest {
return [PROMETHEUS_PORT]
}

@Ignore // We've disabled the metrics provider
def "Should export metrics"(int jdk) {
setup:
startTarget(jdk)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ class SpringBootSmokeTest extends SmokeTest {
.collect(toSet())
loggedTraceIds == spanTraceIds

then: "JVM metrics are exported"
def metrics = new MetricsInspector(waitForMetrics())
metrics.hasMetricsNamed("process.runtime.jvm.memory.init")
metrics.hasMetricsNamed("process.runtime.jvm.memory.usage")
metrics.hasMetricsNamed("process.runtime.jvm.memory.committed")
metrics.hasMetricsNamed("process.runtime.jvm.memory.limit")
// then: "JVM metrics are exported"
// def metrics = new MetricsInspector(waitForMetrics())
// metrics.hasMetricsNamed("process.runtime.jvm.memory.init")
// metrics.hasMetricsNamed("process.runtime.jvm.memory.usage")
// metrics.hasMetricsNamed("process.runtime.jvm.memory.committed")
// metrics.hasMetricsNamed("process.runtime.jvm.memory.limit")

cleanup:
stopTarget()
Expand Down

0 comments on commit 10b4ce6

Please sign in to comment.