Skip to content

Commit

Permalink
add to existing unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Jan 21, 2025
1 parent 90a32af commit a7f8384
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ void testToBuilder() {
throw new UnsupportedOperationException();
};
Map<String, ?> directPathServiceConfig = ImmutableMap.of("loadbalancingConfig", "grpclb");
List<InstantiatingGrpcChannelProvider.HardBoundTokenTypes> hardBoundTokenTypes =
new ArrayList<>();
hardBoundTokenTypes.add(InstantiatingGrpcChannelProvider.HardBoundTokenTypes.ALTS);
hardBoundTokenTypes.add(InstantiatingGrpcChannelProvider.HardBoundTokenTypes.MTLS_S2A);

InstantiatingGrpcChannelProvider provider =
InstantiatingGrpcChannelProvider.newBuilder()
Expand All @@ -238,6 +242,7 @@ void testToBuilder() {
.setChannelConfigurator(channelConfigurator)
.setChannelsPerCpu(2.5)
.setDirectPathServiceConfig(directPathServiceConfig)
.setAllowHardBoundTokenTypes(hardBoundTokenTypes)
.build();

InstantiatingGrpcChannelProvider.Builder builder = provider.toBuilder();
Expand Down

0 comments on commit a7f8384

Please sign in to comment.