fix line length
Original commit: elastic/x-pack-elasticsearch@c2e67e68bd
This commit is contained in:
parent
626c74a437
commit
915d95bca1
|
@ -132,7 +132,8 @@ public class AuditTrailService extends AbstractComponent implements AuditTrail {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void accessGranted(User user, String action, TransportMessage message, String[] roleNames, @Nullable Set<String> specificIndices) {
|
||||
public void accessGranted(User user, String action, TransportMessage message, String[] roleNames,
|
||||
@Nullable Set<String> specificIndices) {
|
||||
if (licenseState.isAuditingAllowed()) {
|
||||
for (AuditTrail auditTrail : auditTrails) {
|
||||
auditTrail.accessGranted(user, action, message, roleNames, specificIndices);
|
||||
|
@ -141,7 +142,8 @@ public class AuditTrailService extends AbstractComponent implements AuditTrail {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void accessDenied(User user, String action, TransportMessage message, String[] roleNames, @Nullable Set<String> specificIndices) {
|
||||
public void accessDenied(User user, String action, TransportMessage message, String[] roleNames,
|
||||
@Nullable Set<String> specificIndices) {
|
||||
if (licenseState.isAuditingAllowed()) {
|
||||
for (AuditTrail auditTrail : auditTrails) {
|
||||
auditTrail.accessDenied(user, action, message, roleNames, specificIndices);
|
||||
|
|
|
@ -245,7 +245,8 @@ public class AuthorizationServiceTests extends ESTestCase {
|
|||
assertThrowsAuthorizationException(
|
||||
() -> authorize(createAuthentication(SystemUser.INSTANCE), "cluster:admin/whatever", request),
|
||||
"cluster:admin/whatever", SystemUser.INSTANCE.principal());
|
||||
verify(auditTrail).accessDenied(SystemUser.INSTANCE, "cluster:admin/whatever", request, new String[] { SystemUser.ROLE_NAME }, null);
|
||||
verify(auditTrail).accessDenied(SystemUser.INSTANCE, "cluster:admin/whatever", request, new String[] { SystemUser.ROLE_NAME },
|
||||
null);
|
||||
verifyNoMoreInteractions(auditTrail);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue