Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename function #25

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public interface PulsarAdminBuilder {

PulsarAdminBuilder port(int port);

PulsarAdminBuilder useSsl(boolean useSsl);
PulsarAdminBuilder tlsEnabled(boolean useSsl);

PulsarAdminBuilder tlsConfig(TlsConfig tlsConfig);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public PulsarAdminBuilder port(int port) {
}

@Override
public PulsarAdminBuilder useSsl(boolean useSsl) {
public PulsarAdminBuilder tlsEnabled(boolean useSsl) {
this.conf.tlsEnabled(useSsl);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void setup() throws Exception {
private PulsarAdmin createPulsarAdmin(TlsConfig tlsConfig) throws PulsarAdminException {
return PulsarAdmin.builder()
.port(server.getWebPort())
.useSsl(true)
.tlsEnabled(true)
.tlsConfig(tlsConfig)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void testTlsByVerifyAndNoHostnameVerification() throws PulsarAdminExcepti
);
PulsarAdmin pulsarAdmin = PulsarAdmin.builder()
.port(server.getWebPort())
.useSsl(true)
.tlsEnabled(true)
.tlsConfig(tlsConfig)
.build();
Assertions.assertThrows(PulsarAdminException.class, () -> pulsarAdmin.brokers().healthcheck(TopicVersion.V1));
Expand Down
Loading