From cef0faf4ce34881260430f1527d6cb4342a1a7c6 Mon Sep 17 00:00:00 2001 From: Ram Krishna Verma Date: Mon, 12 Jul 2021 16:11:51 -0400 Subject: Add default min records for policy audit Adding default min records as 10 for policy audit provider. This is inline with our discussions and design doumented here https://wiki.onap.org/display/DW/PAP+REST+API+changes+for+Istanbul+release Issue-ID: POLICY-3340 Change-Id: I5bab5f186f2591b1a2f2c42e9851ad88f73c8dfb Signed-off-by: Ram Krishna Verma --- .../models/pap/persistence/provider/PolicyAuditProviderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models-pap/src/test/java/org') diff --git a/models-pap/src/test/java/org/onap/policy/models/pap/persistence/provider/PolicyAuditProviderTest.java b/models-pap/src/test/java/org/onap/policy/models/pap/persistence/provider/PolicyAuditProviderTest.java index 7c70371d3..41c9b92a6 100644 --- a/models-pap/src/test/java/org/onap/policy/models/pap/persistence/provider/PolicyAuditProviderTest.java +++ b/models-pap/src/test/java/org/onap/policy/models/pap/persistence/provider/PolicyAuditProviderTest.java @@ -184,9 +184,9 @@ public class PolicyAuditProviderTest { records = provider.getAuditRecords(pfDao, AuditFilter.builder().recordNum(102).build()); assertThat(records).hasSize(100); - // try to get -1 records should return 100 + // try to get -1 records should return 10 records = provider.getAuditRecords(pfDao, AuditFilter.builder().recordNum(-1).build()); - assertThat(records).hasSize(100); + assertThat(records).hasSize(10); } @Test -- cgit 1.2.3-korg