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
commit 71da94a0e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {