TestNewServer_ClientCreationFailure tests the case where the xDS client creation fails and verifies that the call to NewGRPCServer() fails.
(t *testing.T)
| 478 | // TestNewServer_ClientCreationFailure tests the case where the xDS client |
| 479 | // creation fails and verifies that the call to NewGRPCServer() fails. |
| 480 | func (s) TestNewServer_ClientCreationFailure(t *testing.T) { |
| 481 | origXDSClientPool := xdsClientPool |
| 482 | xdsClientPool = xdsclient.NewPool(nil) |
| 483 | defer func() { xdsClientPool = origXDSClientPool }() |
| 484 | |
| 485 | if _, err := NewGRPCServer(); err == nil { |
| 486 | t.Fatal("NewGRPCServer() succeeded when expected to fail") |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | // TestHandleListenerUpdate_NoXDSCreds tests the case where an xds-enabled gRPC |
| 491 | // server is not configured with xDS credentials. Verifies that the security |
nothing calls this directly
no test coverage detected