Fix usage of PluginInfo
See https://github.com/elastic/elasticsearch/pull/28556 Original commit: elastic/x-pack-elasticsearch@1e14b14526
This commit is contained in:
parent
d6ca53cd26
commit
a2c9c97650
|
@ -272,8 +272,8 @@ public class ClusterStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Cl
|
||||||
|
|
||||||
final PluginsAndModules mockPluginsAndModules = mock(PluginsAndModules.class);
|
final PluginsAndModules mockPluginsAndModules = mock(PluginsAndModules.class);
|
||||||
when(mockNodeInfo.getPlugins()).thenReturn(mockPluginsAndModules);
|
when(mockNodeInfo.getPlugins()).thenReturn(mockPluginsAndModules);
|
||||||
final PluginInfo pluginInfo = new PluginInfo("_plugin", "_plugin_desc", "_plugin_version", "_plugin_class",
|
final PluginInfo pluginInfo = new PluginInfo("_plugin", "_plugin_desc", "_plugin_version", Version.CURRENT,
|
||||||
Collections.emptyList(), false, false);
|
"1.8", "_plugin_class", Collections.emptyList(), false, false);
|
||||||
when(mockPluginsAndModules.getPluginInfos()).thenReturn(singletonList(pluginInfo));
|
when(mockPluginsAndModules.getPluginInfos()).thenReturn(singletonList(pluginInfo));
|
||||||
|
|
||||||
final OsInfo mockOsInfo = mock(OsInfo.class);
|
final OsInfo mockOsInfo = mock(OsInfo.class);
|
||||||
|
|
Loading…
Reference in New Issue