Debug: wtf
Some checks failed
Go test / run-go-vet (push) Successful in 6s
Go test / check-swagger-up-to-date (push) Successful in 9s
Go test / run-go-test (push) Failing after 28s
Go test / release-image (push) Has been skipped
Go test / cleanup-go-test (push) Successful in 3s

This commit is contained in:
2025-12-13 02:17:46 +08:00
parent e6c46f29f5
commit 9265a0e9ca

View File

@@ -3,6 +3,7 @@ package tests
import (
"fmt"
"net/http"
"strconv"
"testing"
)
@@ -17,8 +18,7 @@ func Test_03_PutImageAliases(t *testing.T) {
}
resp, err := client.R().
SetBody(payload).
Put(fmt.Sprintf("http://localhost:8080/api/image/%d/aliases",
image.Id))
Put(fmt.Sprintf("/api/image/%d/aliases", image.Id))
if err != nil || resp.StatusCode() != http.StatusOK {
t.Logf("%+v", resp)
t.Fatal("failed to put image alias")
@@ -61,6 +61,11 @@ func Test_03_PutImageAliases(t *testing.T) {
for _, alias := range aliases {
if alias.Name == "testalias2" {
t.Logf("%+v", resp)
resp, _ = client.R().
SetQueryParam("aliases",
strconv.FormatInt(alias.Id, 10)).
Get("/api/images")
t.Logf("%+v", resp)
t.Fatal("alias should be deleted")
}
}