diff options
author | Dominik Mizyn <d.mizyn@samsung.com> | 2019-10-16 13:42:19 +0200 |
---|---|---|
committer | Dominik Mizyn <d.mizyn@samsung.com> | 2019-10-16 13:42:46 +0200 |
commit | 44d465b4604a7e73494efb2755dd05acf9d5ef7d (patch) | |
tree | 34aca7dea7bf7075ae15e08ca574f994e899708d /portal-BE/src | |
parent | 701fad2486d1e8b3730dbb175ad81a4381dece41 (diff) |
password moved from hard coded values to environment properties
password moved from hard coded values to environment properties
Issue-ID: PORTAL-710
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
Change-Id: I13f2fd2f832af5eb99426082f4a1aa620ce94974
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
Diffstat (limited to 'portal-BE/src')
-rw-r--r-- | portal-BE/src/main/resources/application.properties | 4 | ||||
-rw-r--r-- | portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/portal-BE/src/main/resources/application.properties b/portal-BE/src/main/resources/application.properties index 6debc9ab..56e0f04d 100644 --- a/portal-BE/src/main/resources/application.properties +++ b/portal-BE/src/main/resources/application.properties @@ -5,8 +5,8 @@ spring.datasource.url=jdbc:mysql://portal-db:3306/testdb?createDatabaseIfNotExis spring.datasource.initialization-mode=always spring.session.jdbc.initialize-schema=always spring.datasource.continueOnError=true -spring.datasource.username=portal -spring.datasource.password=Test123456 +spring.datasource.username=${spring_datasource_username} +spring.datasource.password=${spring_datasource_password} #H2 config spring.h2.console.settings.web-allow-others=true spring.h2.console.enabled=true diff --git a/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java b/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java index e2da10ce..492c1795 100644 --- a/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java +++ b/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java @@ -37,12 +37,6 @@ */ package org.onap.portal.framework; -import static org.mockito.Mockito.when; - -import java.util.Enumeration; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequestWrapper; import javax.servlet.http.HttpServletResponse; |