Merge pull request #114048 from TommyStarK/unit-tests/pkg-api-persistentvolume

pkg/api/persistentvolume: Improving test coverage
This commit is contained in:
Kubernetes Prow Robot
2022-12-12 15:19:33 -08:00
committed by GitHub

View File

@@ -78,6 +78,13 @@ func TestDropDisabledFields(t *testing.T) {
oldSpec: specWithCSISecrets(nil),
expectOldSpec: specWithCSISecrets(nil),
},
"disabled csi expansion neither new pv nor old pv had secrets": {
csiExpansionEnabled: false,
newSpec: specWithCSISecrets(nil),
expectNewSpec: specWithCSISecrets(nil),
oldSpec: specWithCSISecrets(nil),
expectOldSpec: specWithCSISecrets(nil),
},
}
for name, tc := range tests {