mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Merge pull request #107159 from mengjiao-liu/improve-unit-test-coverage-pv
Improve test coverage: pkg/api/persistentvolume
This commit is contained in:
commit
5588d5c578
@ -76,6 +76,13 @@ func TestDropDisabledFields(t *testing.T) {
|
|||||||
oldSpec: specWithCSISecrets(nil),
|
oldSpec: specWithCSISecrets(nil),
|
||||||
expectOldSpec: specWithCSISecrets(nil),
|
expectOldSpec: specWithCSISecrets(nil),
|
||||||
},
|
},
|
||||||
|
"disabled csi expansion clears secrets when old pv did not had secrets": {
|
||||||
|
csiExpansionEnabled: false,
|
||||||
|
newSpec: specWithCSISecrets(secretRef),
|
||||||
|
expectNewSpec: specWithCSISecrets(nil),
|
||||||
|
oldSpec: specWithCSISecrets(nil),
|
||||||
|
expectOldSpec: specWithCSISecrets(nil),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, tc := range tests {
|
for name, tc := range tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user