From e3093b8d1b19ad92a4af90df39a2087f40a687d4 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Mon, 22 Oct 2018 08:30:19 -0500 Subject: Final Sonar reds Issue-ID: AAF-580 Change-Id: I99de4518853504c2a211e92bce3dba70c8bc6a76 Signed-off-by: Instrumental --- .../main/java/org/onap/aaf/auth/cm/ca/JscepCA.java | 2 +- .../org/onap/aaf/auth/rserv/CachingFileAccess.java | 27 ---------------------- .../aaf/auth/rserv/test/JU_CachingFileAccess.java | 24 ------------------- auth/docker/drun.sh | 1 - 4 files changed, 1 insertion(+), 53 deletions(-) (limited to 'auth') diff --git a/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/JscepCA.java b/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/JscepCA.java index bc81fc43..4a35ca24 100644 --- a/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/JscepCA.java +++ b/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/ca/JscepCA.java @@ -197,7 +197,7 @@ public class JscepCA extends CA { trans.error().log(e,clients.info(item)); i=MAX_RETRY; // can't go any further } - } catch (InterruptedException|TransactionException|CertificateException|OperatorCreationException | CertStoreException e) { + } catch (Exception e) { trans.error().log(e); i=MAX_RETRY; } finally { diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java index 9af11152..ce87533e 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/rserv/CachingFileAccess.java @@ -291,33 +291,6 @@ public class CachingFileAccess extends HttpCode() { - public Void answer(InvocationOnMock invocation) throws FileNotFoundException { - throw new FileNotFoundException(); - } - }).when(trans).info(); - //cachingFileAccess.loadOrDefault(trans, "bs", "also bs", "test", null); //TODO: Needs more testing AAF-111 - //keyfile1.delete(); - } - @Test public void testInvalidate() { //NavigableMap content = new ConcurrentSkipListMap<>(); diff --git a/auth/docker/drun.sh b/auth/docker/drun.sh index 4a6b1c77..c6914a09 100644 --- a/auth/docker/drun.sh +++ b/auth/docker/drun.sh @@ -51,7 +51,6 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do "cm") PORTMAP="8150:8150" LINKS="--link aaf_cass:cassandra " - LINKS="--link aaf_cass:cassandra " ;; "hello") PORTMAP="8130:8130" -- cgit 1.2.3-korg