Skip to content

Commit

Permalink
test, manifest: test push retry
Browse files Browse the repository at this point in the history
Test: containers/common#1666

Signed-off-by: Aditya R <[email protected]>
  • Loading branch information
flouthoc committed Oct 3, 2023
1 parent 1ebd223 commit b576b79
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/e2e/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,18 @@ RUN touch /file
Expect(output).To(ContainSubstring("Storing list signatures"))
})

It("push must retry", func() {
SkipIfRemote("warning is not relayed in remote setup")
session := podmanTest.Podman([]string{"manifest", "create", "foo", imageList})
session.WaitWithDefaultTimeout()
Expect(session).Should(ExitCleanly())

push := podmanTest.Podman([]string{"manifest", "push", "--all", "--tls-verify=false", "--remove-signatures", "foo", "localhost:7000/bogus"})
push.WaitWithDefaultTimeout()
Expect(push).Should(Exit(125))
Expect(push.ErrorToString()).To(MatchRegexp("Copying blob.*Failed, retrying in 1s \\.\\.\\. \\(1/3\\).*Copying blob.*Failed, retrying in 2s"))
})

It("authenticated push", func() {
registryOptions := &podmanRegistry.Options{
PodmanPath: podmanTest.PodmanBinary,
Expand Down

0 comments on commit b576b79

Please sign in to comment.