Skip to content

Commit a6d57e2

Browse files
committed
Test fix
1 parent f79e3b6 commit a6d57e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/support/mapper/ClusterStateRoleMapperTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ public void setup() {
5656
() -> 1L
5757
);
5858
clusterService = mock(ClusterService.class);
59-
enabledSettings = Settings.builder().put("xpack.security.authc.cluster_state_role_mappings.enabled", true).build();
59+
disabledSettings = Settings.builder().put("xpack.security.authc.cluster_state_role_mappings.enabled", false).build();
6060
if (randomBoolean()) {
61-
disabledSettings = Settings.builder().put("xpack.security.authc.cluster_state_role_mappings.enabled", false).build();
61+
enabledSettings = Settings.builder().put("xpack.security.authc.cluster_state_role_mappings.enabled", true).build();
6262
} else {
63-
// the cluster state role mapper is disabled by default
64-
disabledSettings = Settings.EMPTY;
63+
// the cluster state role mapper is enabled by default
64+
enabledSettings = Settings.EMPTY;
6565
}
6666
}
6767

0 commit comments

Comments
 (0)