shiori/e2e/server/basic_test.go
Felipe Martin 8c35a6ba2f
test: add basic e2e tests (#816)
* basic e2e test

* e2e ci

* test typo

* rm go.work

* refactor things a bit

* use current context for docker image

* rm coverage.txt

* ignore all coverage files

* use package

* unused const

* simplify dockeringnore

* made basic e2e test with cwd code

* comments in compose files

* fix go version file in e2e ci

* experimental podman support

* fixed ALPINE_VERSION arg source
2024-10-12 13:24:56 +02:00

19 lines
435 B
Go

package e2e
import (
"net/http"
"testing"
"github.com/go-shiori/shiori/e2e/e2eutil"
"github.com/stretchr/testify/require"
)
func TestServerBasic(t *testing.T) {
container := e2eutil.NewShioriContainer(t, "")
t.Run("liveness endpoint", func(t *testing.T) {
req, err := http.Get("http://localhost:" + container.GetPort() + "/system/liveness")
require.NoError(t, err)
require.Equal(t, http.StatusOK, req.StatusCode)
})
}