@@ -27,7 +27,7 @@ import (
27
27
"k8s.io/utils/pointer"
28
28
)
29
29
30
- // nolint:funlen // this is ok for a test
30
+ //nolint:funlen // this is ok for a test
31
31
func TestDefault (t * testing.T ) {
32
32
type test struct {
33
33
name string
@@ -780,7 +780,7 @@ func TestCreation(t *testing.T) {
780
780
assert .Error (t , err )
781
781
})
782
782
783
- // nolint:dupl // the values are different
783
+ //nolint:dupl // the values are different
784
784
t .Run ("incorrect redpanda memory (need <= limit)" , func (t * testing.T ) {
785
785
memory := redpandaCluster .DeepCopy ()
786
786
memory .Spec .Resources = v1alpha1.RedpandaResourceRequirements {
@@ -804,7 +804,7 @@ func TestCreation(t *testing.T) {
804
804
assert .Error (t , err )
805
805
})
806
806
807
- // nolint:dupl // the values are different
807
+ //nolint:dupl // the values are different
808
808
t .Run ("correct redpanda memory" , func (t * testing.T ) {
809
809
memory := redpandaCluster .DeepCopy ()
810
810
memory .Spec .Resources = v1alpha1.RedpandaResourceRequirements {
@@ -828,7 +828,7 @@ func TestCreation(t *testing.T) {
828
828
assert .NoError (t , err )
829
829
})
830
830
831
- // nolint:dupl // the values are different
831
+ //nolint:dupl // the values are different
832
832
t .Run ("correct redpanda memory (boundary check)" , func (t * testing.T ) {
833
833
memory := redpandaCluster .DeepCopy ()
834
834
memory .Spec .Resources = v1alpha1.RedpandaResourceRequirements {
@@ -1038,7 +1038,7 @@ func TestCreation(t *testing.T) {
1038
1038
err := rp .ValidateCreate ()
1039
1039
assert .Error (t , err )
1040
1040
})
1041
- // nolint:dupl // not really a duplicate
1041
+ //nolint:dupl // not really a duplicate
1042
1042
t .Run ("endpoint template not allowed for adminapi" , func (t * testing.T ) {
1043
1043
rp := redpandaCluster .DeepCopy ()
1044
1044
const commonDomain = "company.org"
@@ -1100,7 +1100,7 @@ func TestCreation(t *testing.T) {
1100
1100
err := rp .ValidateCreate ()
1101
1101
assert .NoError (t , err )
1102
1102
})
1103
- // nolint:dupl // not really a duplicate
1103
+ //nolint:dupl // not really a duplicate
1104
1104
t .Run ("invalid endpoint template in pandaproxy API" , func (t * testing.T ) {
1105
1105
rp := redpandaCluster .DeepCopy ()
1106
1106
@@ -1117,7 +1117,7 @@ func TestCreation(t *testing.T) {
1117
1117
err := rp .ValidateCreate ()
1118
1118
assert .Error (t , err )
1119
1119
})
1120
- // nolint:dupl // not really a duplicate
1120
+ //nolint:dupl // not really a duplicate
1121
1121
t .Run ("valid endpoint template in pandaproxy API" , func (t * testing.T ) {
1122
1122
rp := redpandaCluster .DeepCopy ()
1123
1123
@@ -1345,7 +1345,7 @@ func TestExternalKafkaPortSpecified(t *testing.T) {
1345
1345
func TestKafkaTLSRules (t * testing.T ) {
1346
1346
rpCluster := validRedpandaCluster ()
1347
1347
1348
- // nolint:dupl // the tests are not duplicates
1348
+ //nolint:dupl // the tests are not duplicates
1349
1349
t .Run ("different issuer for two tls listeners" , func (t * testing.T ) {
1350
1350
newRp := rpCluster .DeepCopy ()
1351
1351
newRp .Spec .Configuration .KafkaAPI [0 ].TLS = v1alpha1.KafkaAPITLS {
@@ -1368,7 +1368,7 @@ func TestKafkaTLSRules(t *testing.T) {
1368
1368
assert .Error (t , err )
1369
1369
})
1370
1370
1371
- // nolint:dupl // the tests are not duplicates
1371
+ //nolint:dupl // the tests are not duplicates
1372
1372
t .Run ("same issuer for two tls listeners is allowed" , func (t * testing.T ) {
1373
1373
newRp := rpCluster .DeepCopy ()
1374
1374
newRp .Spec .Configuration .KafkaAPI [0 ].TLS = v1alpha1.KafkaAPITLS {
@@ -1391,7 +1391,7 @@ func TestKafkaTLSRules(t *testing.T) {
1391
1391
assert .NoError (t , err )
1392
1392
})
1393
1393
1394
- // nolint:dupl // the tests are not duplicates
1394
+ //nolint:dupl // the tests are not duplicates
1395
1395
t .Run ("different nodeSecretRef for two tls listeners" , func (t * testing.T ) {
1396
1396
newRp := rpCluster .DeepCopy ()
1397
1397
newRp .Spec .Configuration .KafkaAPI [0 ].TLS = v1alpha1.KafkaAPITLS {
@@ -1414,7 +1414,7 @@ func TestKafkaTLSRules(t *testing.T) {
1414
1414
assert .Error (t , err )
1415
1415
})
1416
1416
1417
- // nolint:dupl // the tests are not duplicates
1417
+ //nolint:dupl // the tests are not duplicates
1418
1418
t .Run ("same nodesecretref for two tls listeners is allowed" , func (t * testing.T ) {
1419
1419
newRp := rpCluster .DeepCopy ()
1420
1420
newRp .Spec .Configuration .KafkaAPI [0 ].TLS = v1alpha1.KafkaAPITLS {
0 commit comments