Files
poseidon/tests/e2e/health_test.go
2021-06-02 14:54:54 +02:00

17 lines
434 B
Go

package e2e
import (
"github.com/stretchr/testify/assert"
"gitlab.hpi.de/codeocean/codemoon/poseidon/api"
"gitlab.hpi.de/codeocean/codemoon/poseidon/tests/helpers"
"net/http"
"testing"
)
func TestHealthRoute(t *testing.T) {
resp, err := http.Get(helpers.BuildURL(api.BasePath, api.HealthPath))
if assert.NoError(t, err) {
assert.Equal(t, http.StatusNoContent, resp.StatusCode, "The response code should be NoContent")
}
}