From a8e90e7c8b025bc89747d74e1ca248c71c68f31f Mon Sep 17 00:00:00 2001 From: efiacor Date: Mon, 11 Oct 2021 11:19:53 +0100 Subject: [DMAAP-DR] Istanbul rel notes Signed-off-by: efiacor Change-Id: I73e6f5336259fe0c69c70919251f4c78547e3850 Issue-ID: DMAAP-1648 --- .../dmaap/datarouter/provisioning/utils/LogfileLoaderTest.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'datarouter-prov/src/test') diff --git a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoaderTest.java b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoaderTest.java index d68bad4d..decc6041 100644 --- a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoaderTest.java +++ b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoaderTest.java @@ -100,16 +100,6 @@ public class LogfileLoaderTest { assertFalse(lfl.pruneRecords()); } - @Test - public void Verify_Records_Prune_When_Record_Count_Is_Greater_Then_Threshold() { - lfl.process(testLog); - PowerMockito.mockStatic(Parameters.class); - PowerMockito.when(Parameters.getParameter(Parameters.PROV_LOG_RETENTION)).thenReturn(new Parameters(Parameters.PROV_LOG_RETENTION, "0")); - PowerMockito.when(Parameters.getParameter(Parameters.DEFAULT_LOG_RETENTION)).thenReturn(new Parameters(Parameters.DEFAULT_LOG_RETENTION, "1")); - assertTrue(lfl.pruneRecords()); - } - - private void prepFile(File logFile) { String testLogs = "2018-08-29-10-10-10-543.|LOG|1|1|https://dmaap-dr-prov:/url/file123|POST|application/vnd.att-dr.feed|100|mockType|file123|https://dmaap-dr-prov|user123|200|1|1|200|2|2\n" + "2018-08-29-10-10-10-543.|EXP|1|1|1|'url/file123'|PUT|null|3|new reason|4\n" -- cgit 1.2.3-korg