mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 09:53:38 -04:00
remove subpath readonly test for new directories
This commit is contained in:
parent
c13eb07cdf
commit
75459fc3de
1 changed files with 0 additions and 14 deletions
|
|
@ -360,20 +360,6 @@ func testSubPath(input *subPathTestInput) {
|
|||
testReadFile(input.f, input.filePathInSubpath, input.pod, 0)
|
||||
})
|
||||
|
||||
It("should fail for new directories when readOnly specified in the volumeSource [Slow]", func() {
|
||||
if input.roVol == nil {
|
||||
framework.Skipf("Volume type %v doesn't support readOnly source", input.volType)
|
||||
}
|
||||
|
||||
// Format the volume while it's writable
|
||||
formatVolume(input.f, input.formatPod)
|
||||
|
||||
// Set volume source to read only
|
||||
input.pod.Spec.Volumes[0].VolumeSource = *input.roVol
|
||||
// Pod should fail
|
||||
testPodFailSubpathError(input.f, input.pod, "")
|
||||
})
|
||||
|
||||
// TODO: add a test case for the same disk with two partitions
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue