summaryrefslogtreecommitdiff
path: root/test/e2e/libpod_suite_test.go
diff options
context:
space:
mode:
authorUrvashi Mohnani <umohnani@redhat.com>2018-12-03 15:26:58 +0000
committerUrvashi Mohnani <umohnani@redhat.com>2018-12-06 10:17:23 +0000
commit375831e97693af4d894cf647af4dad57ef21948d (patch)
treeeee78d8691a51d1960a701d8c029d5fbeb11b557 /test/e2e/libpod_suite_test.go
parent4c70b8a94b22b31e2c39ee710dcc21cc2f3fb337 (diff)
downloadpodman-375831e97693af4d894cf647af4dad57ef21948d.tar.gz
podman-375831e97693af4d894cf647af4dad57ef21948d.tar.bz2
podman-375831e97693af4d894cf647af4dad57ef21948d.zip
Tests for podman volume commands
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Diffstat (limited to 'test/e2e/libpod_suite_test.go')
-rw-r--r--test/e2e/libpod_suite_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go
index f4f154ef2..268db5aa1 100644
--- a/test/e2e/libpod_suite_test.go
+++ b/test/e2e/libpod_suite_test.go
@@ -227,6 +227,17 @@ func (p *PodmanTestIntegration) CleanupPod() {
}
}
+// CleanupVolume cleans up the temporary store
+func (p *PodmanTestIntegration) CleanupVolume() {
+ // Remove all containers
+ session := p.Podman([]string{"volume", "rm", "-fa"})
+ session.Wait(90)
+ // Nuke tempdir
+ if err := os.RemoveAll(p.TempDir); err != nil {
+ fmt.Printf("%q\n", err)
+ }
+}
+
// PullImages pulls multiple images
func (p *PodmanTestIntegration) PullImages(images []string) error {
for _, i := range images {