@@ -1479,7 +1479,7 @@ func TestGenerateVirtualServerConfigWithBackupForNGINXPlus(t *testing.T) {
1479
1479
1480
1480
got , warnings := vsc .GenerateVirtualServerConfig (& virtualServerEx , nil , nil )
1481
1481
if ! cmp .Equal (want , got ) {
1482
- t .Errorf (cmp .Diff (want , got ))
1482
+ t .Error (cmp .Diff (want , got ))
1483
1483
}
1484
1484
if len (warnings ) != 0 {
1485
1485
t .Errorf ("GenerateVirtualServerConfig returned warnings: %v" , vsc .warnings )
@@ -1786,7 +1786,7 @@ func TestGenerateVirtualServerConfig_DoesNotGenerateBackupOnMissingBackupNameFor
1786
1786
1787
1787
got , warnings := vsc .GenerateVirtualServerConfig (& virtualServerEx , nil , nil )
1788
1788
if ! cmp .Equal (want , got ) {
1789
- t .Errorf (cmp .Diff (want , got ))
1789
+ t .Error (cmp .Diff (want , got ))
1790
1790
}
1791
1791
if len (warnings ) != 0 {
1792
1792
t .Errorf ("GenerateVirtualServerConfig returned warnings: %v" , vsc .warnings )
@@ -2092,7 +2092,7 @@ func TestGenerateVirtualServerConfig_DoesNotGenerateBackupOnMissingBackupPortFor
2092
2092
2093
2093
got , warnings := vsc .GenerateVirtualServerConfig (& virtualServerEx , nil , nil )
2094
2094
if ! cmp .Equal (want , got ) {
2095
- t .Errorf (cmp .Diff (want , got ))
2095
+ t .Error (cmp .Diff (want , got ))
2096
2096
}
2097
2097
if len (warnings ) != 0 {
2098
2098
t .Errorf ("GenerateVirtualServerConfig returned warnings: %v" , vsc .warnings )
@@ -2396,7 +2396,7 @@ func TestGenerateVirtualServerConfig_DoesNotGenerateBackupOnMissingBackupPortAnd
2396
2396
2397
2397
got , warnings := vsc .GenerateVirtualServerConfig (& virtualServerEx , nil , nil )
2398
2398
if ! cmp .Equal (want , got ) {
2399
- t .Errorf (cmp .Diff (want , got ))
2399
+ t .Error (cmp .Diff (want , got ))
2400
2400
}
2401
2401
if len (warnings ) != 0 {
2402
2402
t .Errorf ("GenerateVirtualServerConfig returned warnings: %v" , vsc .warnings )
@@ -6347,19 +6347,19 @@ func TestGenerateVirtualServerConfigAPIKeyClientMaps(t *testing.T) {
6347
6347
})
6348
6348
6349
6349
if ! cmp .Equal (tc .expectedSpecAPIKey , vsConf .Server .APIKey ) {
6350
- t .Errorf (cmp .Diff (tc .expectedSpecAPIKey , vsConf .Server .APIKey ))
6350
+ t .Error (cmp .Diff (tc .expectedSpecAPIKey , vsConf .Server .APIKey ))
6351
6351
}
6352
6352
6353
6353
if ! cmp .Equal (tc .expectedRoute1APIKey , vsConf .Server .Locations [0 ].APIKey ) {
6354
- t .Errorf (cmp .Diff (tc .expectedRoute1APIKey , vsConf .Server .Locations [0 ].APIKey ))
6354
+ t .Error (cmp .Diff (tc .expectedRoute1APIKey , vsConf .Server .Locations [0 ].APIKey ))
6355
6355
}
6356
6356
6357
6357
if ! cmp .Equal (tc .expectedRoute2APIKey , vsConf .Server .Locations [1 ].APIKey ) {
6358
- t .Errorf (cmp .Diff (tc .expectedRoute2APIKey , vsConf .Server .Locations [1 ].APIKey ))
6358
+ t .Error (cmp .Diff (tc .expectedRoute2APIKey , vsConf .Server .Locations [1 ].APIKey ))
6359
6359
}
6360
6360
6361
6361
if ! cmp .Equal (tc .expectedMapList , vsConf .Maps ) {
6362
- t .Errorf (cmp .Diff (tc .expectedMapList , vsConf .Maps ))
6362
+ t .Error (cmp .Diff (tc .expectedMapList , vsConf .Maps ))
6363
6363
}
6364
6364
6365
6365
if len (warnings ) != 0 {
@@ -7161,7 +7161,7 @@ func TestGeneratePolicies(t *testing.T) {
7161
7161
result .BundleValidator = nil
7162
7162
7163
7163
if ! cmp .Equal (tc .expected , result ) {
7164
- t .Errorf (cmp .Diff (tc .expected , result ))
7164
+ t .Error (cmp .Diff (tc .expected , result ))
7165
7165
}
7166
7166
if len (vsc .warnings ) > 0 {
7167
7167
t .Errorf ("generatePolicies() returned unexpected warnings %v for the case of %s" , vsc .warnings , tc .msg )
@@ -15803,7 +15803,7 @@ func TestRFC1123ToSnake(t *testing.T) {
15803
15803
for _ , tt := range tests {
15804
15804
t .Run (tt .name , func (t * testing.T ) {
15805
15805
if ! cmp .Equal (rfc1123ToSnake (tt .input ), tt .expected ) {
15806
- t .Errorf (cmp .Diff (rfc1123ToSnake (tt .input ), tt .expected ))
15806
+ t .Error (cmp .Diff (rfc1123ToSnake (tt .input ), tt .expected ))
15807
15807
}
15808
15808
})
15809
15809
}
0 commit comments