aboutsummaryrefslogtreecommitdiffstats
path: root/datarouter-prov/src/test
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2021-10-11 11:19:53 +0100
committerefiacor <fiachra.corcoran@est.tech>2021-10-12 09:45:17 +0100
commita8e90e7c8b025bc89747d74e1ca248c71c68f31f (patch)
tree0b22323dabf4bd3b732e9220f8aa1d32364d68a2 /datarouter-prov/src/test
parente50e99319ffef7454f756302134b260821437773 (diff)
[DMAAP-DR] Istanbul rel notes
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I73e6f5336259fe0c69c70919251f4c78547e3850 Issue-ID: DMAAP-1648
Diffstat (limited to 'datarouter-prov/src/test')
-rw-r--r--datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/utils/LogfileLoaderTest.java10
1 files changed, 0 insertions, 10 deletions
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"