mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
pkg/api/persistentvolume: Improving test coverage.
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
This commit is contained in:
parent
57eb5d631c
commit
43726e8403
1 changed files with 7 additions and 0 deletions
|
|
@ -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 a new issue