From c7bc54b6e81532ad906de88f5ad7ed63259ff586 Mon Sep 17 00:00:00 2001 From: Stanislav Marszalek Date: Mon, 19 Jul 2021 07:57:08 +0200 Subject: O1 PM Bulk support - Unit test - I Issue-ID: INT-1945 Signed-off-by: Stanislav Marszalek Change-Id: I02d3684c98d563d7f386de2fdf032e930ac41b2f --- src/main/java/org/onap/a1pesimulator/data/ves/CommonEventHeader.java | 2 ++ .../org/onap/a1pesimulator/service/fileready/FtpServerService.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/org/onap/a1pesimulator/data/ves/CommonEventHeader.java b/src/main/java/org/onap/a1pesimulator/data/ves/CommonEventHeader.java index baa8ab5..619f5ae 100644 --- a/src/main/java/org/onap/a1pesimulator/data/ves/CommonEventHeader.java +++ b/src/main/java/org/onap/a1pesimulator/data/ves/CommonEventHeader.java @@ -56,6 +56,8 @@ public class CommonEventHeader { private String reportingEntityId; + private String nfVendorName; + private String nfcNamingCode; private String nfNamingCode; diff --git a/src/main/java/org/onap/a1pesimulator/service/fileready/FtpServerService.java b/src/main/java/org/onap/a1pesimulator/service/fileready/FtpServerService.java index d71cdf0..a4145d5 100644 --- a/src/main/java/org/onap/a1pesimulator/service/fileready/FtpServerService.java +++ b/src/main/java/org/onap/a1pesimulator/service/fileready/FtpServerService.java @@ -142,7 +142,7 @@ public class FtpServerService { * * @return SSHClient */ - private SSHClient getSSHClient() { + protected SSHClient getSSHClient() { SSHClient client = new SSHClient(); try { client.addHostKeyVerifier(new PromiscuousVerifier()); @@ -191,7 +191,7 @@ public class FtpServerService { * @param fileData data about files which needs to be deleted * @return empty Mono object */ - private Mono resumeError(Throwable throwable, FileData fileData) { + protected Mono resumeError(Throwable throwable, FileData fileData) { log.error("Error occurs while uploading file to FTP server", throwable); deletePMBulkFile(fileData.getPmBulkFile()); deletePMBulkFile(fileData.getArchivedPmBulkFile()); -- cgit 1.2.3-korg