From c9624f0e437db1d91b7076a1abdf71f74b5024dc Mon Sep 17 00:00:00 2001 From: liamfallon Date: Fri, 21 May 2021 15:00:36 +0100 Subject: Move tosca-controlloop src directries to new modules This is the second stage of the TOSCA Controlloop merge. In this review, the src directories of the old tosca-controlloop modules are moved to the new modules off the root of the clamp repo and the pom.xml files are updated with dependencies to allow the build of the moved modules to run. So the changes are renaming of files and updates of POM files in the modules to which src directories are added so that the build works, and of course deletion of the tosca-controlloop directory and its sub- modules The third and final review will follow this, which will merge the tosca-poc branch onto master, in effect merging this review to master. The differences with the clamp master repo are shown here: diff -qr clamp clamp-tp | diff_filter.sh Files clamp/INFO.yaml and clamp-tp/INFO.yaml differ Only in clamp-tp/common: src Only in clamp-tp/models: src Files clamp/participant/participant-impl/participant-impl-dcae/pom.xml and clamp-tp/participant/participant-impl/participant-impl-dcae/pom.xml differ Only in clamp-tp/participant/participant-impl/participant-impl-dcae: src Only in clamp-tp/participant/participant-impl/participant-impl-policy: src Only in clamp-tp/participant/participant-impl/participant-impl-simulator: src Files clamp/participant/participant-impl/pom.xml and clamp-tp/participant/participant-impl/pom.xml differ Only in clamp-tp/participant/participant-intermediary: src Files clamp/participant/pom.xml and clamp-tp/participant/pom.xml differ Files clamp/pom.xml and clamp-tp/pom.xml differ Only in clamp/releases: 6.0.1-container.yaml Only in clamp/releases: 6.0.1.yaml Only in clamp/releases: 6.0.2-container.yaml Only in clamp/releases: 6.0.2.yaml Only in clamp/releases: 6.1.0-container.yaml Only in clamp/releases: 6.1.0.yaml Only in clamp/releases: 6.1.1-container.yaml Only in clamp/releases: 6.1.1.yaml Files clamp/runtime/pom.xml and clamp-tp/runtime/pom.xml differ Only in clamp-tp: runtime-controlloop Issue-ID: POLICY-3215 Change-Id: I0e69e3c566ea387d61f77cfa118bb6d67b4f8253 Signed-off-by: liamfallon --- common/src/test/resources/demo/Notes.txt | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 common/src/test/resources/demo/Notes.txt (limited to 'common/src/test/resources/demo/Notes.txt') diff --git a/common/src/test/resources/demo/Notes.txt b/common/src/test/resources/demo/Notes.txt new file mode 100644 index 000000000..21be91449 --- /dev/null +++ b/common/src/test/resources/demo/Notes.txt @@ -0,0 +1,39 @@ +Run DMaaP simulator using Docker +c/Users/${USER}/Github/simulator/distribution +${USER}@S031PC03 MINGW64 ~/Github/simulator/distribution (master) +$ docker run -p 3904:3904 --volume //c/Users/${USER}/Github/simulator/distribution:/opt/app/policy/simulators/etc/mounted:ro --name=dmaap-simulator nexus3.onap.org:10001/onap/policy-models-simulator:latest + + +Run DMaaP simulator using Maven +Check out policy models +Go to policy/models/models-sim/models-sim-dmaap +mvn exec:java -Dexec.mainClass=org.onap.policy.models.sim.dmaap.startstop.Main -Dexec.args="-c src/main/resources/etc/DefaultConfig.json" + + +Run CL from command line +Go to clamp/tosca-controlloop/runtime +mvn exec:java -Dexec.mainClass=org.onap.policy.clamp.controlloop.runtime.main.startstop.Main -Dexec.args="-c src/test/resources/parameters/TestParametersMariaDB.json" + +Run Participant from command line +mvn exec:java -Dexec.mainClass=org.onap.policy.clamp.controlloop.participants.ParticipantMain -Dexec.args=" -c src/main/resources/config/CDSParticipantConfig.json" +mvn exec:java -Dexec.mainClass=org.onap.policy.clamp.controlloop.participant.dcae.main.startstop.Main -Dexec.args=" -c src/main/resources/config/DCAEParticipantConfig.json" +mvn exec:java -Dexec.mainClass=org.onap.policy.clamp.controlloop.participants.ParticipantMain -Dexec.args=" -c src/main/resources/config/PolicyParticipantConfig.json" + +Config of DB + +Prompt > mysql +MariaDB [(none)]> create database controlloop; +MariaDB [(none)]> CREATE USER 'policy'@localhost IDENTIFIED BY 'P01icY'; +MariaDB [(none)]> GRANT ALL PRIVILEGES ON controlloop.* TO 'policy'@'localhost';\ +MariaDB [(none)]> SHOW GRANTS for 'policy'@localhost; ++---------------------------------------------------------------------------------------------------------------+ +| Grants for policy@localhost | ++---------------------------------------------------------------------------------------------------------------+ +| GRANT USAGE ON *.* TO `policy`@`localhost` IDENTIFIED BY PASSWORD '*D0574A541C5DEDF11838FB41CA04E256FD5A04CC' | +| GRANT ALL PRIVILEGES ON `controlloop`.* TO `policy`@`localhost` | ++---------------------------------------------------------------------------------------------------------------+ +2 rows in set (0.000 sec) + + +Run Policy API: +mvn exec:java -Dexec.mainClass=org.onap.policy.api.main.startstop.Main -Dexec.args="-c ../../clamp-tpn/tosca-controlloop/common/src/test/resources/demo/policy-api/PolicyAPIConfig.json" -- cgit 1.2.3-korg