xds: disable processing of UpstreamTlsContext until we are ready to test the feature (#7148)

This commit is contained in:
sanjaypujare 2020-06-22 14:33:41 -07:00 committed by GitHub
parent 69191ffc47
commit 8fb6591850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -290,7 +290,9 @@ public final class CdsLoadBalancer extends LoadBalancer {
/* edsServiceName = */ newUpdate.getEdsServiceName(),
/* lrsServerName = */ newUpdate.getLrsServerName(),
new PolicySelection(lbProvider, ImmutableMap.<String, Object>of(), lbConfig));
updateSslContextProvider(newUpdate.getUpstreamTlsContext());
if (false) {
updateSslContextProvider(newUpdate.getUpstreamTlsContext());
}
if (edsBalancer == null) {
edsBalancer = lbRegistry.getProvider(EDS_POLICY_NAME).newLoadBalancer(helper);
}

View File

@ -76,6 +76,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@ -338,6 +339,7 @@ public class CdsLoadBalancerTest {
assertThat(xdsClientPool.xdsClient).isNull();
}
@Ignore
@Test
public void handleCdsConfigUpdate_withUpstreamTlsContext() {
assertThat(xdsClient).isNull();