Skip to content

Commit

Permalink
Reintroduce non oss settings test with oss image
Browse files Browse the repository at this point in the history
  • Loading branch information
dadoonet committed Oct 14, 2021
1 parent 7d7cfd1 commit c3321fc
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ public void transportClientClusterHealth() {
// }
}

@Test
public void incompatibleSettingsTest() {
// The OSS image can not use security feature
assertThrows("We should not be able to activate security with an OSS License",
IllegalArgumentException.class,
() -> new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2").withPassword("foo")
);
}

private RestClient getClient(ElasticsearchContainer container) {
if (client == null) {
final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
Expand Down

0 comments on commit c3321fc

Please sign in to comment.