mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user