Make stand-alone Policy environment 60/112860/13
authorJim Hahn <jrh3@att.com>
Thu, 17 Sep 2020 21:03:34 +0000 (17:03 -0400)
committera.sreekumar <ajith.sreekumar@bell.ca>
Wed, 7 Oct 2020 13:04:45 +0000 (14:04 +0100)
commit00532428c0b83065a8ae87eaa2de579c3918d984
tree3f64002563d9338b3f8221ed6a09d532a0be9a1f
parente8725131014daf39725e37d518c5b9766d86ee46
Make stand-alone Policy environment

This is a first cut at making it possible to easily run Policy
components within a stand-alone environment.  Made the following
changes:
- enhanced wait_for_port.sh to accept a list of hosts/ports
- enhanced wait_for_port.sh to accept an optional command to execute
  when the wait completes
- consolidated all of the yml files into a single file
- removed "extra" services from the yml so that a component and its
  dependents can be brought up in a single invocation
- modified the component setup.sh

With these changes, a developer can clone the csit repo, run detmVers.sh
to set the docker image version env variables, and then bring up a
component (and its dependents) using:

  docker-compose -f scripts/policy/docker-compose-all.yml
    up --detach <component>

Note: this does not preload or deploy any policies; that must be done
manually via curl.

Modified to use new simulator docker image.
Also fixed drools-apps CSIT broken due to disabling frankfurt
controller.
Also removed operational.Apex policy. The csar file used in
policy-distribution test is also updated to reflect this change.

Issue-ID: POLICY-2742
Change-Id: I412dbd5db9219ad2cdece9693f0b4b9fe7b2eb69
Signed-off-by: Jim Hahn <jrh3@att.com>
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
54 files changed:
plans/policy/apex-pdp/setup.sh
plans/policy/apex-pdp/teardown.sh
plans/policy/api/setup.sh
plans/policy/api/teardown.sh
plans/policy/distribution/setup.sh
plans/policy/distribution/teardown.sh
plans/policy/drools-applications/setup.sh
plans/policy/drools-applications/teardown.sh
plans/policy/drools-pdp/setup.sh
plans/policy/drools-pdp/teardown.sh
plans/policy/pap/setup.sh
plans/policy/pap/teardown.sh
plans/policy/xacml-pdp/setup.sh
plans/policy/xacml-pdp/teardown.sh
scripts/policy/config/apex-pdp/OnapPfConfig.json [new file with mode: 0644]
scripts/policy/config/distribution/defaultConfig.json [moved from scripts/policy/policy-distribution/config/distribution/defaultConfig.json with 100% similarity]
scripts/policy/config/pap/defaultConfig.json [moved from scripts/policy/drools-apps/custom/papDefaultConfig.json with 100% similarity]
scripts/policy/config/pe/base.conf [deleted file]
scripts/policy/config/pe/brmsgw-tweaks.sh [deleted file]
scripts/policy/config/pe/brmsgw.conf [deleted file]
scripts/policy/config/pe/console.conf [deleted file]
scripts/policy/config/pe/elk.conf [deleted file]
scripts/policy/config/pe/mysql.conf [deleted file]
scripts/policy/config/pe/pap-tweaks.sh [deleted file]
scripts/policy/config/pe/pap.conf [deleted file]
scripts/policy/config/pe/paplp.conf [deleted file]
scripts/policy/config/pe/pdp-tweaks.sh [deleted file]
scripts/policy/config/pe/pdp.conf [deleted file]
scripts/policy/config/pe/pdplp.conf [deleted file]
scripts/policy/config/pe/push-policies.sh [deleted file]
scripts/policy/config/sim-all/simParameters.json
scripts/policy/config/xacml-pdp/defaultConfig.json [moved from scripts/policy/drools-apps/custom/xacmlDefaultConfig.json with 100% similarity]
scripts/policy/detmVers.sh [new file with mode: 0644]
scripts/policy/docker-compose-all.yml [new file with mode: 0644]
scripts/policy/docker-compose-api.yml [deleted file]
scripts/policy/docker-compose-drools.yml [deleted file]
scripts/policy/docker-compose-engine.yml [deleted file]
scripts/policy/docker-compose-pap.yml [deleted file]
scripts/policy/drools-apps/docker-compose-drools-apps.yml [deleted file]
scripts/policy/get-models-examples.sh [moved from scripts/policy/policy-xacml-pdp/config/db/db.conf with 68% similarity]
scripts/policy/policy-apex-pdp/config/db/db.conf [deleted file]
scripts/policy/policy-apex-pdp/config/db/db.sh [deleted file]
scripts/policy/policy-apex-pdp/docker-compose-apex.yml [deleted file]
scripts/policy/policy-distribution/config/db/db.conf [deleted file]
scripts/policy/policy-distribution/config/db/db.sh [deleted file]
scripts/policy/policy-distribution/config/distribution/csar/sample_csar_with_apex_policy.csar
scripts/policy/policy-distribution/config/distribution/temp/sample_csar_with_apex_policy.csar [deleted file]
scripts/policy/policy-distribution/docker-compose-distribution.yml [deleted file]
scripts/policy/policy-models-dmaap-sim.sh [deleted file]
scripts/policy/policy-models-simulators.sh [deleted file]
scripts/policy/policy-xacml-pdp/config/db/db.sh [deleted file]
scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml [deleted file]
scripts/policy/wait_for_port.sh
tests/policy/drools-applications/drools-applications-test.robot