refactor: Reduce zb binary size (#1783)

Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
Alexei Dodon
2023-09-13 10:28:14 +03:00
committed by GitHub
parent 98ab43f6ef
commit 48bf7f69f8
17 changed files with 243 additions and 152 deletions
+3 -2
View File
@@ -24,6 +24,7 @@ import (
"zotregistry.io/zot/pkg/log"
"zotregistry.io/zot/pkg/storage/local"
"zotregistry.io/zot/pkg/test"
testc "zotregistry.io/zot/pkg/test/common"
)
const (
@@ -257,7 +258,7 @@ func TestVerifyMandatoryAnnotations(t *testing.T) {
resp, err = resty.R().
Post(fmt.Sprintf("%s/v2/zot-test/blobs/uploads/", baseURL))
So(err, ShouldBeNil)
loc := test.Location(baseURL, resp)
loc := testc.Location(baseURL, resp)
_, err = resty.R().
SetContentLength(true).
@@ -344,7 +345,7 @@ func TestVerifyMandatoryAnnotations(t *testing.T) {
_, err = resty.R().
Post(fmt.Sprintf("%s/v2/zot-test/blobs/uploads/", baseURL))
So(err, ShouldBeNil)
loc := test.Location(baseURL, resp)
loc := testc.Location(baseURL, resp)
_, err = resty.R().
SetContentLength(true).