Skip to content

Commit

Permalink
Update pkg/metrics/observers/contour_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sanskar Jaiswal <[email protected]>
  • Loading branch information
BrandonCate and aryan9600 authored Jun 6, 2022
1 parent d2623bc commit b22c1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metrics/observers/contour_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestContourObserver_GetRequestSuccessRate(t *testing.T) {
assert.Equal(t, float64(100), val)
}

func TestContourObserver_GetRequestSuccessRate_Service(t *testing.T) {
func TestContourObserver_CustomService_GetRequestSuccessRate(t *testing.T) {
expected := ` sum( rate( envoy_cluster_upstream_rq{ envoy_cluster_name=~"default_podinfo-service-canary_[0-9a-zA-Z-]+", envoy_response_code!~"5.*" }[1m] ) ) / sum( rate( envoy_cluster_upstream_rq{ envoy_cluster_name=~"default_podinfo-service-canary_[0-9a-zA-Z-]+", }[1m] ) ) * 100`

ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit b22c1c2

Please sign in to comment.