Skip to content

Commit

Permalink
Remove general use of Elasticsearch dev service
Browse files Browse the repository at this point in the history
  • Loading branch information
barreiro committed Mar 18, 2024
1 parent b65e30b commit fee29dc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions horreum-backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ horreum.dev-services.enabled=true
quarkus.datasource.devservices.enabled=false
quarkus.datasource.migration.devservices.enabled=false
quarkus.keycloak.devservices.enabled=false
quarkus.elasticsearch.devservices.enabled=false

## Add a dummy administrator in dev mode with name "user" and password "secret" with Basic HTTP authentication
%dev.quarkus.http.auth.basic=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import io.hyperfoil.tools.horreum.bus.MessageBusChannels;
import io.hyperfoil.tools.horreum.entity.backend.DatastoreConfigDAO;
import io.hyperfoil.tools.horreum.entity.data.DatasetDAO;
import io.hyperfoil.tools.horreum.test.HorreumTestProfile;
import io.hyperfoil.tools.horreum.test.ElasticsearchTestProfile;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.TestProfile;
import jakarta.inject.Inject;
Expand All @@ -35,7 +35,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@QuarkusTest
@TestProfile(HorreumTestProfile.class)
@TestProfile(ElasticsearchTestProfile.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class DatasourceTest extends BaseServiceTest{

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.hyperfoil.tools.horreum.test;

import java.util.HashMap;
import java.util.Map;

public class ElasticsearchTestProfile extends HorreumTestProfile {

@Override public Map<String, String> getConfigOverrides() {
Map<String, String> configOverrides = new HashMap<>(super.getConfigOverrides());
configOverrides.put("quarkus.elasticsearch.devservices.enabled", "true");
return configOverrides;
}

}

0 comments on commit fee29dc

Please sign in to comment.