diff --git a/integration/docker_test.go b/integration/docker_test.go index b8dc930..e1b1af9 100644 --- a/integration/docker_test.go +++ b/integration/docker_test.go @@ -127,31 +127,31 @@ func TestDockerUpload(t *testing.T) { }{ { name: "Should succeed - single image bundle", - fields: fields{path: singleImageBundle, destination: "yehudac.jfrog.io/example"}, + fields: fields{path: singleImageBundle, destination: "registry.gitlab.com/iyehuda/bring"}, wantErr: false, wantHelpMessage: false, }, { name: "Should succeed - multiple images", - fields: fields{path: multipleImageBundle, destination: "yehudac.jfrog.io/example"}, + fields: fields{path: multipleImageBundle, destination: "registry.gitlab.com/iyehuda/bring"}, wantErr: false, wantHelpMessage: false, }, { name: "Should succeed - single image, target subpath", - fields: fields{path: singleImageBundle, destination: "yehudac.jfrog.io/example/subpath"}, + fields: fields{path: singleImageBundle, destination: "registry.gitlab.com/iyehuda/bring/subpath"}, wantErr: false, wantHelpMessage: false, }, { name: "Should succeed - multiple images, target subpath", - fields: fields{path: multipleImageBundle, destination: "yehudac.jfrog.io/example/subpath"}, + fields: fields{path: multipleImageBundle, destination: "registry.gitlab.com/iyehuda/bring/subpath"}, wantErr: false, wantHelpMessage: false, }, { name: "Should fail - no input file path given", - fields: fields{destination: "yehudac.jfrog.io/example"}, + fields: fields{destination: "registry.gitlab.com/iyehuda/bring"}, wantErr: true, wantHelpMessage: true, }, @@ -163,13 +163,13 @@ func TestDockerUpload(t *testing.T) { }, { name: "Should fail - invalid input file", - fields: fields{path: invalidImageBundle, destination: "yehudac.jfrog.io/example"}, + fields: fields{path: invalidImageBundle, destination: "registry.gitlab.com/iyehuda/bring"}, wantErr: true, wantHelpMessage: false, }, { name: "Should fail - input file not found", - fields: fields{path: nonexistentImageBundle, destination: "yehudac.jfrog.io/example"}, + fields: fields{path: nonexistentImageBundle, destination: "registry.gitlab.com/iyehuda/bring"}, wantErr: true, wantHelpMessage: false, }, @@ -181,7 +181,7 @@ func TestDockerUpload(t *testing.T) { }, { name: "Should fail - registry path not found", - fields: fields{path: singleImageBundle, destination: "yehudac.jfrog.io/restricted"}, + fields: fields{path: singleImageBundle, destination: "registry.gitlab.com/iyehuda/not-exists"}, wantErr: true, wantHelpMessage: false, }, diff --git a/pkg/testutils/commands.go b/pkg/testutils/commands.go index f38ee21..f5909bd 100644 --- a/pkg/testutils/commands.go +++ b/pkg/testutils/commands.go @@ -32,6 +32,6 @@ type FakeCommandRunner struct { } // Run runs a command with a predefined error. -func (r *FakeCommandRunner) Run(cmd *exec.Cmd) error { +func (r *FakeCommandRunner) Run(_ *exec.Cmd) error { return r.Err }