aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/policy
AgeCommit message (Collapse)AuthorFilesLines
2019-09-09Merge "Updating distribution csar file with policyType as per new model"Daniel Rose2-0/+0
2019-09-09Updating distribution csar file with policyType as per new modela.sreekumar2-0/+0
Change-Id: I261f94ca138e55346b4b2880f0be7b8259c8f1e7 Issue-ID: POLICY-2047 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-09-09Fix policy type json files as per new modelramverma1-211/+201
As per updated model, policy type & data type are represented as Map directly instead of List of Map earlier. Updating the json files to adapt to this change. Issue-ID: POLICY-2047 Change-Id: Id46b6d20f3c1cb727909b0825066e4763120e46a Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-08-29Change policy-distribution csit test casesa.sreekumar6-0/+219
Change policy-distribution csit test cases to support ToscaPolicyType and ToscaPolicy. Change-Id: Ic6539a2c6f3d2a5b0a4a0b66ce456512d909a320 Issue-ID: POLICY-1893 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-07-09Changes to support topic.properties file removal in policy reposa.sreekumar1-1/+1
Change-Id: Ic1e35a7672da4386c22c5a51d5f95c41c50784f0 Issue-ID: POLICY-1744 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-07-03Pull correct docker images for master branchBilal A6-19/+21
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-17Removing unnecessary mounts in APEX CSITa.sreekumar9-218/+9
In the end to end csit test cases of APEX, currently we are mounting the config files for APEX and PAP. This is not necessary. Change-Id: I10f9ed509e4bb537cc91f145dde34aeb8c0d9b99 Issue-ID: POLICY-1863 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-06-13Add heart beat interval to CSIT PAP configJim Hahn1-0/+1
Only apex CSIT overrides PAP's defaultConfig.json, so only had to add the new parameter to that one file. Issue-ID: POLICY-1846 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: Iba15c1db0d03dc42c8f5c058b9bc8e9ff55c42b4
2019-06-05Run DB script before starting other containersJim Hahn4-12/+81
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 Mokry3-0/+118
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-05-07Adding end to end CSIT test cases for PDP-Aa.sreekumar11-0/+318
1) Adding test case to do health check of PDP-A. 2) Adding test case for end to end testing - create policy type and policy using Policy API, deploy policy using PAP API and then execute policy in APEX engine. Change-Id: I97b208f4d7c319f993515719795d022ddfc429fa Issue-ID: POLICY-1739 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-04-30Restructure CSITs for info and timeoutsjhh3-42/+131
Change-Id: I8a1bf5d44da267e58f26e877fc0eba7189166424 Issue-ID: POLICY-1712 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-04-19Flesh out PAP CSITsJim Hahn3-0/+282
This exercises all of the PAP REST APIs, except for the simple policy "deploy" API. Change-Id: I681c4c40f05f6e343a782e764f7f939ecbb31258 Issue-ID: POLICY-1672 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-04-18Finish drools CSIT infrapdragosh6-21/+304
Basic health check for now. Need to have ci-management jobs enabled for this to work on every merge. Cleaning out unused scripts and mock server. Renaming policy engine script so its obvious that is what it is for. Issue-ID: POLICY-1651 Change-Id: I469823795d4a9f5531d150610ba2ed0b75585677 Signed-off-by: pdragosh <pdragosh@research.att.com> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> Signed-off-by: pdragosh <pdragosh@research.att.com> Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-04-15DB Connection Setup for API and PAP for CSITBilal A4-0/+124
1) Adds CSIT Test for API 2) Adds a mariadb container setup and configuration for API. 3) Adds a mariadb container setup and configuration for PAP. Change-Id: I9beea4f2445215bc95962ebceb4ec626dd0d5521 Issue-ID: POLICY-1270 Signed-off-by: Bilal A <bilal@research.att.com>
2019-03-14Adding Policy/drools-pdp CSIT "Alive" TestBilal A1-0/+208
Issue-ID: POLICY-1459 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I2e33e18feaff5882eb45012ffab16f47f3153c41
2018-12-17Restart docker if mariadb fails to startjh73581-15/+49
Also modified script to use a different mechanism to get the host IP (copied from CSIT setup.sh), one that should work in developer VMs as well as in the Jenkins environment. Change-Id: Ide454ff827ebd90f55b699f16e5f7f6eb40bd1d1 Issue-ID: POLICY-885 Signed-off-by: Jim Hahn <jrh3@att.com>
2018-10-02Change to AAF-compatible default credentialsJorge Hernandez1-1/+1
Change-Id: I4a5f5bb716a5acd0d823ca29d85defeebbcb55ef Issue-ID: POLICY-1156 Signed-off-by: Jorge Hernandez <jh1730@att.com>
2018-09-27Adjust relative paths for CSIT filesGary Wu1-1/+1
Remove leading test/csit/ from all relative paths to accomodate the move into integration/csit repo. Change-Id: Id9482b46df839f5eba28135e9f987a3eda1d7d94 Issue-ID: INT-671 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-09-27Move CSIT to integration/csit repoGary Wu3-0/+223
To facilite branching of CSIT tests, all CSIT test code and scripts are relocated to the integration/csit repo. Change-Id: I1e4c0eff44691f73f8098b3c52764107f6b8b8df Issue-ID: INT-671 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>