mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix Scaleway test
The upgraded client adds order=creation_date_desc to the query parameters causing the tests to fail. Instead of checking the full URI, just check that the path is correct. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
This commit is contained in:
parent
b80ef363fa
commit
3e0a0a5d59
|
@ -122,7 +122,7 @@ func mockScalewayInstance(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Error(w, "bad token id", http.StatusUnauthorized)
|
http.Error(w, "bad token id", http.StatusUnauthorized)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if r.RequestURI != "/instance/v1/zones/fr-par-1/servers?page=1" {
|
if r.URL.Path != "/instance/v1/zones/fr-par-1/servers" {
|
||||||
http.Error(w, "bad url", http.StatusNotFound)
|
http.Error(w, "bad url", http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue