mirror of
https://github.com/containers/podman.git
synced 2025-12-12 17:57:31 +08:00
--tls-verify and --authfile should work for all remote commands
These options are now fully supported in the remote API and should no longer be hidden and/or documented as non supported. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -673,3 +673,9 @@ func (p *PodmanTestIntegration) PodmanAsUser(args []string, uid, gid uint32, cwd
|
||||
podmanSession := p.PodmanAsUserBase(args, uid, gid, cwd, env, false, false, nil)
|
||||
return &PodmanSessionIntegration{podmanSession}
|
||||
}
|
||||
|
||||
// We don't support running Varlink when local
|
||||
func (p *PodmanTestIntegration) RestartRemoteService() {
|
||||
p.StopRemoteService()
|
||||
p.StartRemoteService()
|
||||
}
|
||||
|
||||
@@ -237,7 +237,6 @@ registries = ['{{.Host}}:{{.Port}}']`
|
||||
})
|
||||
|
||||
It("podman search attempts HTTP if registry is in registries.insecure and force secure is false", func() {
|
||||
SkipIfRemote("--tls-verify is not supported on podman-remote search")
|
||||
if podmanTest.Host.Arch == "ppc64le" {
|
||||
Skip("No registry image for ppc64le")
|
||||
}
|
||||
@@ -264,6 +263,10 @@ registries = ['{{.Host}}:{{.Port}}']`
|
||||
registryFileTmpl.Execute(&buffer, registryEndpoints[4])
|
||||
podmanTest.setRegistriesConfigEnv(buffer.Bytes())
|
||||
ioutil.WriteFile(fmt.Sprintf("%s/registry4.conf", tempdir), buffer.Bytes(), 0644)
|
||||
if IsRemote() {
|
||||
podmanTest.RestartRemoteService()
|
||||
defer podmanTest.RestartRemoteService()
|
||||
}
|
||||
|
||||
search := podmanTest.PodmanNoCache([]string{"search", image})
|
||||
search.WaitWithDefaultTimeout()
|
||||
@@ -278,7 +281,7 @@ registries = ['{{.Host}}:{{.Port}}']`
|
||||
})
|
||||
|
||||
It("podman search doesn't attempt HTTP if force secure is true", func() {
|
||||
SkipIfRemote("--tls-verify is not supported on podman-remote search")
|
||||
SkipIfRemote("FIXME This should work on podman-remote")
|
||||
if podmanTest.Host.Arch == "ppc64le" {
|
||||
Skip("No registry image for ppc64le")
|
||||
}
|
||||
@@ -303,6 +306,10 @@ registries = ['{{.Host}}:{{.Port}}']`
|
||||
registryFileTmpl.Execute(&buffer, registryEndpoints[5])
|
||||
podmanTest.setRegistriesConfigEnv(buffer.Bytes())
|
||||
ioutil.WriteFile(fmt.Sprintf("%s/registry5.conf", tempdir), buffer.Bytes(), 0644)
|
||||
if IsRemote() {
|
||||
podmanTest.RestartRemoteService()
|
||||
defer podmanTest.RestartRemoteService()
|
||||
}
|
||||
|
||||
search := podmanTest.PodmanNoCache([]string{"search", image, "--tls-verify=true"})
|
||||
search.WaitWithDefaultTimeout()
|
||||
@@ -317,7 +324,7 @@ registries = ['{{.Host}}:{{.Port}}']`
|
||||
})
|
||||
|
||||
It("podman search doesn't attempt HTTP if registry is not listed as insecure", func() {
|
||||
SkipIfRemote("--tls-verify is not supported on podman-remote search")
|
||||
SkipIfRemote("FIXME This should work on podman-remote")
|
||||
if podmanTest.Host.Arch == "ppc64le" {
|
||||
Skip("No registry image for ppc64le")
|
||||
}
|
||||
@@ -343,6 +350,11 @@ registries = ['{{.Host}}:{{.Port}}']`
|
||||
podmanTest.setRegistriesConfigEnv(buffer.Bytes())
|
||||
ioutil.WriteFile(fmt.Sprintf("%s/registry6.conf", tempdir), buffer.Bytes(), 0644)
|
||||
|
||||
if IsRemote() {
|
||||
podmanTest.RestartRemoteService()
|
||||
defer podmanTest.RestartRemoteService()
|
||||
}
|
||||
|
||||
search := podmanTest.PodmanNoCache([]string{"search", image})
|
||||
search.WaitWithDefaultTimeout()
|
||||
|
||||
@@ -393,6 +405,11 @@ registries = ['{{.Host}}:{{.Port}}']`
|
||||
podmanTest.setRegistriesConfigEnv(buffer.Bytes())
|
||||
ioutil.WriteFile(fmt.Sprintf("%s/registry8.conf", tempdir), buffer.Bytes(), 0644)
|
||||
|
||||
if IsRemote() {
|
||||
podmanTest.RestartRemoteService()
|
||||
defer podmanTest.RestartRemoteService()
|
||||
}
|
||||
|
||||
search := podmanTest.PodmanNoCache([]string{"search", "my-alpine"})
|
||||
search.WaitWithDefaultTimeout()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user