mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Sharing: ACL authorization for REST API #18
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
func TestGetStatus(t *testing.T) {
|
||||
t.Run("successful request", func(t *testing.T) {
|
||||
app, router, conf := NewApiTest()
|
||||
GetStatus(router, conf)
|
||||
app, router, _ := NewApiTest()
|
||||
GetStatus(router)
|
||||
r := PerformRequest(app, "GET", "/api/v1/status")
|
||||
val := gjson.Get(r.Body.String(), "status")
|
||||
assert.Equal(t, "operational", val.String())
|
||||
|
||||
Reference in New Issue
Block a user