Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pkg/e2e/pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ func TestComposePull(t *testing.T) {

t.Run("Verify pull failure", func(t *testing.T) {
res := c.RunDockerComposeCmdNoCheck(t, "--project-directory", "fixtures/compose-pull/unknown-image", "pull")
res.Assert(t, icmd.Expected{ExitCode: 1, Err: "pull access denied for does_not_exists"})
output := res.Combined()

errMsg := "pull access denied for does_not_exists"
if !strings.Contains(output, errMsg) {
// containerd returns:
// failed to resolve reference "docker.io/library/does_not_exists:latest": docker.io/library/does_not_exists:latest: not found
errMsg = "does_not_exists:latest: not found"
}
res.Assert(t, icmd.Expected{ExitCode: 1, Err: errMsg})
})

t.Run("Verify ignore pull failure", func(t *testing.T) {
Expand Down