diff --git a/src/integrationTest/java/org/opensearch/index/codec/rest/CreateIndexWithCodecIT.java b/src/integrationTest/java/org/opensearch/index/codec/rest/CreateIndexWithCodecIT.java index 34e7537..ba9ca1f 100644 --- a/src/integrationTest/java/org/opensearch/index/codec/rest/CreateIndexWithCodecIT.java +++ b/src/integrationTest/java/org/opensearch/index/codec/rest/CreateIndexWithCodecIT.java @@ -39,6 +39,7 @@ import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.util.Map; +import java.util.Objects; import java.util.Optional; import javax.net.ssl.SSLEngine; @@ -131,7 +132,7 @@ public TlsDetails create(final SSLEngine sslEngine) { @Override protected String getProtocol() { - return Strings.isNullOrEmpty(System.getProperty("https")) ? "http" : "https"; + return Objects.equals(System.getProperty("https"), "true") ? "https" : "http"; } /**