Skip to content

Commit 99d7319

Browse files
move to using new constructor part 1
1 parent 4d54614 commit 99d7319

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptorTests.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,21 @@ public void testSendAsync() throws Exception {
149149
SecurityServerTransportInterceptor interceptor = new SecurityServerTransportInterceptor(
150150
settings,
151151
threadPool,
152-
mock(AuthenticationService.class),
153-
mock(AuthorizationService.class),
154152
mockSslService(),
155153
securityContext,
156154
new DestructiveOperations(
157155
Settings.EMPTY,
158156
new ClusterSettings(Settings.EMPTY, Collections.singleton(DestructiveOperations.REQUIRES_NAME_SETTING))
159157
),
160-
mock(CrossClusterAccessAuthenticationService.class),
161-
mockLicenseState
158+
new CrossClusterAccessTransportInterceptor(
159+
mock(CrossClusterAccessAuthenticationService.class),
160+
mock(AuthenticationService.class),
161+
mock(AuthorizationService.class),
162+
mockLicenseState,
163+
securityContext,
164+
threadPool,
165+
settings
166+
)
162167
);
163168
ClusterServiceUtils.setState(clusterService, clusterService.state()); // force state update to trigger listener
164169

0 commit comments

Comments
 (0)