Monitoring policy creation foundation 90/81890/16
authorPamela Dragosh <pdragosh@research.att.com>
Sat, 9 Mar 2019 16:48:44 +0000 (11:48 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Fri, 15 Mar 2019 12:54:05 +0000 (08:54 -0400)
commitb909b14fe88c5fe8f096cf8b471a2aa799d84739
tree19de65fff7618bfad91acb0b803210a93dbb86cd
parent4b2ef1a5a9bf92aeb7edc1512f7a6cd8e1be99d8
Monitoring policy creation foundation

Upgrde to xacml v2.0.0 release artifact.

Some re-arrangement of classes. New class to support a
common dictionary among the monitoring applications. I
may move it to a common under the main since some of the
values are shareable.

Created application service provider, so the XACML
main knows what policy types are pre-loaded and can
report them back to the PAP.

struggled with cucumber, which does not create
TemporaryFolder although the documentation says its
supported.

Added a new Policy Finder specific to ONAP which does
quicker job to load policies.

Issue-ID: POLICY-1273
Change-Id: I4af15a64da3b42d48f29809710421b1649625adc
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
48 files changed:
applications/common/pom.xml [new file with mode: 0644]
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/OnapPolicyFinderFactory.java [new file with mode: 0644]
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaDictionary.java [new file with mode: 0644]
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyConversionException.java [new file with mode: 0644]
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyConverter.java [new file with mode: 0644]
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyConverterUtils.java [new file with mode: 0644]
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/XacmlApplicationServiceProvider.java [new file with mode: 0644]
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/XacmlUpdatePolicyUtils.java [new file with mode: 0644]
applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/ToscaDictionaryTest.java [new file with mode: 0644]
applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyConversionExceptionTest.java [new file with mode: 0644]
applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/ToscaPolicyConverterUtilsTest.java [new file with mode: 0644]
applications/common/src/test/java/org/onap/policy/pdp/xacml/application/common/XacmlUpdatePolicyUtilsTest.java [new file with mode: 0644]
applications/common/src/test/resources/test.properties [new file with mode: 0644]
applications/guard/pom.xml [new file with mode: 0644]
applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplication.java [new file with mode: 0644]
applications/guard/src/test/java/org/onap/policy/xacml/pdp/application/guard/GuardPdpApplicationTest.java [new file with mode: 0644]
applications/guard/src/test/resources/xacml.properties [new file with mode: 0644]
applications/monitoring/pom.xml
applications/monitoring/src/main/java/org/onap/policy/xacml/pdp/engine/OnapXacmlPdpEngine.java
applications/monitoring/src/main/resources/META-INF/services/org.onap.policy.pdp.xacml.application.common.XacmlApplicationServiceProvider [new file with mode: 0644]
applications/monitoring/src/main/resources/RootMonitoringPolicy.xml
applications/monitoring/src/test/java/cucumber/Stepdefs.java
applications/monitoring/src/test/java/org/onap/policy/xacml/pdp/engine/OnapXacmlPdpEngineTest.java [new file with mode: 0644]
applications/monitoring/src/test/resources/cucumber/decisions.feature
applications/monitoring/src/test/resources/cucumber/load_policy.feature [new file with mode: 0644]
applications/monitoring/src/test/resources/test.monitoring.policy.badmetadata.1.yaml [new file with mode: 0644]
applications/monitoring/src/test/resources/test.monitoring.policy.badmetadata.2.yaml [new file with mode: 0644]
applications/monitoring/src/test/resources/test.monitoring.policy.missingmetadata.yaml [new file with mode: 0644]
applications/monitoring/src/test/resources/test.monitoring.policy.missingproperties.yaml [new file with mode: 0644]
applications/monitoring/src/test/resources/test.monitoring.policy.missingtype.yaml [new file with mode: 0644]
applications/monitoring/src/test/resources/test.monitoring.policy.missingversion.yaml [new file with mode: 0644]
applications/monitoring/src/test/resources/unsupportedpolicytype.yaml [new file with mode: 0644]
applications/monitoring/src/test/resources/vDNS.policy.decision.payload.json [new file with mode: 0644]
applications/monitoring/src/test/resources/vDNS.policy.input.yaml
applications/monitoring/src/test/resources/vDNS.policy.xml [new file with mode: 0644]
applications/monitoring/src/test/resources/xacml.properties [new file with mode: 0644]
applications/pom.xml
main/pom.xml
main/src/main/java/org/onap/policy/pdpx/main/rest/XacmlPdpRestServer.java
main/src/main/java/org/onap/policy/pdpx/main/rest/XacmlPdpStatisticsManager.java
main/src/main/java/org/onap/policy/pdpx/main/rest/model/Decision.java
main/src/main/java/org/onap/policy/pdpx/main/rest/model/StatisticsReport.java
main/src/main/java/org/onap/policy/pdpx/main/rest/provider/StatisticsProvider.java
main/src/test/java/org/onap/policy/pdpx/main/parameters/TestXacmlPdpParameterHandler.java
main/src/test/java/org/onap/policy/pdpx/main/rest/TestXacmlPdpRestServer.java
main/src/test/java/org/onap/policy/pdpx/main/rest/TestXacmlPdpStatistics.java
main/src/test/java/org/onap/policy/pdpx/main/startstop/TestMain.java
pom.xml