Skip to content

Commit

Permalink
#601 Added track_remaining setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Mar 19, 2024
1 parent 880d412 commit 683458e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ internal class ClusterCircuitBreakerDefaultSettingsTest {
// when
val maxRequestsSetting = envoy.container.admin().circuitBreakerSetting("echo", "max_requests", "default_priority")
val maxRetriesSetting = envoy.container.admin().circuitBreakerSetting("echo", "max_retries", "high_priority")
val remainingSetting = envoy.container.admin().statValue("cluster.echo.circuit_breakers.default.remaining_pending")
val remainingPendingMetric = envoy.container.admin().statValue("cluster.echo.circuit_breakers.default.remaining_pending")
val remainingRqMetric = envoy.container.admin().statValue("cluster.echo.circuit_breakers.default.remaining_rq")

// then
assertThat(maxRequestsSetting).isEqualTo(3)
assertThat(maxRetriesSetting).isEqualTo(8)
assertThat(remainingSetting).isNotNull()
assertThat(remainingPendingMetric).isNotNull()
assertThat(remainingRqMetric).isNotNull()
}
}

0 comments on commit 683458e

Please sign in to comment.