Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
use lowecase for repository name
Browse files Browse the repository at this point in the history
Raised:
Error response from daemon: no such image: pull_expectedSkipBuild:
invalid reference format: repository name must be lowercase

Signed-off-by: GitHub <[email protected]>
  • Loading branch information
satotake authored Jun 21, 2021
1 parent 68a2125 commit d018e65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions local/e2e/compose/compose_dry_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ func TestComposePullDryRun(t *testing.T) {
res := c.RunDockerCmd("compose", "-f", "./fixtures/dry-run-test/pull/compose.yaml", "pull", "--dry-run")
lines := Lines(res.Stdout())
for _, line := range lines {
if strings.Contains(line, "expectedSkip") {
assert.Assert(t, strings.Contains(line, "skip"))
if strings.Contains(line, "expected-skip") {
assert.Assert(t, strings.Contains(line, " skip "))
}
if strings.Contains(line, "expectedFail") {
assert.Assert(t, strings.Contains(line, "fail"))
if strings.Contains(line, "expected-fail") {
assert.Assert(t, strings.Contains(line, " fail "))
}
if strings.Contains(line, "expectedFetch") {
assert.Assert(t, strings.Contains(line, "fetch"))
if strings.Contains(line, "expected-fetch") {
assert.Assert(t, strings.Contains(line, " fetch "))
}
}
})
Expand Down
10 changes: 5 additions & 5 deletions local/e2e/compose/fixtures/dry-run-test/pull/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
services:
expectedFetch:
expected-fetch:
image: hello-world
command: top
expectedSkip:
expected-skip-already-exist:
image: alpine
command: top
expectedFail:
expected-fail:
# this image is not expected to be registered on any registries
image: expected-not-to-be-registered
command: top
expectedSkip-build:
build: Dockerfile
expected-skip-build:
build: .
command: top

0 comments on commit d018e65

Please sign in to comment.