mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
test/e2e: fix flake in login tests
By default we run tests in parallel so when we mount test/certs with the ":Z" option it means only one container can read it, depending on the startup times this can mean the container fails to start. I observed this error in a CI run: level=fatal msg="open /certs/domain.crt: permission denied" Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
88a32272b7
commit
1eda0cfbb4
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ var _ = Describe("Podman login and logout", func() {
|
|||
"-e", strings.Join([]string{"REGISTRY_HTTP_ADDR=0.0.0.0", strconv.Itoa(port)}, ":"), "--name", "registry", "-v",
|
||||
strings.Join([]string{authPath, "/auth:Z"}, ":"), "-e", "REGISTRY_AUTH=htpasswd", "-e",
|
||||
"REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm", "-e", "REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd",
|
||||
"-v", strings.Join([]string{certPath, "/certs:Z"}, ":"), "-e", "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt",
|
||||
"-v", strings.Join([]string{certPath, "/certs:z"}, ":"), "-e", "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt",
|
||||
"-e", "REGISTRY_HTTP_TLS_KEY=/certs/domain.key", REGISTRY_IMAGE,
|
||||
})
|
||||
session.WaitWithDefaultTimeout()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue