(Description description)
| 81 | } |
| 82 | |
| 83 | @Override |
| 84 | protected void starting(Description description) { |
| 85 | // Let the control plane know about our new server. |
| 86 | controlPlane.setLdsConfig(ControlPlaneRule.buildServerListener(), |
| 87 | ControlPlaneRule.buildClientListener(SERVER_HOST_NAME) |
| 88 | ); |
| 89 | |
| 90 | // Start up the server. |
| 91 | try { |
| 92 | startServer(controlPlane.defaultBootstrapOverride()); |
| 93 | } catch (Exception e) { |
| 94 | throw new AssertionError("unable to start the data plane server", e); |
| 95 | } |
| 96 | |
| 97 | // Provide the rest of the configuration to the control plane. |
| 98 | controlPlane.setRdsConfig(ControlPlaneRule.buildRouteConfiguration(SERVER_HOST_NAME)); |
| 99 | controlPlane.setCdsConfig(ControlPlaneRule.buildCluster()); |
| 100 | InetSocketAddress edsInetSocketAddress = (InetSocketAddress) server.getListenSockets().get(0); |
| 101 | controlPlane.setEdsConfig( |
| 102 | ControlPlaneRule.buildClusterLoadAssignment(edsInetSocketAddress.getHostName(), |
| 103 | ENDPOINT_HOST_NAME, edsInetSocketAddress.getPort())); |
| 104 | } |
| 105 | |
| 106 | @Override |
| 107 | protected void finished(Description description) { |
nothing calls this directly
no test coverage detected