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") } }