-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema-connect): add SSL support for KafkaConnect
- Loading branch information
1 parent
1857335
commit d759877
Showing
6 changed files
with
87 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...-rest-client/src/test/java/io/streamthoughts/jikkou/http/client/SslConfigSupportTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright (c) The original authors | ||
* | ||
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
package io.streamthoughts.jikkou.http.client; | ||
|
||
import io.streamthoughts.jikkou.core.config.Configuration; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class SslConfigSupportTest { | ||
|
||
@Test | ||
void shouldCreateSslConfigWithoutNamespace() { | ||
SslConfigSupport.getSslConfig(null, Configuration | ||
.builder() | ||
.with(SslConfigSupport.SSL_KEY_STORE_PASSWORD, "password") | ||
.with(SslConfigSupport.SSL_KEY_STORE_LOCATION, "/tmp/keystore.jks") | ||
.with(SslConfigSupport.SSL_KEY_STORE_TYPE, "jks") | ||
.with(SslConfigSupport.SSL_TRUST_STORE_LOCATION, "/tmp/truststore.jks") | ||
.with(SslConfigSupport.SSL_TRUST_STORE_PASSWORD, "password") | ||
.with(SslConfigSupport.SSL_TRUST_STORE_TYPE, "jks") | ||
.build() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters