mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 01:40:13 +00:00
Merge pull request #116569 from tukwila/validate_testVols
check if test volumes created
This commit is contained in:
commit
20e8b20b75
@ -201,12 +201,20 @@ var _ = utils.SIGDescribe("PersistentVolumes-local ", func() {
|
||||
}
|
||||
setupStorageClass(ctx, config, &testMode)
|
||||
testVols := setupLocalVolumesPVCsPVs(ctx, config, testVolType, config.randomNode, 1, testMode)
|
||||
if len(testVols) > 0 {
|
||||
testVol = testVols[0]
|
||||
} else {
|
||||
framework.Failf("Failed to get a test volume")
|
||||
}
|
||||
})
|
||||
|
||||
ginkgo.AfterEach(func(ctx context.Context) {
|
||||
if testVol != nil {
|
||||
cleanupLocalVolumes(ctx, config, []*localTestVolume{testVol})
|
||||
cleanupStorageClass(ctx, config)
|
||||
} else {
|
||||
framework.Failf("no test volume to cleanup")
|
||||
}
|
||||
})
|
||||
|
||||
ginkgo.Context("One pod requesting one prebound PVC", func() {
|
||||
|
Loading…
Reference in New Issue
Block a user