@@ -34,7 +34,7 @@ func TestValidateScyllaCluster(t *testing.T) {
34
34
{
35
35
name : "valid" ,
36
36
cluster : validCluster .DeepCopy (),
37
- expectedErrorList : field. ErrorList {} ,
37
+ expectedErrorList : nil ,
38
38
expectedErrorString : "" ,
39
39
},
40
40
{
@@ -85,7 +85,7 @@ func TestValidateScyllaCluster(t *testing.T) {
85
85
}
86
86
return cluster
87
87
}(),
88
- expectedErrorList : field. ErrorList {} ,
88
+ expectedErrorList : nil ,
89
89
expectedErrorString : "" ,
90
90
},
91
91
{
@@ -334,7 +334,7 @@ func TestValidateScyllaCluster(t *testing.T) {
334
334
})
335
335
return cluster
336
336
}(),
337
- expectedErrorList : field. ErrorList {} ,
337
+ expectedErrorList : nil ,
338
338
expectedErrorString : "" ,
339
339
},
340
340
{
@@ -352,7 +352,7 @@ func TestValidateScyllaCluster(t *testing.T) {
352
352
})
353
353
return cluster
354
354
}(),
355
- expectedErrorList : field. ErrorList {} ,
355
+ expectedErrorList : nil ,
356
356
expectedErrorString : "" ,
357
357
},
358
358
{
@@ -371,7 +371,7 @@ func TestValidateScyllaCluster(t *testing.T) {
371
371
})
372
372
return cluster
373
373
}(),
374
- expectedErrorList : field. ErrorList {} ,
374
+ expectedErrorList : nil ,
375
375
expectedErrorString : "" ,
376
376
},
377
377
{
@@ -389,7 +389,7 @@ func TestValidateScyllaCluster(t *testing.T) {
389
389
})
390
390
return cluster
391
391
}(),
392
- expectedErrorList : field. ErrorList {} ,
392
+ expectedErrorList : nil ,
393
393
expectedErrorString : "" ,
394
394
},
395
395
{
@@ -408,7 +408,7 @@ func TestValidateScyllaCluster(t *testing.T) {
408
408
})
409
409
return cluster
410
410
}(),
411
- expectedErrorList : field. ErrorList {} ,
411
+ expectedErrorList : nil ,
412
412
expectedErrorString : "" ,
413
413
},
414
414
{
@@ -426,7 +426,7 @@ func TestValidateScyllaCluster(t *testing.T) {
426
426
})
427
427
return cluster
428
428
}(),
429
- expectedErrorList : field. ErrorList {} ,
429
+ expectedErrorList : nil ,
430
430
expectedErrorString : "" ,
431
431
},
432
432
{
@@ -508,7 +508,7 @@ func TestValidateScyllaCluster(t *testing.T) {
508
508
}... )
509
509
return cluster
510
510
}(),
511
- expectedErrorList : field. ErrorList {} ,
511
+ expectedErrorList : nil ,
512
512
expectedErrorString : "" ,
513
513
},
514
514
{
@@ -537,7 +537,7 @@ func TestValidateScyllaCluster(t *testing.T) {
537
537
}... )
538
538
return cluster
539
539
}(),
540
- expectedErrorList : field. ErrorList {} ,
540
+ expectedErrorList : nil ,
541
541
expectedErrorString : "" ,
542
542
},
543
543
{
@@ -721,7 +721,7 @@ func TestValidateScyllaCluster(t *testing.T) {
721
721
722
722
return cluster
723
723
}(),
724
- expectedErrorList : field. ErrorList {} ,
724
+ expectedErrorList : nil ,
725
725
expectedErrorString : "" ,
726
726
},
727
727
{
@@ -884,7 +884,7 @@ func TestValidateScyllaCluster(t *testing.T) {
884
884
cluster .Spec .Alternator = & scyllav1.AlternatorSpec {}
885
885
return cluster
886
886
}(),
887
- expectedErrorList : field. ErrorList {} ,
887
+ expectedErrorList : nil ,
888
888
expectedErrorString : "" ,
889
889
},
890
890
{
@@ -901,7 +901,7 @@ func TestValidateScyllaCluster(t *testing.T) {
901
901
}
902
902
return cluster
903
903
}(),
904
- expectedErrorList : field. ErrorList {} ,
904
+ expectedErrorList : nil ,
905
905
expectedErrorString : "" ,
906
906
},
907
907
{
@@ -934,7 +934,7 @@ func TestValidateScyllaCluster(t *testing.T) {
934
934
}
935
935
return cluster
936
936
}(),
937
- expectedErrorList : field. ErrorList {} ,
937
+ expectedErrorList : nil ,
938
938
expectedErrorString : "" ,
939
939
},
940
940
{
@@ -970,7 +970,7 @@ func TestValidateScyllaCluster(t *testing.T) {
970
970
}
971
971
return cluster
972
972
}(),
973
- expectedErrorList : field. ErrorList {} ,
973
+ expectedErrorList : nil ,
974
974
expectedErrorString : "" ,
975
975
},
976
976
{
@@ -1026,35 +1026,35 @@ func TestValidateScyllaClusterUpdate(t *testing.T) {
1026
1026
name : "same as old" ,
1027
1027
old : unit .NewSingleRackCluster (3 ),
1028
1028
new : unit .NewSingleRackCluster (3 ),
1029
- expectedErrorList : field. ErrorList {} ,
1029
+ expectedErrorList : nil ,
1030
1030
expectedErrorString : "" ,
1031
1031
},
1032
1032
{
1033
1033
name : "major version changed" ,
1034
1034
old : unit .NewSingleRackCluster (3 ),
1035
1035
new : unit .NewDetailedSingleRackCluster ("test-cluster" , "test-ns" , "repo" , "3.3.1" , "test-dc" , "test-rack" , 3 ),
1036
- expectedErrorList : field. ErrorList {} ,
1036
+ expectedErrorList : nil ,
1037
1037
expectedErrorString : "" ,
1038
1038
},
1039
1039
{
1040
1040
name : "minor version changed" ,
1041
1041
old : unit .NewSingleRackCluster (3 ),
1042
1042
new : unit .NewDetailedSingleRackCluster ("test-cluster" , "test-ns" , "repo" , "2.4.2" , "test-dc" , "test-rack" , 3 ),
1043
- expectedErrorList : field. ErrorList {} ,
1043
+ expectedErrorList : nil ,
1044
1044
expectedErrorString : "" ,
1045
1045
},
1046
1046
{
1047
1047
name : "patch version changed" ,
1048
1048
old : unit .NewSingleRackCluster (3 ),
1049
1049
new : unit .NewDetailedSingleRackCluster ("test-cluster" , "test-ns" , "repo" , "2.3.2" , "test-dc" , "test-rack" , 3 ),
1050
- expectedErrorList : field. ErrorList {} ,
1050
+ expectedErrorList : nil ,
1051
1051
expectedErrorString : "" ,
1052
1052
},
1053
1053
{
1054
1054
name : "repo changed" ,
1055
1055
old : unit .NewSingleRackCluster (3 ),
1056
1056
new : unit .NewDetailedSingleRackCluster ("test-cluster" , "test-ns" , "new-repo" , "2.3.2" , "test-dc" , "test-rack" , 3 ),
1057
- expectedErrorList : field. ErrorList {} ,
1057
+ expectedErrorList : nil ,
1058
1058
expectedErrorString : "" ,
1059
1059
},
1060
1060
{
@@ -1070,7 +1070,7 @@ func TestValidateScyllaClusterUpdate(t *testing.T) {
1070
1070
name : "rackPlacement changed" ,
1071
1071
old : unit .NewSingleRackCluster (3 ),
1072
1072
new : placementChanged (unit .NewSingleRackCluster (3 )),
1073
- expectedErrorList : field. ErrorList {} ,
1073
+ expectedErrorList : nil ,
1074
1074
expectedErrorString : "" ,
1075
1075
},
1076
1076
{
@@ -1086,14 +1086,14 @@ func TestValidateScyllaClusterUpdate(t *testing.T) {
1086
1086
name : "rackResources changed" ,
1087
1087
old : unit .NewSingleRackCluster (3 ),
1088
1088
new : resourceChanged (unit .NewSingleRackCluster (3 )),
1089
- expectedErrorList : field. ErrorList {} ,
1089
+ expectedErrorList : nil ,
1090
1090
expectedErrorString : "" ,
1091
1091
},
1092
1092
{
1093
1093
name : "empty rack removed" ,
1094
1094
old : unit .NewSingleRackCluster (0 ),
1095
1095
new : racksDeleted (unit .NewSingleRackCluster (0 )),
1096
- expectedErrorList : field. ErrorList {} ,
1096
+ expectedErrorList : nil ,
1097
1097
expectedErrorString : "" ,
1098
1098
},
1099
1099
{
0 commit comments