summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-08-16Add LifecycleApiForwarder in policy/distributionramverma15-64/+1029
* Adding implementation of LifecycleApiForwarder in policy/distribution for forwarding policy to new components (PAP & API). * Adding related test cases and json files for testing. * Created a rest simulator to use for testing the API calls. * Fixed review comments Issue-ID: POLICY-1890 Change-Id: I6682e0366206d3f4ac77f60b676f40a0fd1aad02 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-08-08Upgrade to snapshot integration parent artifactBruno Sakoto1-1/+1
Issue-ID: POLICY-1603 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: If51a76b5b5701b6692e03daa3a0e21c36a2b3530
2019-08-06Changing parameters to use ParameterGroupImplramverma28-1107/+252
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 ParameterGroupImplramverma27-605/+467
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-26Add lombok.config to DISTRIBUTIONJim Hahn1-0/+2
This prevents sonar from checking lombok annotations for code coverage. Note: lombok is not currently used in the project, but is expected to be soon. Adding the config file now so-as to avoid any oversight later. Change-Id: I01dd024e492e5111081e6e23ce2f0bb3cf1b05ad Issue-ID: POLICY-1938 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-07-23Update PolicyDecoderCsarPdpx to match policy/apiramverma2-18/+18
Lifecycle API's for creating policies & policy types in policy/api expects ToscaServiceTemplate as input instead of ToscaPolicy or ToscaPolicyType. Hence, changing the return type of decoder to generate & return ToscaServiceTemplate instead of ToscaPolicy. Change-Id: I4fb92738e15ee7e2868741f7ca50cf09429d8cde Issue-ID: POLICY-1888 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-07-21Changing policy decoder to support Toscaramverma6-44/+58
1) Updated PolicyDecoderFileInCsarToPolicy to parse ToscaPolicy & TocsaPolicyType from the given csar. 2) Change the parameters 3) Tests cases updated/added. Change-Id: Ic8d652ae8043d5d332f663a6862eb08e282591cf Issue-ID: POLICY-1889 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-07-19Modify policy/distribution to use RestServer from commonJim Hahn13-327/+94
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-19Fix proprietary licensesliboNet1-0/+0
remove the txt file from generated csar file Change-Id: Ib8074b70d955440f22ea95781a698fb7e084bfb5 Issue-ID: POLICY-1867 Signed-off-by: liboNet <libo.zhu@intel.com>
2019-07-17Changing policy/distribution to use policy/modelsramverma31-518/+465
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-11Removing docs from distribution reporamverma3-710/+0
The documents are moved to policy/parent and hence removing them from distribution repo. Change-Id: I96f37b13280be6fc303d2d43e4720d14286de0e5 Issue-ID: POLICY-1898 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-07-08Fix distribution due to sonar changes in commonJim Hahn3-58/+44
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-testramverma3-4/+9
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 Dragosh15-15/+15
Released 2.2.1 Issue-ID: POLICY-1737 Change-Id: I41bf18cc17f3e287d59da86ed3cc21dc8dcafd9a Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-07-01Merge "Upgrade to released artifacts"2.2.0Jim Hahn1-3/+3
2019-07-01Upgrade to released artifactsPamela Dragosh1-3/+3
Policy/common, models and apex are released Issue-ID: POLICY-1737 Change-Id: I0cefaad8ad5791d07fe19382c12c5f0421361588 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-28Add curly braces in shell script fileshaoqiu1-2/+2
According to comment: https://gerrit.onap.org/r/c/policy/xacml-pdp/+/90495/1/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh#43 Issue-ID: POLICY-1702 Change-Id: Ie7c37a07dfc33f6b6bca70d9f9c2cb4cfb3377f5 Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-06-27Merge "Remove POLICY_DISTRIBUTION_HOME in Dockerfile"Pamela Dragosh2-13/+11
2019-06-26Fix distribution latest tagpdragosh1-13/+13
Eliminating the patch - using Rashmi's changes. Issue-ID: POLICY-1737 Change-Id: I4a790b3da6de823bb744af270f541c0699ed8092 Signed-off-by: pdragosh <pdragosh@research.att.com>
2019-06-26Remove POLICY_DISTRIBUTION_HOME in Dockerfileshaoqiu2-13/+11
Update the policy-dist.sh and Dockerfile according to the comments in commit: https://gerrit.onap.org/r/c/policy/api/+/89972 Issue-ID: POLICY-1702 Change-Id: Ia3d2ce356baac3a657da879fb9ccf5eefd2a9624 Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-06-20Upgrade to release 3.0.0 parentPamela Dragosh1-1/+1
Policy/parent released Issue-ID: POLICY-1737 Change-Id: Ie2b62644526d49bc13ada05f39fc0551e5c5e428 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-06-19Change getCanonicalName to getName in distributionJim Hahn5-5/+9
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 Hahn5-9/+9
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 Dragosh15-20/+20
Due to dublin branch. Issue-ID: POLICY-1747 Change-Id: I889d3c5276a070404eeba86d99ca82852d2645e5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-22Update INFO.yaml to add Jim and Ramliamfallon1-1/+17
Issue-ID: POLICY-1775 Change-Id: I9dc75811f0d65ed9533c0485c33bf623da4fda7a Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-05-16Step snapshot version of policy-distributionliamfallon15-15/+15
Issue-ID: POLICY-1630 Change-Id: Ie107fa87bdce76eec39a8ee5ae55b700236a3017 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-05-15Upgrade to release versions4.0.0-ONAP2.1.0Pamela Dragosh1-2/+2
Released policy/engine 1.4.0 and apex engine 2.1.0 Issue-ID: POLICY-1630 Change-Id: Ib39c9daae5966791f88885485978c1b4b95738c5 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-05-13upgrade sdc tosca parse to v1.5.1liboNet8-7/+7
update pom.xml to use v1.5.1 for sdc-tosca parse update Extract file since the DM's change update the csar file based on new DM update Test file to reflect the new CSAR file Change-Id: I90da979ff1cedbdedadacc46386aa5ea0e7b6711 Issue-ID: POLICY-1720 Signed-off-by: liboNet <libo.zhu@intel.com>
2019-05-13Upgrade policy/parent & policy/common in distributionramverma1-2/+2
Change-Id: Iada6e88ac68f4cea874d2cf832da77657df576e6 Issue-ID: POLICY-1630 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-04-24Rebase image on policy-common-alpineDmitry Puzikov2-19/+8
Added exact version of base image Issue-ID: INT-999 Change-Id: I149b92c6e28d0dd325f9601a6aa979767d0a2e9b Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
2019-04-16Merge "One year cert with new component names"Pamela Dragosh1-0/+0
2019-04-16Fix more sonar issuesLianhao Lu2-21/+24
Fixed the sonar issues: S134, S3725, S2129. Issue-ID: POLICY-1638 Change-Id: I1a91b8e5e071a770faf8182e8ac1ada04b63599e Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-04-15One year cert with new component namesjhh1-0/+0
Change-Id: Ide8130ead1e5aff8d8346cb24f82233e64d4c144 Issue-ID: POLICY-1580 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-04-12Fix sonnar issuesLianhao Lu2-18/+14
Change-Id: Ic9ad2d733ace26fdd085a03af901783192d72a79 Issue-ID: POLICY-1638 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-04-11Gracefully release resource in file reception pluginLianhao Lu1-25/+28
In the FileSystemReception plugin, we need to shutdown the thread pool to release the resources gracefully. Change-Id: I800e4070d7bf8c052d964139117a68dc48c50f76 Issue-ID: POLICY-1631 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-04-11Change logging from FlexLogger to SLF4JLianhao Lu3-17/+22
Replace the FlexLogger with SLF4J in forward plugins. Change-Id: I20077f1a400cd1a28b4b32f877d20d5628af881c Issue-ID: POLICY-1346 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-04-10Add multi-thread support in FileSystemReceptionHanderLianhao Lu7-18/+72
By adding multi-thread support in FileSystemReceptionHander, we can have a more thorough s3p test to test performance & stablity in multithread situations. Change-Id: Id263435531e26dcbadfbda6f82b26ac54a72ba1a Issue-ID: POLICY-1274 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-04-10Add a new policy file log forwarder.Lianhao Lu5-0/+483
By introducing the new file log policy forwarder, we now could remove dependency to external pap/pdp engine during s3p test, and focus only on the performance and stability of the pssd instead. Change-Id: I769d4f4a5425c82fa84e5fae20f08b6527bd5d70 Issue-ID: POLICY-1274 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2019-03-17Add NSS libraries to imagesJorge Hernandez1-1/+2
Alpine OpenJDK was updated 2 days ago (3/14), this upgrade seems to break java applications that depend on libnss*.so OS libraries, which seem are no longer installed with the jdk. Added some other libraries to aid when debugging. Change-Id: I97e58b963420a43e91f9596ed72a82185a20d859 Issue-ID: POLICY-1604 Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
2019-03-15Update INFO.yaml fileJessica Wagantall1-3/+26
Update missing information blocks and indentation to pass verify job. Change-Id: I6bfa10c8a3d214884882edd3ee9d0e8d02245113 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2019-03-06Use Alpine as base docker image in distributionning.xi2-20/+10
Issue-ID: POLICY-1550 Change-Id: I16801ad4fa0c2db578a9d1e41adef053df5074be Signed-off-by: ning.xi <ning.xi@est.tech>
2019-03-01Merge "Changes directory structure of S3P Tests"Pamela Dragosh330-0/+51687
2019-02-28Update INFO.yaml Liam's emailPamela Dragosh1-1/+1
est.tech Issue-ID: POLICY-1556 Change-Id: I2d49ebac72911e59e0d0f12546652280593e0a26 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-02-27Changes directory structure of S3P TestsBilal A330-0/+51687
Changes Include: a) Moving performance and stability tests into two separate directories. Change-Id: Ib98713b2c37658de16c5eb6ee8918b867bdf5b8a Issue-ID: POLICY-1462 Signed-off-by: Bilal A <bilal@research.att.com>
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-07Fix docker build in policy/distributionramverma2-9/+1
policyLoger.properties file was removed as part of moving to slf4j for logging. But the assembly.xml file was still refering to it. Since the file was not there the /bin directory was missing from the created package. Resulting in docker builds failing. Change-Id: Ia800c949d180d592aa0adb6cf61773b37329be48 Issue-ID: POLICY-1346 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-02-05Change policy/distribution logging to slf4jramverma30-561/+419
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-25Fix compilation error on policy-distributionramverma3-11/+17
Change-Id: Ic190774c74c11a2d11c3b3b7e0144f69cd8770e8 Issue-ID: POLICY-1428 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-01-22Fix issues in policy-distributionramverma7-35/+143
1) Creating a new thread for watching directory path for new file. 2) Updating distribution statistics from FileSystemReceptionHandler. Change-Id: Ic539f2cad015f0756407fe910f309a2ea661a764 Issue-ID: POLICY-1437 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-01-22Remove properietary license from CSARliboNet8-174/+0
Remove these license from the Artifacts/Information directory which will NOT impact the test in S3p and reception-plugins Change-Id: I6551d37b704b2191b865af8c69f01eae685d0adb Issue-ID: POLICY-1433 Signed-off-by: liboNet <libo.zhu@intel.com>