From ce19dda57a2e10bb1a5427b7bafc03f6f195b43d Mon Sep 17 00:00:00 2001 From: Michelle Au Date: Mon, 9 Oct 2017 09:50:59 -0700 Subject: [PATCH] Remove local PV tests using TestContainerOutput because it doesn't wait for unmount --- test/e2e/storage/persistent_volumes-local.go | 28 -------------------- 1 file changed, 28 deletions(-) diff --git a/test/e2e/storage/persistent_volumes-local.go b/test/e2e/storage/persistent_volumes-local.go index dc0796359a3..9015f964046 100644 --- a/test/e2e/storage/persistent_volumes-local.go +++ b/test/e2e/storage/persistent_volumes-local.go @@ -146,22 +146,6 @@ var _ = SIGDescribe("PersistentVolumes-local [Feature:LocalPersistentVolumes] [S cleanupLocalVolume(config, testVol) }) - It("should be able to mount and read from the volume using one-command containers", func() { - By("Creating a pod to read from the PV") - readCmd := createReadCmd(volumeDir, testFile) - podSpec := makeLocalPod(config, testVol, readCmd) - //testFileContent was written during setupLocalVolume - f.TestContainerOutput("pod reads PV", podSpec, 0, []string{testFileContent}) - }) - - It("should be able to mount and write to the volume using one-command containers", func() { - By("Creating a pod to write to the PV") - writeCmd, readCmd := createWriteAndReadCmds(volumeDir, testFile, testVol.hostDir /*writeTestFileContent*/) - writeThenReadCmd := fmt.Sprintf("%s;%s", writeCmd, readCmd) - podSpec := makeLocalPod(config, testVol, writeThenReadCmd) - f.TestContainerOutput("pod writes to PV", podSpec, 0, []string{testVol.hostDir}) - }) - It("should be able to mount volume and read from pod1", func() { By("Creating pod1") pod1, pod1Err := createLocalPod(config, testVol) @@ -213,18 +197,6 @@ var _ = SIGDescribe("PersistentVolumes-local [Feature:LocalPersistentVolumes] [S AfterEach(func() { cleanupLocalVolume(config, testVol) }) - - It("should be able to mount volume, write from pod1, and read from pod2 using one-command containers", func() { - By("Creating pod1 to write to the PV") - writeCmd, readCmd := createWriteAndReadCmds(volumeDir, testFile, testVol.hostDir /*writeTestFileContent*/) - writeThenReadCmd := fmt.Sprintf("%s;%s", writeCmd, readCmd) - podSpec1 := makeLocalPod(config, testVol, writeThenReadCmd) - f.TestContainerOutput("pod writes to PV", podSpec1, 0, []string{testVol.hostDir}) - - By("Creating pod2 to read from the PV") - podSpec2 := makeLocalPod(config, testVol, readCmd) - f.TestContainerOutput("pod reads PV", podSpec2, 0, []string{testVol.hostDir}) - }) }) LocalVolumeTypes := []LocalVolumeType{DirectoryLocalVolumeType, TmpfsLocalVolumeType}