summaryrefslogtreecommitdiffstats
path: root/adaptors/mdsal-resource/provider/src/test
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-10-29 15:04:35 -0400
committerDan Timoney <dtimoney@att.com>2021-10-29 15:04:41 -0400
commit1267516ac4ce6402a0d175328563d5557fd59c96 (patch)
tree0ed5d136977ea47f531412fd02941d627e35f03e /adaptors/mdsal-resource/provider/src/test
parent9bdc825f7b9c1689aae71fcb01bf08aa6bcba995 (diff)
Sync local changes to support GRA microservice
Sync changes made downstream to support GRA microservice Issue-ID: CCSDK-3504 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I854b5437c4a60023bd161e3625e08ff6e0771945
Diffstat (limited to 'adaptors/mdsal-resource/provider/src/test')
-rw-r--r--adaptors/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/adaptors/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java b/adaptors/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java
index 7f05d1e5f..7b8825822 100644
--- a/adaptors/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java
+++ b/adaptors/mdsal-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/mdsal/TestMdsalResourcePropertiesProviderImpl.java
@@ -45,11 +45,21 @@ public class TestMdsalResourcePropertiesProviderImpl {
System.out.println("All Default Properties : " + prop);
+ String sdncUser = System.getenv("ODL_USER");
+ if ((sdncUser == null) || (sdncUser.length() == 0)) {
+ sdncUser = "admin";
+ }
+
+ String sdncPassword = System.getenv("ODL_PASSWORD");
+ if ((sdncPassword == null) || (sdncUser.length() == 0)) {
+ sdncPassword = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U";
+ }
+
assertEquals("localhost",prop.getProperty("org.onap.ccsdk.sli.adaptors.resource.mdsal.sdnc-host"));
- assertEquals("Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U",prop.getProperty("org.onap.ccsdk.sli.adaptors.resource.mdsal.sdnc-passwd"));
+ assertEquals(sdncPassword,prop.getProperty("org.onap.ccsdk.sli.adaptors.resource.mdsal.sdnc-passwd"));
assertEquals("http",prop.getProperty("org.onap.ccsdk.sli.adaptors.resource.mdsal.sdnc-protocol"));
assertEquals("8181",prop.getProperty("org.onap.ccsdk.sli.adaptors.resource.mdsal.sdnc-port"));
- assertEquals("admin",prop.getProperty("org.onap.ccsdk.sli.adaptors.resource.mdsal.sdnc-user"));
+ assertEquals(sdncUser,prop.getProperty("org.onap.ccsdk.sli.adaptors.resource.mdsal.sdnc-user"));
}