aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy
AgeCommit message (Collapse)AuthorFilesLines
2020-04-20Add XACML optimization test to CSITJim Hahn6-218/+90
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-18Merge "Add Naming policy test for xacml CSIT"Morgan Richomme2-14/+42
2020-04-16Add Naming policy test for xacml CSITJim Hahn2-14/+42
Issue-ID: POLICY-2491 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I06db49336860f7fccb5b72f769f9f9bdcd42f11a Signed-off-by: Jim Hahn <jrh3@att.com>
2020-04-15End-to-end policy CSITJim Hahn1-6/+94
Modified the CSIT for drools-apps to use more components: - api to create policies - pap to deploy policies Also removed tabs. Issue-ID: POLICY-2491 Change-Id: Iacd8d1953068bb718a63de8813dd1c307c21b1f8 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-04-14Add CSITs for vCPE, vDNS, and vFW policiesJim Hahn1-29/+176
Runs xacml and drools, but does not currently run api or pap. PAP actions are simulated by injecting messages onto the dmaap topic read by xacml-pdp and drools-pdp. All other systems (e.g., dmaap, aai) are simulated using policy-models-simulators. Issue-ID: POLICY-2491 Change-Id: Ic05e3a6514e84040f5a965aa8d2cac9ed2e9abc2 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-04-06remove usecases testsjhh1-11/+0
Issue-ID: POLICY-2474 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: If69a11c7c690d8a5ac2d3b2a5b81f9d7d5fe5197 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2020-04-02Move policy preload to robot scriptJim Hahn2-0/+62
Moved the policy preload for the PAP CSIT from setup.sh to the robot script; policy type preload isn't needed, so it was removed altogether. Also cleaned up some unneeded entries related to networking and ports in the docker yml files. Issue-ID: POLICY-2464 Change-Id: I1794dd905f2dcbdbe5f8da8c106b43b98d9a97ea Signed-off-by: Jim Hahn <jrh3@att.com>
2020-03-20Fixing APEX and Distribution csit failures due to invalid key name in policya.sreekumar2-3/+6
When the key name doesn't match with the name field in policy, creation of policy is failing. Due to some recent changes in API and models. So, correcting the policy in this review. Change-Id: I8a57f734a25f46fef623edb078fabc2641722816 Issue-ID: POLICY-2438 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-03-17Add frankfurt to drools-apps CSITJim Hahn1-0/+11
Issue-ID: POLICY-2434 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I92ce55b8f024e6bb935b21812ceb633976b0ddf8
2020-03-11Fixing policy csits with the tosca version changea.sreekumar9-51/+42
Also making the apex test policy changes related to rhino migration. Change-Id: I20f6c87bf6e2208840eb62a8109f8a98d67e0327 Issue-ID: POLICY-1402 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-03-03CSIT fixes for frankfurt breakagea.sreekumar29-723/+97
CSITs as per the latest policy type validation changes. Drools and drools apps fixes. Removed policy-health. Change-Id: I086bf747059435e12d15e0481b00c97c20eaadc1 Issue-ID: POLICY-1402 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech> Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-02-03Remove content section from ToscaPolicy properties in APEXa.sreekumar1-6654/+7340
Currently APEX specific information is placed under properties|content in ToscaPolicy. Avoid keeping under "content" and keep the information directly under properties. Change-Id: Id322df2ae977d4901b81bb70e95ad7e55771869c Issue-ID: POLICY-2332 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2020-01-20Updating the jdk version from jdk8 to jdk11 for CSITsBilal A6-37/+340
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-10Update CSITs for policy delta APIJim Hahn5-107/+36
Issue-ID: POLICY-2284 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I85c613cd6f26dbccbca2ffc6173f4955ab890ce2
2019-11-12Fixing APEX CSIT failurea.sreekumar1-5/+1
APEX CSIT was using PAP's Group Deploy operation to deploy policies. The group deploy operation's request body got invalid due to removal of a PolicyType. GroupDeploy operation should be ideally used instead of SimpleDeploy operation. So, updating the GroupDeploy request body and fixing this. Change-Id: I75c16ce577ee08b81826e633ad2f990b1693f23f Issue-ID: POLICY-2227 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-10-24Added CSIT test for abbreviated Monitor decision API callHOCKLA1-5/+32
Issue-ID: POLICY-2167 Change-Id: I8f730b3960fb91807e0b9154947db03cb714f870 Signed-off-by: HOCKLA <ah999m@att.com>
2019-10-21Updated csit for new API endpointChenfei Gao1-0/+14
Issue-ID: POLICY-2161 Change-Id: Id5ae6957fd655f90d29650f5ae5fa73b10a2afe3 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-09-09robot access to list instead of mapjhh1-1/+1
Issue-ID: POLICY-2063 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I4fdff6f2d95af87e36108412a92e8f2936d7f6fd Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-09-09Fix policy type json files as per new modelramverma3-673/+635
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.sreekumar2-2/+31
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-09remvoing json templater useDR695H31-195/+96
Issue-ID: TEST-158 Change-Id: I0ef42c20de50f9aebaf70056cc00d7a7aa61e712 Signed-off-by: DR695H <dr695h@att.com>
2019-07-03Pull correct docker images for master branchBilal A2-3/+6686
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-03we dont use these libraries so removing themDR695H1-4/+0
Change-Id: I91d01f7dd48bd5aad7ea55ab7aa9ce22077991ba Issue-ID: TEST-158 Signed-off-by: DR695H <dr695h@att.com>
2019-05-24Xacml-PDP CSIT tests with DmaaP SimulatorMichael Mokry5-0/+391
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.sreekumar4-2/+530
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-05-02Fix policy/pap csit test casesramverma1-8/+6
Change-Id: I1b382b107f2cd619b81979f0baeb519312c700d9 Issue-ID: POLICY-1723 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-04-19Flesh out PAP CSITsJim Hahn2-0/+131
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 infrapdragosh31-0/+17
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-16Fixing policy file after code changeBilal A1-1/+2
Change-Id: If21e4dfa5735d8804dda4fe26fe9c0ccb0f3f008 Issue-ID: POLICY-1270 Signed-off-by: Bilal A <bilal@research.att.com>
2019-04-15Adds CSIT tests for Policy APIBilal A3-0/+338
Change-Id: Iaec1d8476d90ab15e16549589c18e055b85bb73b Issue-ID: POLICY-1270 Signed-off-by: Bilal A <bilal@research.att.com>
2019-04-15DB Connection Setup for API and PAP for CSITBilal A1-0/+12
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-04-05Added CSIT support for pushPolicy and deletePolicy APIHOCKLA3-0/+40
Issue-ID: POLICY-1616 Change-Id: I6689d0e9908badd31a3fed509546348779f522d8 Signed-off-by: HOCKLA <ah999m@att.com>
2019-03-14Adding Policy/drools-pdp CSIT "Alive" TestBilal A1-0/+17
Issue-ID: POLICY-1459 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I2e33e18feaff5882eb45012ffab16f47f3153c41
2019-03-13CSIT tests for policy/distribution statisticsBilal A1-0/+10
Change-Id: I7aad6452daa3122098e3a4073408deb98291c0be Issue-ID: POLICY-1346 Signed-off-by: Bilal A <bilal@research.att.com>
2019-03-12Fixed CSIT test issue in xacml-pdpMichael Mokry1-4/+4
Changed http to https in robot script Change-Id: Ife1800430382805e03fff99534bcd50bf5dd7a8d Issue-ID: POLICY-1436 Signed-off-by: Michael Mokry <michael.mokry@att.com>
2019-03-05CSIT tests for PDPX Healthcheck/StatisitcsMichael Mokry2-2/+30
- 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>
2019-02-22Merge "Update REST API url in policy/pap test cases"Yang Xu1-2/+2
2019-02-22Update REST API url in policy/pap test casesramverma1-2/+2
Change-Id: I62e05f0c438c0a015cd20eee40352d19aa1c42b8 Issue-ID: POLICY-1480 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-02-21Added CSIT support for listPolicy APIHOCKLA3-2/+29
Issue-ID: POLICY-1488 Change-Id: I27a504ad3c4e8835212d3ab05e48712636b7f402 Signed-off-by: HOCKLA <ah999m@att.com>
2019-02-12Change http to https in robot testChenfei Gao1-5/+5
Changed http to https in robot test since https is enabled for policy-api rest service by default. Issue-ID: POLICY-1270 Change-Id: Id108c956f2265db0e90b97b7e08371ee0df483c4 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-02-11Merge "Fix csit tests of policy/distribution"Gary Wu1-2/+2
2019-02-11Create CSIT tests for policy/papramverma1-0/+28
Change-Id: I0a969749b5cd77949ef1e86fd1962952b3385f88 Issue-ID: POLICY-1480 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-02-11Fix csit tests of policy/distributionramverma1-2/+2
1) Changed the docker image version to 2.1.0-SNAPSHOT 2) Changed the communication protocol to https Change-Id: I042a0a1054f98fd2efb520b92443f1a9f734a9be Issue-ID: POLICY-1346 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-02-06Add csit test plans for policy-apiChenfei Gao1-0/+28
Includes: 1) Added setup, teardown scripts and test plan 2) Added test robot including test cases Issue-ID: POLICY-1270 Change-Id: Id4fe5527609d9e13906d02bccc4ae8bc7c364bd9 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2018-10-02Change to AAF-compatible default credentialsJorge Hernandez1-2/+2
Change-Id: I4a5f5bb716a5acd0d823ca29d85defeebbcb55ef Issue-ID: POLICY-1156 Signed-off-by: Jorge Hernandez <jh1730@att.com>
2018-09-27Move CSIT to integration/csit repoGary Wu30-0/+773
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>