Skip to content

Commit

Permalink
[Test] Fix test for api_key enabled
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 committed Sep 22, 2021
1 parent 533e244 commit 734b8d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 734b8d7

Please sign in to comment.