pkg/api/persistentvolume: Improving test coverage.
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
This commit is contained in:
parent
57eb5d631c
commit
43726e8403
@ -78,6 +78,13 @@ func TestDropDisabledFields(t *testing.T) {
|
|||||||
oldSpec: specWithCSISecrets(nil),
|
oldSpec: specWithCSISecrets(nil),
|
||||||
expectOldSpec: 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 {
|
for name, tc := range tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user