mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-29 00:59:40 +07:00
18 lines
310 B
Go
18 lines
310 B
Go
package tests
|
|
|
|
import (
|
|
"net/http"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestHealthCheck(t *testing.T) {
|
|
test := NewTest(t)
|
|
res, status, err := test.Fetch("GET", "/health-check", nil)
|
|
|
|
assert.NoError(t, err)
|
|
assert.Equal(t, http.StatusOK, status)
|
|
assert.Equal(t, "OK", res["data"])
|
|
}
|