mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape/discovery/kubernetes: fix tests after e154f4a644
This commit is contained in:
parent
d109e17f46
commit
bae7a1b47a
1 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ func TestGetAPIPaths(t *testing.T) {
|
|||
})
|
||||
|
||||
// role=ingress
|
||||
f("ingress", nil, nil, []string{"/api/v1/ingresses"})
|
||||
f("ingress", nil, nil, []string{"/apis/networking.k8s.io/v1beta1/ingresses"})
|
||||
f("ingress", []string{"x", "y"}, []Selector{
|
||||
{
|
||||
Role: "node",
|
||||
|
@ -156,7 +156,7 @@ func TestGetAPIPaths(t *testing.T) {
|
|||
Label: "baaa",
|
||||
},
|
||||
}, []string{
|
||||
"/api/v1/namespaces/x/ingresses?labelSelector=cde%2Cbaaa&fieldSelector=abc",
|
||||
"/api/v1/namespaces/y/ingresses?labelSelector=cde%2Cbaaa&fieldSelector=abc",
|
||||
"/apis/networking.k8s.io/v1beta1/namespaces/x/ingresses?labelSelector=cde%2Cbaaa&fieldSelector=abc",
|
||||
"/apis/networking.k8s.io/v1beta1/namespaces/y/ingresses?labelSelector=cde%2Cbaaa&fieldSelector=abc",
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue