Skip to content

Commit 807a3a4

Browse files
remove failing test
1 parent bfb3e35 commit 807a3a4

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceTests.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3311,31 +3311,6 @@ public void testProxyRequestAuthenticationGranted() {
33113311
);
33123312
}
33133313

3314-
public void testProxyRequestAuthenticationDeniedWithReadPrivileges() {
3315-
final Authentication authentication = createAuthentication(new User("test user", "a_all"));
3316-
final RoleDescriptor role = new RoleDescriptor(
3317-
"a_all",
3318-
null,
3319-
new IndicesPrivileges[] { IndicesPrivileges.builder().indices("a").privileges("read").build() },
3320-
null
3321-
);
3322-
roleMap.put("a_all", role);
3323-
final String requestId = AuditUtil.getOrGenerateRequestId(threadContext);
3324-
mockEmptyMetadata();
3325-
DiscoveryNode node = DiscoveryNodeUtils.create("foo");
3326-
ClearScrollRequest clearScrollRequest = new ClearScrollRequest();
3327-
TransportRequest transportRequest = TransportActionProxy.wrapRequest(node, clearScrollRequest);
3328-
String action = TransportActionProxy.getProxyAction(SearchTransportService.CLEAR_SCROLL_CONTEXTS_ACTION_NAME);
3329-
assertThrowsAuthorizationException(() -> authorize(authentication, action, transportRequest), action, "test user");
3330-
verify(auditTrail).accessDenied(
3331-
eq(requestId),
3332-
eq(authentication),
3333-
eq(action),
3334-
eq(clearScrollRequest),
3335-
authzInfoRoles(new String[] { role.getName() })
3336-
);
3337-
}
3338-
33393314
@SuppressWarnings("unchecked")
33403315
public void testAuthorizationEngineSelectionForCheckPrivileges() throws Exception {
33413316
AuthorizationEngine engine = mock(AuthorizationEngine.class);

0 commit comments

Comments
 (0)