Fix: rotate access token and add test
This commit is contained in:
15
tests/02_getAliases_test.go
Normal file
15
tests/02_getAliases_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_02_GetImages(t *testing.T) {
|
||||
resp, err := client.R().
|
||||
Get("http://localhost:8080/api/aliases")
|
||||
if err != nil || resp.StatusCode() != http.StatusOK {
|
||||
t.Logf("%+v", resp)
|
||||
t.Fatal("failed to fetch aliases")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user