Skip to content
Snippets Groups Projects
Commit e37639e9 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

add metrics endpoint to test

parent 103a10fc
No related branches found
No related tags found
1 merge request!221Thesis mk
Pipeline #81517 passed with warnings
...@@ -14,17 +14,23 @@ func Test_httpApi(t *testing.T) { ...@@ -14,17 +14,23 @@ func Test_httpApi(t *testing.T) {
wantErr bool wantErr bool
}{ }{
{ {
name: "liveliness indicator", name: "/livez",
request: apiEndpoint + "/livez", request: apiEndpoint + "/livez",
want: &http.Response{StatusCode: http.StatusOK}, want: &http.Response{StatusCode: http.StatusOK},
wantErr: false, wantErr: false,
}, },
{ {
name: "readyness indicator", name: "/readyz",
request: apiEndpoint + "/readyz", request: apiEndpoint + "/readyz",
want: &http.Response{StatusCode: http.StatusOK}, want: &http.Response{StatusCode: http.StatusOK},
wantErr: false, wantErr: false,
}, },
{
name: "/metrics",
request: apiEndpoint + "/metrics",
want: &http.Response{StatusCode: http.StatusOK},
wantErr: false,
},
} }
coreLock.Lock() coreLock.Lock()
startHttpServer() startHttpServer()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment