[test] remove Streamable serde assertions (elastic/x-pack-elasticsearch#4261)
Serialization assertions in ElasticsearchAssertions, a transport
interceptor that used them, and a plugin that added that interceptor
were removed from the test framework. This test case no longer needs to
exclude them from its plugins.
Original commit: elastic/x-pack-elasticsearch@242d09ee4583f54907f4942168b6ed6d1de369ef
*/
package org.elasticsearch.transport;
-import java.util.Collection;
import java.util.Map;
-import java.util.stream.Collectors;
import org.elasticsearch.common.settings.Settings;
-import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.test.SecurityIntegTestCase;
import org.elasticsearch.xpack.core.XPackSettings;
import org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor;
@@ -25,13 +22,6 @@ public class SecurityServerTransportServiceTests extends SecurityIntegTestCase {
.build();
}
- @Override
- protected Collection<Class<? extends Plugin>> getMockPlugins() {
- Collection<Class<? extends Plugin>> mockPlugins = super.getMockPlugins();
- // no handler wrapping here we check the requestHandlers below and this plugin wraps it
- return mockPlugins.stream().filter(p -> p != AssertingTransportInterceptor.TestPlugin.class).collect(Collectors.toList());
- }
-
public void testSecurityServerTransportServiceWrapsAllHandlers() {
for (TransportService transportService : internalCluster().getInstances(TransportService.class)) {
for (Map.Entry<String, RequestHandlerRegistry> entry : transportService.requestHandlers.entrySet()) {
