Skip to content

Commit

Permalink
docs(qa): make it clearer which addresses are verified
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Oct 27, 2022
1 parent 7379005 commit 05488ec
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ void shouldFormAClusterWithTls() {
assertAddressIsSecured("gateway", getGatewayAddress());
}

/** Verifies that both the command and internal APIs of the broker are correctly secured. */
private void assertBrokerMessagingServicesAreSecured(final Broker broker) {
assertAddressIsSecured(
broker.getConfig().getCluster().getNodeId(),
broker.getConfig().getNetwork().getCommandApi().getAdvertisedAddress());
assertAddressIsSecured(
broker.getConfig().getCluster().getNodeId(),
broker.getConfig().getNetwork().getInternalApi().getAdvertisedAddress());
final var commandApiAddress =
broker.getConfig().getNetwork().getCommandApi().getAdvertisedAddress();
final var internalApiAddress =
broker.getConfig().getNetwork().getInternalApi().getAdvertisedAddress();

assertAddressIsSecured(broker.getConfig().getCluster().getNodeId(), commandApiAddress);
assertAddressIsSecured(broker.getConfig().getCluster().getNodeId(), internalApiAddress);
}

private InetSocketAddress getGatewayAddress() {
Expand Down

0 comments on commit 05488ec

Please sign in to comment.