Skip to content

Commit

Permalink
Fix DataSourceCustomizer for CK
Browse files Browse the repository at this point in the history
  • Loading branch information
mmajerni authored and avano committed Jan 30, 2023
1 parent 4bd3d3c commit 3baf4b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ public void customizeSpringboot() {

@Override
public void customizeQuarkus() {
if (type.contains("mssql")) {
url = url + ";encrypt=false;"; //turn off SSL similarly to springboot (method above)
}
getIntegrationBuilder().addToProperties(
Map.of(
"quarkus.datasource.db-kind", type,
"quarkus.datasource.jdbc.url", url + ";encrypt=false;", //turn off SSL similarly to springboot (method above)
"quarkus.datasource.jdbc.url", url,
"quarkus.datasource.username", username,
"quarkus.datasource.password", password
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void validateQuarkus() {
customizer.doCustomize();
Assertions.assertThat(ib.getProperties()).isEqualTo(Map.of(
"quarkus.datasource.db-kind", type,
"quarkus.datasource.jdbc.url", url + ";encrypt=false;",
"quarkus.datasource.jdbc.url", url,
"quarkus.datasource.username", username,
"quarkus.datasource.password", password
));
Expand Down

0 comments on commit 3baf4b9

Please sign in to comment.