mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
@@ -2308,6 +2308,13 @@ func TestMetricsMock(t *testing.T) {
|
||||
checkResponseCode(t, http.StatusOK, rr.Code)
|
||||
}
|
||||
|
||||
func TestHealthCheck(t *testing.T) {
|
||||
req, _ := http.NewRequest(http.MethodGet, "/healthz", nil)
|
||||
rr := executeRequest(req)
|
||||
checkResponseCode(t, http.StatusOK, rr.Code)
|
||||
assert.Equal(t, "ok", rr.Body.String())
|
||||
}
|
||||
|
||||
func TestPProfEndPointMock(t *testing.T) {
|
||||
req, _ := http.NewRequest(http.MethodGet, pprofPath, nil)
|
||||
rr := executeRequest(req)
|
||||
|
||||
Reference in New Issue
Block a user