summaryrefslogtreecommitdiffstats
path: root/integrity-audit/src
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-06-27 18:15:45 -0400
committerJim Hahn <jrh3@att.com>2019-06-27 18:17:10 -0400
commitb0e9b89a0ded01eeb9203477795ab939ef4b7581 (patch)
tree1b60a4ed1dabfb44503f2c58b380433e24c0d320 /integrity-audit/src
parenta71d5cda181f7bb74420f044614cd78cc2a38496 (diff)
Allow empty DB password in IntegrityAudit
With the sonar fixes, IntegrityAudit is no longer allowing an empty DB password. This breaks some junits in other policy repos. Corrected the issue. Change-Id: I291d1592ffd80ee76dd9758b3b7156436c579dab Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'integrity-audit/src')
-rw-r--r--integrity-audit/src/main/java/org/onap/policy/common/ia/IntegrityAudit.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/integrity-audit/src/main/java/org/onap/policy/common/ia/IntegrityAudit.java b/integrity-audit/src/main/java/org/onap/policy/common/ia/IntegrityAudit.java
index 02e4c70b..61bf947e 100644
--- a/integrity-audit/src/main/java/org/onap/policy/common/ia/IntegrityAudit.java
+++ b/integrity-audit/src/main/java/org/onap/policy/common/ia/IntegrityAudit.java
@@ -152,8 +152,10 @@ public class IntegrityAudit {
|| parmsAreBad;
parmsAreBad = checkEmpty(badparams, "dbUser", properties.getProperty(IntegrityAuditProperties.DB_USER))
|| parmsAreBad;
- parmsAreBad = checkEmpty(badparams, "dbPwd", properties.getProperty(IntegrityAuditProperties.DB_PWD))
- || parmsAreBad;
+
+ // dbPwd may be empty
+ checkEmpty(badparams, "dbPwd", properties.getProperty(IntegrityAuditProperties.DB_PWD));
+
parmsAreBad = checkEmpty(badparams, "siteName", properties.getProperty(IntegrityAuditProperties.SITE_NAME))
|| parmsAreBad;
parmsAreBad = checkNodeType(properties, badparams) || parmsAreBad;