fix unit tests

This commit is contained in:
Roman Bednar
2022-11-02 10:14:58 +01:00
parent 8209066c4c
commit 8d48c107a7

View File

@@ -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,
},
},
}