Skip to content

Commit

Permalink
fixed new test
Browse files Browse the repository at this point in the history
Signed-off-by: Maxwell Brown <[email protected]>
  • Loading branch information
Galactus22625 committed Jan 16, 2025
1 parent 3d5d8c8 commit 2c78c46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ void testCreateClientWithCertPath() throws IOException {
@Test
void testCreateClientWithInsecureAndCertPath() throws IOException {
// Insecure should take precedence over cert path when both are set
final PluginSetting pluginSetting = generatePluginSetting(
final OpenSearchSinkConfig openSearchSinkConfig = generateOpenSearchSinkConfig(
TEST_HOSTS, TEST_USERNAME, TEST_PASSWORD, TEST_CONNECT_TIMEOUT, TEST_SOCKET_TIMEOUT, false, null, null, TEST_CERT_PATH, true);
final ConnectionConfiguration connectionConfiguration =
ConnectionConfiguration.readConnectionConfiguration(pluginSetting);
ConnectionConfiguration.readConnectionConfiguration(openSearchSinkConfig);
assertNull(connectionConfiguration.getCertPath());
final RestHighLevelClient client = connectionConfiguration.createClient(awsCredentialsSupplier);
assertNotNull(client);
Expand Down

0 comments on commit 2c78c46

Please sign in to comment.