mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
fix unit tests
This commit is contained in:
parent
8209066c4c
commit
8d48c107a7
@ -2442,6 +2442,7 @@ func TestValidationOptionsForPersistentVolumeClaim(t *testing.T) {
|
||||
expectValidationOpts: PersistentVolumeClaimSpecValidationOptions{
|
||||
AllowReadWriteOncePod: true,
|
||||
EnableRecoverFromExpansionFailure: false,
|
||||
EnableRetroactiveDefaultStorageClass: true,
|
||||
},
|
||||
},
|
||||
"rwop allowed because feature enabled": {
|
||||
@ -2450,6 +2451,7 @@ func TestValidationOptionsForPersistentVolumeClaim(t *testing.T) {
|
||||
expectValidationOpts: PersistentVolumeClaimSpecValidationOptions{
|
||||
AllowReadWriteOncePod: true,
|
||||
EnableRecoverFromExpansionFailure: false,
|
||||
EnableRetroactiveDefaultStorageClass: true,
|
||||
},
|
||||
},
|
||||
"rwop not allowed because not used and feature disabled": {
|
||||
@ -2458,6 +2460,7 @@ func TestValidationOptionsForPersistentVolumeClaim(t *testing.T) {
|
||||
expectValidationOpts: PersistentVolumeClaimSpecValidationOptions{
|
||||
AllowReadWriteOncePod: false,
|
||||
EnableRecoverFromExpansionFailure: false,
|
||||
EnableRetroactiveDefaultStorageClass: true,
|
||||
},
|
||||
},
|
||||
"rwop allowed because used and feature enabled": {
|
||||
@ -2466,6 +2469,7 @@ func TestValidationOptionsForPersistentVolumeClaim(t *testing.T) {
|
||||
expectValidationOpts: PersistentVolumeClaimSpecValidationOptions{
|
||||
AllowReadWriteOncePod: true,
|
||||
EnableRecoverFromExpansionFailure: false,
|
||||
EnableRetroactiveDefaultStorageClass: true,
|
||||
},
|
||||
},
|
||||
"rwop allowed because used and feature disabled": {
|
||||
@ -2474,6 +2478,7 @@ func TestValidationOptionsForPersistentVolumeClaim(t *testing.T) {
|
||||
expectValidationOpts: PersistentVolumeClaimSpecValidationOptions{
|
||||
AllowReadWriteOncePod: true,
|
||||
EnableRecoverFromExpansionFailure: false,
|
||||
EnableRetroactiveDefaultStorageClass: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user