diff options
author | Brent Baude <bbaude@redhat.com> | 2020-05-11 12:07:42 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-05-19 14:26:19 -0500 |
commit | 8ec08a426e7024d597281dc0af9168f340e10d5d (patch) | |
tree | 01dcb8b2a0cb42b0ed7869bf86e64a124d6ff4e6 /test/e2e/common_test.go | |
parent | 9fe49335e0e9c11ab0b7148ba0c5d1426023d2fb (diff) | |
download | podman-8ec08a426e7024d597281dc0af9168f340e10d5d.tar.gz podman-8ec08a426e7024d597281dc0af9168f340e10d5d.tar.bz2 podman-8ec08a426e7024d597281dc0af9168f340e10d5d.zip |
v2 enable remote integration tests
enable remote integration tests
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r-- | test/e2e/common_test.go | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index 68f733b41..6d6f1762d 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -53,6 +53,7 @@ type PodmanTestIntegration struct { Host HostOS Timings []string TmpDir string + RemoteStartErr error } var LockTmpDir string @@ -259,12 +260,12 @@ func PodmanTestCreateUtil(tempDir string, remote bool) *PodmanTestIntegration { p.PodmanTest.RemotePodmanBinary = podmanRemoteBinary uuid := stringid.GenerateNonCryptoID() if !rootless.IsRootless() { - p.VarlinkEndpoint = fmt.Sprintf("unix:/run/podman/io.podman-%s", uuid) + p.RemoteSocket = fmt.Sprintf("unix:/run/podman/podman-%s.sock", uuid) } else { runtimeDir := os.Getenv("XDG_RUNTIME_DIR") - socket := fmt.Sprintf("io.podman-%s", uuid) + socket := fmt.Sprintf("podman-%s.sock", uuid) fqpath := filepath.Join(runtimeDir, socket) - p.VarlinkEndpoint = fmt.Sprintf("unix:%s", fqpath) + p.RemoteSocket = fmt.Sprintf("unix:%s", fqpath) } } @@ -441,7 +442,7 @@ func (p *PodmanTestIntegration) Cleanup() { session := p.Podman([]string{"rm", "-fa"}) session.Wait(90) - p.StopVarlink() + p.StopRemoteService() // Nuke tempdir if err := os.RemoveAll(p.TempDir); err != nil { fmt.Printf("%q\n", err) @@ -451,17 +452,6 @@ func (p *PodmanTestIntegration) Cleanup() { resetRegistriesConfigEnv() } -// CleanupPod cleans up the temporary store -func (p *PodmanTestIntegration) CleanupPod() { - // Remove all containers - session := p.Podman([]string{"pod", "rm", "-fa"}) - session.Wait(90) - // Nuke tempdir - if err := os.RemoveAll(p.TempDir); err != nil { - fmt.Printf("%q\n", err) - } -} - // CleanupVolume cleans up the temporary store func (p *PodmanTestIntegration) CleanupVolume() { // Remove all containers |