Make error more descriptive in case of no encryption state (#17299)
* Make error more descriptive in case of no encryption state * Fix failing test * Change error message on strict-encrypt postgres destination as well. Fix failing test * update versions and changelogs * auto-bump connector version [ci skip] * auto-bump connector version [ci skip] * auto-bump connector version [ci skip] Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
42800f7b37
commit
248da78ba7
@@ -16,5 +16,5 @@ ENV APPLICATION destination-postgres-strict-encrypt
|
||||
|
||||
COPY --from=build /airbyte /airbyte
|
||||
|
||||
LABEL io.airbyte.version=0.3.25
|
||||
LABEL io.airbyte.version=0.3.26
|
||||
LABEL io.airbyte.name=airbyte/destination-postgres-strict-encrypt
|
||||
|
||||
@@ -54,7 +54,7 @@ public class PostgresDestinationStrictEncrypt extends SpecModifyingDestination i
|
||||
//Fail in case SSL mode is disable, allow or prefer
|
||||
return new AirbyteConnectionStatus()
|
||||
.withStatus(Status.FAILED)
|
||||
.withMessage("Unsecured connection not allowed");
|
||||
.withMessage("Unsecured connection not allowed. If no SSH Tunnel set up, please use one of the following SSL modes: require, verify-ca, verify-full");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ package io.airbyte.integrations.destination.postgres;
|
||||
import static io.airbyte.db.PostgresUtils.getCertificate;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
@@ -181,7 +182,7 @@ public class PostgresDestinationStrictEncryptAcceptanceTest extends DestinationA
|
||||
|
||||
final var actual = runCheck(config);
|
||||
assertEquals(Status.FAILED, actual.getStatus());
|
||||
assertEquals("Unsecured connection not allowed", actual.getMessage());
|
||||
assertTrue(actual.getMessage().contains("Unsecured connection not allowed"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user