summaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
2020-09-30New sonars in policy/distributionJim Hahn1-200/+81
Addressed the following sonars: - extract common test methods Issue-ID: POLICY-2713 Change-Id: I2c8e957785b7e0d1b66e3bd49d5a8a854149fffd Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-24update default keystoresjhh1-0/+0
Issue-ID: POLICY-2827 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: If5da9a12dad83b3b596ff5e1ac2c1f8fc0987b9c
2020-09-09Bump distribution version to 2.4.2-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-2789 Change-Id: Ic7783fec3955474266fe0e5c4e178b1db21661d8 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-08-21Changes to make policy-distribution container crash with non zero exitCodea.sreekumar2-31/+27
Change-Id: Ic637253513b349ccb3f17b7c3fce1414bd5ec022 Issue-ID: POLICY-2756 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-07-29Allocate a new server port for each testJim Hahn8-71/+97
Junit tests were failing randomly on the build server, perhaps due to the fact that multiple tests attempt to bind to the server port, 6969. Modified most of the tests to allocate their own server port. Issue-ID: POLICY-2713 Change-Id: If40eef7989c9a46e2d458d915ed5bd0281ff0b0d Signed-off-by: Jim Hahn <jrh3@att.com>
2020-07-29Sonar fixes for policy/distributionuj426b2-16/+13
Change-Id: Ia48406096706daaa6a98985c488b4055276863d3 Issue-ID: POLICY-2713 Signed-off-by: uj426b <uj426b@att.com>
2020-07-10Bump policy/distribution to 2.4.1-SNAPSHOTJim Hahn1-1/+1
Issue-ID: POLICY-2695 Change-Id: I1ceafeaa50e8563605e5cbaa50e4b7b7769492f9 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-07-02Replace try/catch blocks with assertj - distwaynedunican7-230/+141
Replaced try/catch blocks in policy/distribution test cases with assertj assertions Issue-ID: POLICY-2451 Change-Id: Ib7ecd13e39abd471bf1424d8a3db22c72ad1e3b8 Signed-off-by: waynedunican <wayne.dunican@est.tech>
2020-06-19Changes for Checkstyle 8.32 in policy-distributiona.sreekumar19-30/+4
Change-Id: I8f9324279f24cc3b9d26f265c3dacd5b61ce856b Issue-ID: POLICY-2188 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2020-05-20Bump distribution master to 2.4.0Pamela Dragosh1-1/+1
Issue-ID: POLICY-2514 Change-Id: I22bdaad652917f0d1a30c297fdfd48b7cabd76dd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-05-19Bump distribution 2.3.3Pamela Dragosh1-1/+1
Issue-ID: POLICY-2514 Change-Id: I6093e20eb2918a5a5ebf070b5a96c58380d8b30e Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-04-15Bump distribution to 2.3.2-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-2378 Change-Id: I09f030b2256d0cefe69d88cdedd3f5dc05472296 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-03-27Use AtomicInteger and other sonarPamela Dragosh1-2/+2
Removed unused logger. Added NOSONAR to main to remove security risk, as we do validate arguments. Used AtomicInteger. Issue-ID: POLICY-2305 Change-Id: I18e91836e914b7fd6e3cd9a950dca58fcd8be5b5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-27Fix comments from last reviewPamela Dragosh1-1/+1
Issue-ID: POLICY-2305 Change-Id: If0778cb7bdade11575cab12c4742274939cd22c7 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-26Remove unused imports and clean logsPamela Dragosh6-10/+59
Unused imports and marked an unused variable. Added m2e eclipse settings (other repos have this). Added some test logback.xml to clear out jetty debug messages. Replaced deprecated newInstance with getDeclaredConstructor. newInstance Either log or throw Exception - chose throw Added some assertions to JUnit test. Issue-ID: POLICY-2305 Change-Id: Ia4e9ce62dc7fb45aea247d470ca7245e694fc26e Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-03-24Bump policy/distribution to 2.3.1-SNAPSHOTRam Krishna Verma1-1/+1
Issue-ID: POLICY-2378 Change-Id: Ib343ff092b761c6642d9d0dcd4538ffd41423602 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-03-18renew policy certs till 03/17/2021jhh1-0/+0
Change-Id: Ic3089d7c8697e500d49d454dfd21e9360a4df893 Issue-ID: POLICY-2402 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2020-02-06Updating module names to resolve conflictsRam Krishna Verma1-1/+2
Issue-ID: POLICY-2355 Change-Id: I84fe65adb91284f1537ed0422aced705e765b05c Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-01-22policy/distribution jdk11 upgradesHOCKLA5-8/+21
Issue-ID: POLICY-1585 Change-Id: I4aa879656c039d9de9c288f0309105c21f4bf285 Signed-off-by: HOCKLA <ah999m@att.com>
2019-12-05change HealthCheckReport URL from self to hostNameHengye3-7/+11
Issue-ID: POLICY-1689 Consolidate Policy Health Check into PAP Change-Id: I00e17610d3e4788008649791c684c0af415863ee Signed-off-by: Hengye <yehui.wang@est.tech>
2019-09-16Bump versions in distribution masterJim Hahn1-1/+1
Also added default branch to .gitreview to facilitate branching in the future. Change-Id: I37d40b122924c35ddfc2e18aed3b126f0dab819c Issue-ID: POLICY-2045 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-08-22update keystorejhh1-0/+0
Change-Id: I4b3bb5f76d58477132cebef3410be547f2adf41d Issue-ID: POLICY-1988 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-08-06Changing parameters to use ParameterGroupImplramverma6-130/+40
1. Changing all the decoders & handlers parameters to use ParameterGroupImpl. 2. Fixed all the test cases. Issue-ID: POLICY-1890 Change-Id: I4a124c0acc650020977ac8e2cee143c72003973a Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-08-02Change parameters to extend ParameterGroupImplramverma4-115/+45
1. Changing all the forwarder parameter groups to extend the ParameterGroupImpl instead of implementing the ParameterGroup interface. 2. Introducing lombok in distribution. 3. Fixing all the affected test cases. 4. Creating parameter group to hold parameters needed for forwarding policies to the new lifecycle API's. Issue-ID: POLICY-1890 Change-Id: I0c8b72f355a610fa5d46daaacc9ef7f06b7cec09 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-07-19Modify policy/distribution to use RestServer from commonJim Hahn12-327/+91
This also entailed removing the local copy of RestServerParameters. Also added an AafFilter, which was missing from the original code. Change-Id: Ibbdce8c395e0149ab540a3704b3554a9d96b9705 Issue-ID: POLICY-1652 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-17Changing policy/distribution to use policy/modelsramverma2-10/+11
1) Changed policy distribution framework to use entities from policy/models 2) Changed all the test cases. 3) Commented few test cases which will be fixed along with code fixes. 4) Will be removing the old policy entities once all the pieces are ready. Change-Id: I1fd7b975b2e072c0b24e429903c9ca4796173929 Issue-ID: POLICY-1888 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-07-08Fix distribution due to sonar changes in commonJim Hahn1-1/+2
Fixed breakages due to changes made in policy/common to satisfy sonar. Change-Id: Ib1e57668f727db1b87a9aa3bc9a8266884f5e994 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-02Use ToStringTester from utils-testramverma2-1/+6
Changing ToStringTester from utils to utils-test. Bumping the policy/common, policy/engine & policy/models version. Change-Id: Id1f1b3f9a4a378c14d1adf2823aaa4c8626c8fd2 Issue-ID: POLICY-1746 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-07-02Bump distribution to 2.2.1-SNAPSHOTPamela Dragosh1-1/+1
Released 2.2.1 Issue-ID: POLICY-1737 Change-Id: I41bf18cc17f3e287d59da86ed3cc21dc8dcafd9a Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-19Change getCanonicalName to getName in distributionJim Hahn2-2/+3
Per javadocs, getName() should generally be used instead of Class.getCanonicalName(). This change only applies to classes; it does not apply to File objects. Change-Id: I7a575900f6d26065563e4907cd2176f690797021 Issue-ID: POLICY-1646 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-06-18Fix junit tests in distributionJim Hahn2-4/+4
Sonar fix broke some of the junit tests for parameters; fixed those. Also fixed some checkstyle errors (e.g., unused imports). Change-Id: I76c57792b82b9c2ddd27bdbc35910e9b11d86ea5 Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-05-31Bump distribution to 2.2.0Pamela Dragosh1-1/+1
Due to dublin branch. Issue-ID: POLICY-1747 Change-Id: I889d3c5276a070404eeba86d99ca82852d2645e5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-16Step snapshot version of policy-distributionliamfallon1-1/+1
Issue-ID: POLICY-1630 Change-Id: Ie107fa87bdce76eec39a8ee5ae55b700236a3017 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-02-18Use gson by defaultjh73581-0/+4
Add a property to force the REST server to use gson instead of jackson. Change-Id: I0dd762e0f9b4a4809f68e5b5498e16136f611d12 Issue-ID: POLICY-1525 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-02-05Change policy/distribution logging to slf4jramverma10-149/+161
1) Changed logging from FlexLogger to SLF4J with logback 2) Fixed test cases of distribution REST endpoints having infinite while loop Change-Id: I1551873b3d348f9a7d2b4f8dfc3ae5dd6462bdb8 Issue-ID: POLICY-1346 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-01-11Fix Noncompliant usage sonar issueliboNet3-6/+4
remove the Thread.sleep about such noncompliant usage rename the funciton name for codestyle's alignment Change-Id: I71b66143d7d68fa58a1a60de70e1836fde7df8c4 Issue-ID: POLICY-1256 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-12-20Fix checkstyle issues in distributionliamfallon3-75/+67
Some fixes for minor checkstyle issues. Issue-ID: POLICY-1221 Change-Id: I86577f47283a6fa97be25d7550ed9c2d7ec026a9 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-12-19add Https support for distribution endpointsliboNet7-3/+370
. add the https into the RestServerParameters interface . update CommonTestData to support https interface . add two cases for healthcheck and statistic https validation . update the package script to use JVM properties . add keystore and truststore to resources dir . update the keystore path for consistency Change-Id: I04b2a3e1afef84eafbb6a22e6fe2122a5a181883 Issue-ID: POLICY-1221 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-11-09Fix sonar/checkstyle issuesPamela Dragosh3-10/+10
The main pom.xml was incorrect, so these issues have creeped into the source code. Issue-ID: POLICY-1256 Change-Id: Ic0b52f3a28f869252120991b0c1946ef8402bcc5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-10-31Set new master version for Dublinliamfallon1-3/+2
Issue-ID: POLICY-1232 Change-Id: Ib72ebd05fb88de05c356f05ee7ca2a4e4d00881c Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-25Fix refering to snapshot in policy/distribution2.0.1ramverma1-1/+1
Issue-ID: POLICY-1213 Change-Id: I7262a00ec35549e63127f8a3730ca8aa75da09aa Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-14Merge "Adding statistics endpoint to distribution"Liam Fallon5-0/+423
2018-09-13Adding statistics endpoint to distributionramverma5-0/+423
* Adding statistics endpoint in DistributionRestController * Adding DistributionStatisticsManager to hold all stats. * Adding StatisticsReport class to represent distribution stats report. * Updating stats at each step in SdcReceptionHandler. * Adding test cases for all code changes. Change-Id: I0b0f97aecc64b18314367fdff6d3ca7bee06efc7 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-13Adding policy decoder to extract file from csarramverma26-113/+577
* Adding decoder configuration parameters infrastructure to support plugin based architecture. Adding a new policy decoder after this will be just creating a new decoder class and its corresponding parameter class. * Adding a new decoder which extracts policy file from given csar. It is written in a generic way to extract file for any pdp like apex, drools. * Adding configuration parameters for the new decoder. The policy file name and policy type is passed as parameter to the decoder. * Fixing few broken package declaration in pdpx decoder tests. * Adding test cases for all code changes. Change-Id: I95e68cebce0f9747ca63b090f9b9116ce8836939 Issue-ID: POLICY-1101 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-11Fix all sonar issues in distributionramverma3-22/+171
* Fixing all sonar issues in distribution * Adding more test cases to improve code coverage Change-Id: I296f96b66046e25c3c462632091f40565ff75478 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-07Parameter Group fields must have gettersliamfallon2-2/+2
Parameter handling is changed so that all fields must have a getter following normal naming conventions. This change brings that in. Issue-ID: POLICY-1095 Change-Id: Idc61960347a67c50f33fc272dcd00ceca7553d95 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-05Refactored reception handler parameter handlingmmis21-395/+444
Refactored parameter handling for configuration of reception handlers as the previous implementation does not align with the plugin architecture (.e. plugin specific parameters being handled in core code) Issue-ID: POLICY-1094 Change-Id: I31a9fc7f712ca43f0f69c42a6d99fa481b02cd4b Signed-off-by: mmis <michael.morris@ericsson.com>
2018-09-04Merge "Set Activator alive to false in terminate"Pamela Dragosh2-1/+4
2018-09-03Set Activator alive to false in terminatekrishnajinka2-1/+4
During terminate the alive status should be set to false instead of true Adding test case to cover the scenario Issue-ID: POLICY-1017 Change-Id: I5c1d13172902cc75da8d0819e6e107b4e8d1b246 Signed-off-by: krisjinka <kris.jinka@samsung.com> Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-30Create code infrastructure for policy forwardingmmis25-83/+733
Added sending of polices from the policy forwarder to the xacml PDP and added handling of parameters for configuring the policy forwarders Issue-ID: POLICY-926 Change-Id: I26effe70769f7edc765470a1a9ad40ed9faad82d Signed-off-by: mmis <michael.morris@ericsson.com>