Skip to content

Commit 2bc880f

Browse files
committed
Tag a known image to create imagestreamtag that works in all CI variants
1 parent a1e3bcb commit 2bc880f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/extended/images/dryrun.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
admissionapi "k8s.io/pod-security-admission/api"
88

99
exutil "github.com/openshift/origin/test/extended/util"
10+
"github.com/openshift/origin/test/extended/util/image"
1011
)
1112

1213
var _ = g.Describe("[sig-imageregistry] Image --dry-run", func() {
@@ -18,7 +19,7 @@ var _ = g.Describe("[sig-imageregistry] Image --dry-run", func() {
1819

1920
g.It("should not delete resources [apigroup:image.openshift.io]", func() {
2021
g.By("preparing the image stream where the test image will be pushed")
21-
_, err := oc.Run("create").Args("imagestreamtag", "test:latest", "--from=tools:latest").Output()
22+
err := oc.Run("tag").Args("--source=docker", image.ShellImage(), "test:latest").Execute()
2223
o.Expect(err).NotTo(o.HaveOccurred())
2324

2425
err = exutil.WaitForAnImageStreamTag(oc, oc.Namespace(), "test", "latest")

0 commit comments

Comments
 (0)