Add sdnc simulator in controlloop-utils 53/74653/2
authorVidyashree Rama <vidyashree.rama@huawei.com>
Fri, 14 Dec 2018 11:01:56 +0000 (16:31 +0530)
committerVidyashree Rama <vidyashree.rama@huawei.com>
Tue, 18 Dec 2018 12:04:02 +0000 (12:04 +0000)
Add sdnc simulator in controlloop-utils

Issue-ID: POLICY-1356

Change-Id: I999a402370c2ebeeff75d647bd1d72c42dd598f7
Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
controlloop/common/feature-controlloop-utils/pom.xml
controlloop/common/feature-controlloop-utils/src/main/feature/config/simulators.properties.environment
controlloop/common/feature-controlloop-utils/src/main/java/org/onap/policy/drools/apps/controlloop/feature/utils/ControlLoopUtilsFeature.java
controlloop/common/feature-controlloop-utils/src/test/java/org/onap/policy/drools/apps/controlloop/feature/utils/ControlLoopUtilsFeatureTest.java

index 671f1d1..92b7838 100644 (file)
       <artifactId>so</artifactId>
       <version>${project.version}</version>
     </dependency>
+    <dependency>
+      <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
+      <artifactId>sdnc</artifactId>
+      <version>${project.version}</version>
+  </dependency>
     <dependency>
       <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
       <artifactId>rest</artifactId>
index cfe957b..c51e8cf 100644 (file)
@@ -3,6 +3,7 @@
 # ONAP
 # ================================================================================
 # Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+# Modifications Copyright (C) 2018 Huawei Intellectual Property. All rights reserved.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -35,3 +36,7 @@ vfc.password=policy
 guard.url=http://localhost:6669/pdp/api/getDecision
 guard.disabled=true
 
+sdnc.url=http://localhost:6670
+sdnc.username=policy
+sdnc.password=policy
+
index 99597f5..8249569 100644 (file)
@@ -29,8 +29,8 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * PDP-D feature for lab environments that provides Server simulation capabilities for AAI, SO, and
- * VFC.
+ * PDP-D feature for lab environments that provides Server simulation capabilities for AAI, SO, SDNC
+ * and VFC.
  *
  */
 public class ControlLoopUtilsFeature implements PolicyEngineFeatureAPI {
@@ -44,6 +44,7 @@ public class ControlLoopUtilsFeature implements PolicyEngineFeatureAPI {
             Util.buildSoSim();
             Util.buildVfcSim();
             Util.buildGuardSim();
+            Util.buildSdncSim();
         } catch (final InterruptedException e) {
             logger.error("{}: initialization aborted", ControlLoopUtilsFeature.class.getName(), e);
             Thread.currentThread().interrupt();
index 07b999e..fd73b62 100644 (file)
@@ -43,6 +43,7 @@ public class ControlLoopUtilsFeatureTest {
         assertNotNull(HttpServletServer.factory.get(Util.SOSIM_SERVER_PORT));
         assertNotNull(HttpServletServer.factory.get(Util.SOSIM_SERVER_PORT));
         assertNotNull(HttpServletServer.factory.get(Util.GUARDSIM_SERVER_PORT));
+        assertNotNull(HttpServletServer.factory.get(Util.SDNCSIM_SERVER_PORT));
     }
 
 }