pdp-d feature to simulate aai/mso/vfc in lab 53/14053/2
authorJorge Hernandez <jh1730@att.com>
Thu, 21 Sep 2017 04:12:27 +0000 (23:12 -0500)
committerJorge Hernandez <jh1730@att.com>
Thu, 21 Sep 2017 15:29:20 +0000 (10:29 -0500)
commitb918b699ad033321d5c94e3a34123ee38b53fc37
treea40dc3d93395abcb7eb48f60628f0ea697670d85
parent35274178d40919f8df963ff54d152c5c3ca757ea
pdp-d feature to simulate aai/mso/vfc in lab

implemented as an optional loadable feature, this
capability enables to bring up simulators used by
junits in a pdp-d lab configuration.

After lab installation, perform:

1. features enable controlloop-util
2. policy start

Now the simulators are opened at ports 6666, 6667, and 6668.

netstat output:
tcp6       0      0 127.0.0.1:6666          :::*                    LISTEN      21562/java
tcp6       0      0 127.0.0.1:6667          :::*                    LISTEN      21562/java
tcp6       0      0 127.0.0.1:6668          :::*                    LISTEN      21562/java

21562 is the pdp-d PID in the lab.

curl http://localhost:6666/aai/v11/network/generic-vnfs/generic-vnf/vnfIdA
{ "vnf-id": "5e49ca06-2972-4532-9ed4-6d071588d792", ... }

Change-Id: I3f05333ce5549b2274eb967b2b8866189b7f8843
Issue-ID: POLICY-259
Signed-off-by: Jorge Hernandez <jh1730@att.com>
12 files changed:
controlloop/common/feature-controlloop-utils/pom.xml [new file with mode: 0644]
controlloop/common/feature-controlloop-utils/src/assembly/assemble_zip.xml [new file with mode: 0644]
controlloop/common/feature-controlloop-utils/src/main/feature/config/simulators.properties.environment [new file with mode: 0644]
controlloop/common/feature-controlloop-utils/src/main/java/org/onap/policy/drools/apps/controlloop/feature/utils/ControlLoopUtilsFeature.java [new file with mode: 0644]
controlloop/common/feature-controlloop-utils/src/main/resources/META-INF/services/org.onap.policy.drools.features.PolicyEngineFeatureAPI [new file with mode: 0644]
controlloop/common/feature-controlloop-utils/src/test/java/org/onap/policy/drools/apps/controlloop/feature/utils/ControlLoopUtilsFeatureTest.java [new file with mode: 0644]
controlloop/common/pom.xml
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/Util.java
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/AaiSimulatorTest.java
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java
controlloop/common/simulators/src/test/java/org/onap/policy/simulators/VfcSimulatorTest.java
controlloop/packages/apps/pom.xml