Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Feb 13, 2024
1 parent 62d7307 commit 02456df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public void testFailureWhenNativeRolesDisabled() throws Exception {
final Settings securityDisabledSettings = Settings.builder().put(NativeRolesStore.NATIVE_ROLES_ENABLED, false).build();
final XPackLicenseState licenseState = mock(XPackLicenseState.class);
when(licenseState.getOperationMode()).thenReturn(License.OperationMode.BASIC);
final RestPutRoleAction action = new RestPutRoleAction(securityDisabledSettings, licenseState, mock(), mock());
final FakeRestRequest request = new FakeRestRequest.Builder(NamedXContentRegistry.EMPTY) //
.withParams(Map.of("name", "dice"))
.withContent(new BytesArray("{ }"), XContentType.JSON)
.build();
final RestPutRoleAction action = new RestPutRoleAction(securityDisabledSettings, licenseState, mock(), mock());
final FakeRestChannel channel = new FakeRestChannel(request, true, 1);

try (var threadPool = createThreadPool()) {
Expand Down

0 comments on commit 02456df

Please sign in to comment.