Skip to content

Commit

Permalink
[Test] Fix test for api_key enabled (elastic#78163)
Browse files Browse the repository at this point in the history
Since elastic#76801, the API Key feature is enabled by default and no longer
ties to HTTPS setting. This PR fixes the test to reflect the new
default.

Resolves: elastic#78162
  • Loading branch information
ywangd authored and arteam committed Sep 22, 2021
1 parent 1e31ab6 commit 6221add
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -117,7 +117,7 @@ public void testUsage() throws Exception {
apiKeyServiceEnabled = randomBoolean();
settings.put("xpack.security.authc.api_key.enabled", apiKeyServiceEnabled);
} else {
apiKeyServiceEnabled = httpSSLEnabled;
apiKeyServiceEnabled = true; // this is the default
}

final boolean auditingEnabled = randomBoolean();
Expand Down

0 comments on commit 6221add

Please sign in to comment.