Skip to content

Commit 22de94b

Browse files
committedMar 23, 2025··
Fix invalid tests on ingress-nginx plugin
Signed-off-by: Xabier Larrakoetxea <me@slok.dev>
1 parent b84069c commit 22de94b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎plugins/kubernetes/nginx-ingress/availability/plugin_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/stretchr/testify/assert"
88

9-
"github.com/slok/sloth-common-sli-plugins/plugins/kubernetes/apiserver/availability"
9+
"github.com/slok/sloth-common-sli-plugins/plugins/kubernetes/nginx-ingress/availability"
1010
)
1111

1212
func TestSLIPlugin(t *testing.T) {
@@ -43,7 +43,7 @@ func TestSLIPlugin(t *testing.T) {
4343

4444
"Having a filter with `{}` and `,` should return the query with the filters.": {
4545
options: map[string]string{"filter": `{k1="v2",k2="v2",}`},
46-
expQuery: "\nsum(rate(nginx_ingress_controller_requests{ k1=\"v2\",k2=\"v2\",status=~\"(5..|429)\" }[{{.window}}]))\n/\nsum(rate(nginx_ingress_controller_requests{ k1=\"v2\",k2=\"v2\" }[{{.window}}])\nor on() vector(0)\n",
46+
expQuery: "\nsum(rate(nginx_ingress_controller_requests{ k1=\"v2\",k2=\"v2\",status=~\"(5..|429)\" }[{{.window}}]))\n/\nsum(rate(nginx_ingress_controller_requests{ k1=\"v2\",k2=\"v2\" }[{{.window}}]))\nor on() vector(0)\n",
4747
},
4848
}
4949

0 commit comments

Comments
 (0)
Please sign in to comment.