Skip to content

Commit

Permalink
Explicitly set last load cache setting in test (elastic#101879)
Browse files Browse the repository at this point in the history
Explicitly set setting in test to avoid future issues with Serverless
env where the setting defaults to true.
  • Loading branch information
n1v0lg authored Nov 7, 2023
1 parent 4a2ed90 commit 65ed6c0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ public class JwtWithUnavailableSecurityIndexRestIT extends ESRestTestCase {

// Using this to first test without, then with caching. Since caching is controlled by a static setting, we need a
// MutableSettingsProvider instance
private static final MutableSettingsProvider mutableSettingsForLastLoadCache = new MutableSettingsProvider();
private static final MutableSettingsProvider mutableSettingsForLastLoadCache = new MutableSettingsProvider() {
{
put("xpack.security.authz.store.role_mappings.last_load_cache.enabled", "false");
}
};

@ClassRule
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
Expand Down

0 comments on commit 65ed6c0

Please sign in to comment.