mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #114048 from TommyStarK/unit-tests/pkg-api-persistentvolume
pkg/api/persistentvolume: Improving test coverage
This commit is contained in:
commit
71da94a0e8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user