aboutsummaryrefslogtreecommitdiffstats
path: root/plans/policy/xacml-pdp
AgeCommit message (Collapse)AuthorFilesLines
2020-10-07Make stand-alone Policy environmentJim Hahn2-43/+10
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>
2020-05-11xacml-pdp csit should wait for deploymentJim Hahn1-0/+3
Added code to the xacml-pdp CSIT so that, after deploying policies, it waits until the xacml-pdp indicates that the policies have been deployed before performing any guard or decision requests. Issue-ID: POLICY-2554 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: Icd016b699afbbfe3b60e866c88b45951499fa228
2020-04-20Add XACML optimization test to CSITJim Hahn1-2/+7
Added CSIT to test XACML optimization policy. Also added CSIT to test XACML default result. Issue-ID: POLICY-2491 Change-Id: I5a9c8f076ba603e39d648a5e40630aa4b6d3f99e Signed-off-by: Jim Hahn <jrh3@att.com>
2020-04-16Add Naming policy test for xacml CSITJim Hahn1-4/+0
Issue-ID: POLICY-2491 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I06db49336860f7fccb5b72f769f9f9bdcd42f11a Signed-off-by: Jim Hahn <jrh3@att.com>
2020-01-20Updating the jdk version from jdk8 to jdk11 for CSITsBilal A1-26/+4
Removes JAVA_HOME for drools pdp Updates Policy API tests Updates XACML-PDP database connection Downloads dmaap simulator instead of compiling it for xacml-pdp,apex-pdp and distribution Changes from Jim, Jorge and Chenfei Issue-ID: POLICY-2325 Change-Id: I28ff3384f9ae9b7d1ce6940eb62aa87278e7a9c5 Signed-off-by: Bilal A <bilal@research.att.com>
2019-12-17Updating CSITs to pull required imagesBilal A1-3/+6
LF scripts delete the images that don't have "-latest" at the end. These changes instead of pulling images based on exact pom.xml file version, now pull images with tags: major.minor-SNAPSHOT-latest Issue-ID: POLICY-2286 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: Ieebf0f2587e4b4f26152a1199a29ba4c6e93a298
2019-09-10POLICY: update of apache-maven repo URLMartin Klozik1-2/+6
Allow automatic selection of the best apache mirror server to avoid hardcoded mirror server in apache-maven download url. This change should increase reliability of POLICY CSIT test plans in case that some mirror servers are experiencing issues. Originally used server is set as preferred, i.e. it still will be used if it's available. In case of failure of maven installation, test plan execution will be terminated with failure. Change-Id: Ia765652b42e6a20716f5e76304916602852b5654 Issue-ID: POLICY-2046 Signed-off-by: Martin Klozik <martin.klozik@tieto.com>
2019-07-03Pull correct docker images for master branchBilal A1-1/+16
Enables Policy CSITs for API, PAP, Distribution, Drools-applications, Apex-PDP and XACML-PDP to pull correct docker images based on the code branch. -------------- Updating the policy model json in apex-pdp csit Changes were made to read the policy model as proper json instead of json formatted string in APEX-PDP. With this fix in place, the policy tosca json file need to be updated with the proper json. Issue-ID: POLICY-1836 Issue-ID: POLICY-1796 Change-Id: I6b99c8ae9cb78dd8ebddc522bc2a7080ec6e5735 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech> Signed-off-by: Bilal A <bilal@research.att.com>
2019-06-05Run DB script before starting other containersJim Hahn1-22/+7
The other containers were starting before their user names had been added to the DB. Consequently, they were aborting at start-up. Modified the various setup.sh scripts to run the DB-init script before starting the remaing containers. Also add start_all to start the containers and wait for the ports to start listening, eliminating the need for the "curl" tests in the setup.sh scripts. Also removed version numbers from some yml files. Change-Id: Idd9ff81b3ab4a78926b644f22360c9222afe82d5 Issue-ID: POLICY-1829 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-24Xacml-PDP CSIT tests with DmaaP SimulatorMichael Mokry2-5/+78
1. Added test cases for creating policy, deploying policy, and getting a decision for monitoring policies 2. Included statistics check between some tests 3. Modified to use dmaap simulator, policy-pap, and policy-api for end to end tests 5. UPDATE: made changes per Ajith's review 6. Removed most config overrides and changed dmaap to message-router where appropriate Change-Id: Ia9935193f189f249e11f23b2ffe49f87090b7b54 Issue-ID: POLICY-1767 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-05CSIT tests for PDPX Healthcheck/StatisitcsMichael Mokry3-0/+55
- Added csit setup and teardown scripts - Added test plan - Added xacml pdp test robot script - Modified api test with correct path Change-Id: I8844f8c75f5c39877410d406b064df7ba6049e1a Issue-ID: POLICY-1436 Signed-off-by: Michael Mokry <michael.mokry@att.com>