Skip to content

Commit

Permalink
Merge pull request #303 from iti-ict/bugfix/database/291-connection-e…
Browse files Browse the repository at this point in the history
…rror-at-startup

bugfix/Databas/connection error
  • Loading branch information
mgalbis committed Sep 23, 2024
2 parents d957137 + d105ded commit 99b5952
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 7 additions & 1 deletion plugins/db-wakamiti-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ The format is based on [Keep a Changelog][1],
and this project adheres to [Semantic Versioning][2].


## [unreleased]

### Fixed
- Connection error at startup when no configuration is provided. [#291]


## [3.2.0] - 2024-09-09

### Fixed
- Row with all values set to null in xls file. (#267)
- Row with all values set to null in xls file. [#267]
- DateTime timezone issues.

### Added
Expand Down
5 changes: 2 additions & 3 deletions plugins/db-wakamiti-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


<artifactId>db-wakamiti-plugin</artifactId>
<version>3.2.0</version>
<version>3.2.1-SNAPSHOT</version>

<name>[Wakamiti Plugin] Database Steps</name>
<description>Database steps for Wakamiti</description>
Expand Down Expand Up @@ -229,14 +229,13 @@
<executions>
<execution>
<id>test</id>
<phase>integration-test</phase>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<executable>docker</executable>
<arguments>
<argument>run</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void configure(DatabaseStepContributor contributor, Configuration config
.map(key -> key.split("\\.")[0])
.collect(Collectors.toSet())
.forEach(alias -> contributor.addConnection(alias, parameters(datasourceConfig.inner(alias))));
} else {
} else if (databaseConfig.keyStream().anyMatch(k -> k.startsWith("connection"))) {
contributor.addConnection(parameters(databaseConfig));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void testConnectionWhenNoDatabasesFound() {

// Check
} catch (WakamitiException e) {
assertThat(e).hasMessage("Bad jdbc url");
assertThat(e).hasMessage("There is no default connection");
throw e;
}
}
Expand Down

0 comments on commit 99b5952

Please sign in to comment.