Skip to content

Commit f095141

Browse files
committed
Need to allow insecure for the tests
1 parent 468c296 commit f095141

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import com.ironcorelabs.tenantsecurity.kms.v1.exception.TenantSecurityException;
1515
import com.ironcorelabs.tenantsecurity.logdriver.v1.EventMetadata;
1616
import com.ironcorelabs.tenantsecurity.logdriver.v1.UserEvent;
17-
17+
import com.ironcorelabs.tenantsecurity.utils.CompletableFutures;
1818
import org.testng.annotations.Test;
1919

2020
@Test(groups = {"dev-integration"})
@@ -29,8 +29,9 @@ private void assertEqualBytes(byte[] one, byte[] two) throws Exception {
2929
}
3030

3131
private CompletableFuture<TenantSecurityClient> getClient() {
32-
return TenantSecurityClient.create(TestSettings.TSP_ADDRESS + TestSettings.TSP_PORT,
33-
this.INTEGRATION_API_KEY);
32+
return CompletableFutures.tryCatchNonFatal(
33+
() -> new TenantSecurityClient.Builder(TestSettings.TSP_ADDRESS + TestSettings.TSP_PORT,
34+
this.INTEGRATION_API_KEY).allowInsecureHttp(true).build());
3435
}
3536

3637
private Map<String, byte[]> getRoundtripDataToEncrypt() throws Exception {

0 commit comments

Comments
 (0)