Skip to content

Commit 081375d

Browse files
committed
Fix another test.
1 parent 1372cb0 commit 081375d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/com/ironcorelabs/tenantsecurity/kms/v1/NotPrimaryAndDisabledConfigs.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import java.util.concurrent.ExecutionException;
1010

1111
import com.ironcorelabs.tenantsecurity.kms.v1.exception.TenantSecurityException;
12+
import com.ironcorelabs.tenantsecurity.utils.CompletableFutures;
1213
import org.testng.annotations.Test;
1314

1415
@Test(groups = {"dev-integration"})
@@ -61,8 +62,9 @@ private void assertEqualBytes(byte[] one, byte[] two) throws Exception {
6162
}
6263

6364
private CompletableFuture<TenantSecurityClient> getClient() {
64-
return TenantSecurityClient.create(TestSettings.TSP_ADDRESS + TestSettings.TSP_PORT,
65-
NotPrimaryAndDisabledConfigs.INTEGRATION_API_KEY);
65+
return CompletableFutures.tryCatchNonFatal(
66+
() -> new TenantSecurityClient.Builder(TestSettings.TSP_ADDRESS + TestSettings.TSP_PORT,
67+
NotPrimaryAndDisabledConfigs.INTEGRATION_API_KEY).allowInsecureHttp(true).build());
6668
}
6769

6870
private DocumentMetadata getRoundtripMetadata() {

0 commit comments

Comments
 (0)