Skip to content

Commit

Permalink
Destination MeiliSearch : failed acceptance tests (#8995)
Browse files Browse the repository at this point in the history
* fix for jdk 17

* Destination MeiliSearch fixed integtation tests and updated Docker image

Co-authored-by: vmaltsev <[email protected]>
  • Loading branch information
VitaliiMaltsev and vmaltsev authored Dec 21, 2021
1 parent 1029945 commit 08dc041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ plugins {

application {
mainClass = 'io.airbyte.integrations.destination.meilisearch.MeiliSearchDestination'
applicationDefaultJvmArgs = ['-XX:MaxRAMPercentage=75.0']
// Needed for JDK17
applicationDefaultJvmArgs = ['-XX:MaxRAMPercentage=75.0','--add-opens', 'java.base/java.lang=ALL-UNNAMED']
}

dependencies {
implementation project(':airbyte-db:lib')
implementation project(':airbyte-integrations:bases:base-java')
implementation project(':airbyte-protocol:models')

implementation 'com.meilisearch.sdk:meilisearch-java:0.2.0'
implementation 'com.meilisearch.sdk:meilisearch-java:0.6.0'

integrationTestJavaImplementation project(':airbyte-integrations:bases:standard-destination-test')
integrationTestJavaImplementation project(':airbyte-integrations:connectors:destination-meilisearch')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected void setup(final TestDestinationEnv testEnv) throws IOException {
final Path meiliSearchDataDir = Files.createTempDirectory(Path.of("/tmp"), "meilisearch-integration-test");
meiliSearchDataDir.toFile().deleteOnExit();

genericContainer = new GenericContainer<>(DockerImageName.parse("getmeili/meilisearch:latest"))
genericContainer = new GenericContainer<>(DockerImageName.parse("getmeili/meilisearch:v0.24.0"))
.withFileSystemBind(meiliSearchDataDir.toString(), "/data.ms");
genericContainer.setPortBindings(ImmutableList.of(EXPOSED_PORT + ":" + DEFAULT_MEILI_SEARCH_PORT));
genericContainer.start();
Expand Down

0 comments on commit 08dc041

Please sign in to comment.