use of org.graylog.plugins.views.search.views.PluginMetadataSummary in project graylog2-server by Graylog2.
the class ViewRequirementsTest method mergesResultsFromMultipleChecks.
@Test
public void mergesResultsFromMultipleChecks() {
final Map<String, PluginMetadataSummary> result = new ViewRequirements(ImmutableSet.of(view -> Collections.singletonMap("aioverlord", plugin), view -> Collections.emptyMap(), view -> Collections.singletonMap("parameters", new EnterpriseMetadataSummary())), view);
assertThat(result).containsOnly(Maps.immutableEntry("aioverlord", plugin), Maps.immutableEntry("parameters", new EnterpriseMetadataSummary()));
}
use of org.graylog.plugins.views.search.views.PluginMetadataSummary in project graylog2-server by Graylog2.
the class ViewRequirementsTest method mergesMultipleResultsFromMultipleChecksWithConflictingKeys.
@Test
public void mergesMultipleResultsFromMultipleChecksWithConflictingKeys() {
final Map<String, PluginMetadataSummary> result = new ViewRequirements(ImmutableSet.of(view -> ImmutableMap.of("parameters", plugin, "aioverlord", plugin), view -> Collections.emptyMap(), view -> ImmutableMap.of("parameters", new EnterpriseMetadataSummary(), "aioverlord", new EnterpriseMetadataSummary())), view);
assertThat(result).contains(Maps.immutableEntry("aioverlord", plugin), Maps.immutableEntry("parameters", plugin));
}
use of org.graylog.plugins.views.search.views.PluginMetadataSummary in project graylog2-server by Graylog2.
the class ViewRequirementsTest method mergesResultsFromMultipleChecksWithConflictingKeys.
@Test
public void mergesResultsFromMultipleChecksWithConflictingKeys() {
final Map<String, PluginMetadataSummary> result = new ViewRequirements(ImmutableSet.of(view -> Collections.singletonMap("parameters", plugin), view -> Collections.emptyMap(), view -> Collections.singletonMap("parameters", new EnterpriseMetadataSummary())), view);
assertThat(result).containsOnly(Maps.immutableEntry("parameters", plugin));
}
Aggregations