mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-07 05:24:54 +08:00
* 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
19 lines
435 B
Go
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)
|
|
})
|
|
}
|