Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit ec4a452

Browse files
author
Anca Iordache
committed
remove empty line and fixed container names
Signed-off-by: Anca Iordache <[email protected]>
1 parent d3918d8 commit ec4a452

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

e2e/compatibility_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ const (
2424
)
2525

2626
func loadAndTagImage(info dindSwarmAndRegistryInfo, tmpDir *fs.Dir, tag string, url string) error {
27-
2827
err := downloadImageTarball(tmpDir.Join("image.tar"), url)
2928
if err != nil {
3029
return err
3130
}
3231

33-
combined := info.dockerCmd("load", "-q", "-i", tmpDir.Join("image.tar"))
34-
3532
digest := ""
33+
combined := info.dockerCmd("load", "-q", "-i", tmpDir.Join("image.tar"))
3634
for _, line := range strings.Split(combined, "\n") {
3735
if strings.Contains(line, "sha256:") {
3836
digest = strings.Split(line, "sha256:")[1]

e2e/helper_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ func runWithDindSwarmAndRegistry(t *testing.T, todo func(dindSwarmAndRegistryInf
8787
// Solution found is: use host external IP (not loopback) so accessing from within installer container will reach the right container
8888

8989
registry := NewContainer("registry:2", 5000)
90-
registry.Start(t, "--name", "registry", "-e", "REGISTRY_VALIDATION_MANIFESTS_URLS_ALLOW=[^http]",
90+
registry.Start(t, "-e", "REGISTRY_VALIDATION_MANIFESTS_URLS_ALLOW=[^http]",
9191
"-e", "REGISTRY_HTTP_ADDR=0.0.0.0:5000")
9292
defer registry.StopNoFail()
9393
registryAddress := registry.GetAddress(t)
9494

9595
swarm := NewContainer("docker:19.03.3-dind", 2375, "--insecure-registry", registryAddress)
96-
swarm.Start(t, "--name", "dind", "-e", "DOCKER_TLS_CERTDIR=") // Disable certificate generate on DinD startup
96+
swarm.Start(t, "-e", "DOCKER_TLS_CERTDIR=") // Disable certificate generate on DinD startup
9797
defer swarm.Stop(t)
9898
swarmAddress := swarm.GetAddress(t)
9999

@@ -117,7 +117,7 @@ func runWithDindSwarmAndRegistry(t *testing.T, todo func(dindSwarmAndRegistryInf
117117
runner.localCmd = runLocalCmd
118118
runner.dockerCmd = runDockerCmd
119119
runner.execCmd = func(params ...string) string {
120-
args := append([]string{"docker", "exec", "-t", "dind"}, params...)
120+
args := append([]string{"docker", "exec", "-t", swarm.container}, params...)
121121
return runLocalCmd(args...)
122122
}
123123
todo(runner)

0 commit comments

Comments
 (0)