@@ -34,7 +34,6 @@ import (
34
34
"google.golang.org/grpc/internal/testutils"
35
35
"google.golang.org/grpc/internal/xds/matcher"
36
36
"google.golang.org/grpc/resolver"
37
- "google.golang.org/grpc/xds/internal/balancer/outlierdetection"
38
37
"google.golang.org/grpc/xds/internal/testutils/fakeclient"
39
38
"google.golang.org/grpc/xds/internal/xdsclient/bootstrap"
40
39
"google.golang.org/grpc/xds/internal/xdsclient/xdsresource"
@@ -251,7 +250,7 @@ func (s) TestSecurityConfigWithoutXDSCreds(t *testing.T) {
251
250
// returned to the CDS balancer, because we have overridden the
252
251
// newChildBalancer function as part of test setup.
253
252
cdsUpdate := xdsresource.ClusterUpdate {ClusterName : serviceName }
254
- wantCCS := edsCCS (serviceName , nil , false , nil , outlierdetection. LBConfig {} )
253
+ wantCCS := edsCCS (serviceName , nil , false , nil , noopODLBCfg )
255
254
ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
256
255
defer ctxCancel ()
257
256
if err := invokeWatchCbAndWait (ctx , xdsC , cdsWatchInfo {cdsUpdate , nil }, wantCCS , edsB ); err != nil {
@@ -307,7 +306,7 @@ func (s) TestNoSecurityConfigWithXDSCreds(t *testing.T) {
307
306
// newChildBalancer function as part of test setup. No security config is
308
307
// passed to the CDS balancer as part of this update.
309
308
cdsUpdate := xdsresource.ClusterUpdate {ClusterName : serviceName }
310
- wantCCS := edsCCS (serviceName , nil , false , nil , outlierdetection. LBConfig {} )
309
+ wantCCS := edsCCS (serviceName , nil , false , nil , noopODLBCfg )
311
310
ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
312
311
defer ctxCancel ()
313
312
if err := invokeWatchCbAndWait (ctx , xdsC , cdsWatchInfo {cdsUpdate , nil }, wantCCS , edsB ); err != nil {
@@ -463,7 +462,7 @@ func (s) TestSecurityConfigUpdate_BadToGood(t *testing.T) {
463
462
// create a new EDS balancer. The fake EDS balancer created above will be
464
463
// returned to the CDS balancer, because we have overridden the
465
464
// newChildBalancer function as part of test setup.
466
- wantCCS := edsCCS (serviceName , nil , false , nil , outlierdetection. LBConfig {} )
465
+ wantCCS := edsCCS (serviceName , nil , false , nil , noopODLBCfg )
467
466
if err := invokeWatchCbAndWait (ctx , xdsC , cdsWatchInfo {cdsUpdateWithGoodSecurityCfg , nil }, wantCCS , edsB ); err != nil {
468
467
t .Fatal (err )
469
468
}
@@ -497,7 +496,7 @@ func (s) TestGoodSecurityConfig(t *testing.T) {
497
496
// create a new EDS balancer. The fake EDS balancer created above will be
498
497
// returned to the CDS balancer, because we have overridden the
499
498
// newChildBalancer function as part of test setup.
500
- wantCCS := edsCCS (serviceName , nil , false , nil , outlierdetection. LBConfig {} )
499
+ wantCCS := edsCCS (serviceName , nil , false , nil , noopODLBCfg )
501
500
ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
502
501
defer ctxCancel ()
503
502
if err := invokeWatchCbAndWait (ctx , xdsC , cdsWatchInfo {cdsUpdateWithGoodSecurityCfg , nil }, wantCCS , edsB ); err != nil {
@@ -550,7 +549,7 @@ func (s) TestSecurityConfigUpdate_GoodToFallback(t *testing.T) {
550
549
// create a new EDS balancer. The fake EDS balancer created above will be
551
550
// returned to the CDS balancer, because we have overridden the
552
551
// newChildBalancer function as part of test setup.
553
- wantCCS := edsCCS (serviceName , nil , false , nil , outlierdetection. LBConfig {} )
552
+ wantCCS := edsCCS (serviceName , nil , false , nil , noopODLBCfg )
554
553
ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
555
554
defer ctxCancel ()
556
555
if err := invokeWatchCbAndWait (ctx , xdsC , cdsWatchInfo {cdsUpdateWithGoodSecurityCfg , nil }, wantCCS , edsB ); err != nil {
@@ -600,7 +599,7 @@ func (s) TestSecurityConfigUpdate_GoodToBad(t *testing.T) {
600
599
// create a new EDS balancer. The fake EDS balancer created above will be
601
600
// returned to the CDS balancer, because we have overridden the
602
601
// newChildBalancer function as part of test setup.
603
- wantCCS := edsCCS (serviceName , nil , false , nil , outlierdetection. LBConfig {} )
602
+ wantCCS := edsCCS (serviceName , nil , false , nil , noopODLBCfg )
604
603
ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
605
604
defer ctxCancel ()
606
605
if err := invokeWatchCbAndWait (ctx , xdsC , cdsWatchInfo {cdsUpdateWithGoodSecurityCfg , nil }, wantCCS , edsB ); err != nil {
@@ -678,7 +677,7 @@ func (s) TestSecurityConfigUpdate_GoodToGood(t *testing.T) {
678
677
SubjectAltNameMatchers : testSANMatchers ,
679
678
},
680
679
}
681
- wantCCS := edsCCS (serviceName , nil , false , nil , outlierdetection. LBConfig {} )
680
+ wantCCS := edsCCS (serviceName , nil , false , nil , noopODLBCfg )
682
681
ctx , ctxCancel := context .WithTimeout (context .Background (), defaultTestTimeout )
683
682
defer ctxCancel ()
684
683
if err := invokeWatchCbAndWait (ctx , xdsC , cdsWatchInfo {cdsUpdate , nil }, wantCCS , edsB ); err != nil {
0 commit comments