From 9265a0e9ca9c47450edae3fe35768bdbbe042bd4 Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sat, 13 Dec 2025 02:17:46 +0800 Subject: [PATCH] Debug: wtf --- tests/03_putImageAliases_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/03_putImageAliases_test.go b/tests/03_putImageAliases_test.go index d349a12..bcf00b5 100644 --- a/tests/03_putImageAliases_test.go +++ b/tests/03_putImageAliases_test.go @@ -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") } }