diff options
author | Matthew Heon <mheon@redhat.com> | 2021-01-11 16:14:07 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-01-14 16:43:23 -0500 |
commit | f781efd2dca4c1db54762c6edec2b915e48dd5d8 (patch) | |
tree | b59fcfdfc29ff3979186116e23373c8d72f31169 /test/e2e/common_test.go | |
parent | b53cb57680a6fd7b383636ac2d6cd71003532915 (diff) | |
download | podman-f781efd2dca4c1db54762c6edec2b915e48dd5d8.tar.gz podman-f781efd2dca4c1db54762c6edec2b915e48dd5d8.tar.bz2 podman-f781efd2dca4c1db54762c6edec2b915e48dd5d8.zip |
Add tests for volume plugins
This involves a new test binary (a basic implementation of the
volume plugin protocol) and a new image on quay.io (Containerfile
to produce it and all sources located in this commit). The image
is used to run a containerized plugin we can test against.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r-- | test/e2e/common_test.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index 18679dd53..2668b1e7b 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -122,7 +122,7 @@ var _ = SynchronizedBeforeSuite(func() []byte { } // Pull cirros but don't put it into the cache - pullImages := []string{cirros, fedoraToolbox} + pullImages := []string{cirros, fedoraToolbox, volumeTest} pullImages = append(pullImages, CACHE_IMAGES...) for _, image := range pullImages { podman.createArtifact(image) @@ -483,13 +483,7 @@ func (p *PodmanTestIntegration) CleanupVolume() { session := p.Podman([]string{"volume", "rm", "-fa"}) session.Wait(90) - // Stop remove service on volume cleanup - p.StopRemoteService() - - // Nuke tempdir - if err := os.RemoveAll(p.TempDir); err != nil { - fmt.Printf("%q\n", err) - } + p.Cleanup() } // InspectContainerToJSON takes the session output of an inspect |