mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Merge pull request #96644 from jingxu97/nov/tests
Mark some storage tests as LinuxOnly
This commit is contained in:
commit
6715318ee7
@ -127,7 +127,7 @@ func (t *multiVolumeTestSuite) DefineTests(driver TestDriver, pattern testpatter
|
|||||||
// [ node1 ] ==> [ node1 ]
|
// [ node1 ] ==> [ node1 ]
|
||||||
// / \ <- same volume mode / \
|
// / \ <- same volume mode / \
|
||||||
// [volume1] [volume2] [volume1] [volume2]
|
// [volume1] [volume2] [volume1] [volume2]
|
||||||
ginkgo.It("should access to two volumes with the same volume mode and retain data across pod recreation on the same node", func() {
|
ginkgo.It("should access to two volumes with the same volume mode and retain data across pod recreation on the same node [LinuxOnly]", func() {
|
||||||
// Currently, multiple volumes are not generally available for pre-provisoined volume,
|
// Currently, multiple volumes are not generally available for pre-provisoined volume,
|
||||||
// because containerized storage servers, such as iSCSI and rbd, are just returning
|
// because containerized storage servers, such as iSCSI and rbd, are just returning
|
||||||
// a static volume inside container, not actually creating a new volume per request.
|
// a static volume inside container, not actually creating a new volume per request.
|
||||||
@ -157,7 +157,7 @@ func (t *multiVolumeTestSuite) DefineTests(driver TestDriver, pattern testpatter
|
|||||||
// [ node1 ] ==> [ node2 ]
|
// [ node1 ] ==> [ node2 ]
|
||||||
// / \ <- same volume mode / \
|
// / \ <- same volume mode / \
|
||||||
// [volume1] [volume2] [volume1] [volume2]
|
// [volume1] [volume2] [volume1] [volume2]
|
||||||
ginkgo.It("should access to two volumes with the same volume mode and retain data across pod recreation on different node", func() {
|
ginkgo.It("should access to two volumes with the same volume mode and retain data across pod recreation on different node [LinuxOnly]", func() {
|
||||||
// Currently, multiple volumes are not generally available for pre-provisoined volume,
|
// Currently, multiple volumes are not generally available for pre-provisoined volume,
|
||||||
// because containerized storage servers, such as iSCSI and rbd, are just returning
|
// because containerized storage servers, such as iSCSI and rbd, are just returning
|
||||||
// a static volume inside container, not actually creating a new volume per request.
|
// a static volume inside container, not actually creating a new volume per request.
|
||||||
@ -207,7 +207,7 @@ func (t *multiVolumeTestSuite) DefineTests(driver TestDriver, pattern testpatter
|
|||||||
// [ node1 ] ==> [ node1 ]
|
// [ node1 ] ==> [ node1 ]
|
||||||
// / \ <- different volume mode / \
|
// / \ <- different volume mode / \
|
||||||
// [volume1] [volume2] [volume1] [volume2]
|
// [volume1] [volume2] [volume1] [volume2]
|
||||||
ginkgo.It("should access to two volumes with different volume mode and retain data across pod recreation on the same node", func() {
|
ginkgo.It("should access to two volumes with different volume mode and retain data across pod recreation on the same node [LinuxOnly]", func() {
|
||||||
if pattern.VolMode == v1.PersistentVolumeFilesystem {
|
if pattern.VolMode == v1.PersistentVolumeFilesystem {
|
||||||
e2eskipper.Skipf("Filesystem volume case should be covered by block volume case -- skipping")
|
e2eskipper.Skipf("Filesystem volume case should be covered by block volume case -- skipping")
|
||||||
}
|
}
|
||||||
@ -246,7 +246,7 @@ func (t *multiVolumeTestSuite) DefineTests(driver TestDriver, pattern testpatter
|
|||||||
// [ node1 ] ==> [ node2 ]
|
// [ node1 ] ==> [ node2 ]
|
||||||
// / \ <- different volume mode / \
|
// / \ <- different volume mode / \
|
||||||
// [volume1] [volume2] [volume1] [volume2]
|
// [volume1] [volume2] [volume1] [volume2]
|
||||||
ginkgo.It("should access to two volumes with different volume mode and retain data across pod recreation on different node", func() {
|
ginkgo.It("should access to two volumes with different volume mode and retain data across pod recreation on different node [LinuxOnly]", func() {
|
||||||
if pattern.VolMode == v1.PersistentVolumeFilesystem {
|
if pattern.VolMode == v1.PersistentVolumeFilesystem {
|
||||||
e2eskipper.Skipf("Filesystem volume case should be covered by block volume case -- skipping")
|
e2eskipper.Skipf("Filesystem volume case should be covered by block volume case -- skipping")
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ func (t *volumeModeTestSuite) DefineTests(driver TestDriver, pattern testpattern
|
|||||||
|
|
||||||
case testpatterns.DynamicPV:
|
case testpatterns.DynamicPV:
|
||||||
if pattern.VolMode == v1.PersistentVolumeBlock && !isBlockSupported {
|
if pattern.VolMode == v1.PersistentVolumeBlock && !isBlockSupported {
|
||||||
ginkgo.It("should fail in binding dynamic provisioned PV to PVC [Slow]", func() {
|
ginkgo.It("should fail in binding dynamic provisioned PV to PVC [Slow][LinuxOnly]", func() {
|
||||||
manualInit()
|
manualInit()
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
@ -344,7 +344,7 @@ func (t *volumeModeTestSuite) DefineTests(driver TestDriver, pattern testpattern
|
|||||||
framework.ExpectEqual(p.Status.Phase, v1.PodPending, "Pod phase isn't pending")
|
framework.ExpectEqual(p.Status.Phase, v1.PodPending, "Pod phase isn't pending")
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.It("should not mount / map unused volumes in a pod", func() {
|
ginkgo.It("should not mount / map unused volumes in a pod [LinuxOnly]", func() {
|
||||||
if pattern.VolMode == v1.PersistentVolumeBlock {
|
if pattern.VolMode == v1.PersistentVolumeBlock {
|
||||||
skipTestIfBlockNotSupported(driver)
|
skipTestIfBlockNotSupported(driver)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user