Skip to content

Commit

Permalink
Set up Elasticsearch container's authentication parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
podorvanova committed Jan 7, 2021
1 parent 05e8ed5 commit 66c9d80
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -37,7 +37,9 @@ public class GoraElasticsearchTestDriver extends GoraTestDriver {
*/
public GoraElasticsearchTestDriver() {
super(ElasticsearchStore.class);
elasticsearchContainer = new ElasticsearchContainer(DOCKER_IMAGE);
elasticsearchContainer = new ElasticsearchContainer(DOCKER_IMAGE)
.withEnv("ELASTIC_USERNAME", ElasticsearchConstants.PROP_USERNAME)
.withEnv("ELASTIC_PASSWORD", ElasticsearchConstants.PROP_PASSWORD);
}

/**
Expand Down

0 comments on commit 66c9d80

Please sign in to comment.