feat(test): added image builder for use in tests (#1583)

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
LaurentiuNiculae
2023-07-26 13:08:04 +03:00
committed by GitHub
parent 4194489868
commit abba6aa3cf
17 changed files with 1421 additions and 423 deletions
+3 -8
View File
@@ -2121,15 +2121,10 @@ func TestGroupsPermissionsForLDAP(t *testing.T) {
cm.StartAndWait(port)
defer cm.StopServer()
cfg, layers, manifest, err := test.GetImageComponents(10000)
So(err, ShouldBeNil)
img := test.CreateDefaultImage()
err = test.UploadImageWithBasicAuth(
test.Image{
Config: cfg,
Layers: layers,
Manifest: manifest,
}, baseURL, repo,
err = test.UploadImageWithBasicAuthRef(
img, baseURL, repo, img.DigestStr(),
username, passphrase)
So(err, ShouldBeNil)