Skip to content

Commit

Permalink
NMS-16987, updated related test to fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
smunir-onms committed Jan 8, 2025
1 parent ed4d6cf commit 95354aa
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import static org.hamcrest.Matchers.anEmptyMap;
import static org.hamcrest.Matchers.emptyString;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.matchesPattern;
import static org.junit.Assert.assertEquals;
Expand Down Expand Up @@ -129,17 +130,17 @@ public void testUsageStatistics() throws Exception {
assertThat((long) usageReport.get("pollsCompleted"), is(0L));
assertThat((long) usageReport.get("eventLogsProcessed"), greaterThan(1L));
assertThat((long) usageReport.get("coreFlowsPersisted"), is(0L));
assertThat((long) usageReport.get("flowsPerSecond"), is(0L));
assertThat((long) usageReport.get("flowsPerSecond"), greaterThanOrEqualTo(0L));
assertThat((String) usageReport.get("databaseProductVersion"), matchesPattern("^\\d+\\.\\d+$"));
assertThat((String) usageReport.get("databaseProductName"), is("PostgreSQL"));
assertThat((long) usageReport.get("monitoredServices"), is(0L));
assertThat((long) usageReport.get("ipInterfaces"), is(0L));
assertThat((long) usageReport.get("snmpInterfaces"), is(0L));
assertThat((long) usageReport.get("nodes"), is(7L));
assertThat((long) usageReport.get("events"), greaterThan(1L));
assertThat((long) usageReport.get("eventsPastHours"), is(0L));
assertThat((long) usageReport.get("eventsPastHours"), greaterThanOrEqualTo(0L));
assertThat((long) usageReport.get("alarms"), is(0L));
assertThat((long) usageReport.get("alarmsPastHours"), is(0L));
assertThat((long) usageReport.get("alarmsPastHours"), greaterThanOrEqualTo(0L));
assertThat((long) usageReport.get("minions"), is(0L));

final Map<String, Integer> appliances = (Map<String, Integer>)usageReport.get("applianceCounts");
Expand Down

0 comments on commit 95354aa

Please sign in to comment.