summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-07-20Use new RestClientParameters class in distributionJim Hahn11-85/+53
Replaced LifecycleApiForwarderParameters with RestClientParameters. Also modified the code to get the HttpClient objects once. This requires changes to property files in CSITs and OOM: - rename "hostName" to "hostname" - rename "isHttps" to "useHttps" and move it inside the api & pap structures Issue-ID: POLICY-3456 Change-Id: I654c32c9b6628263a68d821e11c5a316e8b6e2cc Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-07Use lombok in policy/distributionRam Krishna Verma29-908/+105
Use lombok for getter, setter, constructor & builder functions. Remove unused classes. Remove duplicate classes for testing exceptions. Issue-ID: POLICY-3393 Change-Id: I8a565bc6a5699b8716982f84e03b6a11d08ce65b Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-07-05Use lombok in policy/distributionRam Krishna Verma5-200/+31
Issue-ID: POLICY-3393 Change-Id: I4221d8c6ecff3b529e7cd65f467bcf9bd3ac758d Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-18Fix new checkstyle issues in distributionJim Hahn2-2/+3
The new version of checkstyle identified new issues. Fixed those. Issue-ID: POLICY-3286 Change-Id: I15adece9fa2e136108febc0d74af6c0d55f975c5 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-25Fix broken junits in policy-distributionJim Hahn5-29/+61
Changes in policy-common broke some junits in policy-distribution. Some issues were due to the use of lombok ToString annotations, while others appear to be due to parameter groups being previously registered - don't really know the issue there, though probably the parameter group name is now being set, while it wasn't before. In any event, fixed the junits. Issue-ID: POLICY-3298 Change-Id: Iaca9b2ec2c42582e9083ad5825c84cdc8ebc9d6c Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-13Remove csit folder from policy/distributionRam Krishna Verma6-145/+0
The csit test files for all repos have been consolidated in policy/docker to maintain them at single place and allow us to trigger verify jobs in gerrit reviews. Issue-ID: POLICY-3257 Change-Id: I864ba9502753a62dab79aa3f3c55c8689ab62cbd Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-10Merge "Refactor policy/distribution csit tests"Pamela Dragosh1-28/+25
2021-05-07Fix sonars in policy-distributionJim Hahn1-1/+1
Fixed: - more cases of "var" Issue-ID: POLICY-3285 Change-Id: I41345dfde611497e848b1d207b34eeda1c2c3feb Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-07Refactor policy/distribution csit testsRam Krishna Verma1-28/+25
* Removed the deprecated methods. * Removed duplicated code. Issue-ID: POLICY-3257 Change-Id: I1252a625096bb2cfcea4cdd58197c3bf84358aba Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-06Fix sonars in policy-distributionJim Hahn15-53/+52
Fixed: - use "var" instead of actual type Issue-ID: POLICY-3285 Change-Id: I0dba2f96870722b4071ac0085287bc91a27dde88 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-04-29Remove GroupValidationResultJim Hahn22-618/+270
Removed GroupValidationResult, replacing it with BeanValidationResult. Modified the ParameterGroup subclasses to use BeanValidator, adding annotations where needed to trigger the validations that had been automatically performed by GroupValidationResult. Issue-ID: POLICY-2059 Change-Id: Ib5c0dc0ac3762e68307e63f5ce29efb49208e55d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-04-16Refactor DistributionCommandLineArguments classadheli.tavares4-314/+122
CMD Class to use the CMD Handler from Common. Issue-ID: POLICY-3129 Change-Id: I2219cdb7db5669de71c3b2b90c496321b61d14eb Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-04-07Merge "Use sh instead of ash in distribution"Pamela Dragosh1-2/+2
2021-04-07Use sh instead of ash in distributionJim Hahn1-2/+2
Issue-ID: POLICY-3160 Change-Id: If642e98c8639b0065eea38ec41fc4923a07091b7 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-30Distribution S3P testadheli.tavares17-94/+215
Updating scripts and files related to S3P tests. Issue-ID: POLICY-3113 Change-Id: I6c6d50a2f0e6b47deac5e505fb841eebbbbea437 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-03-19Delete keystores from distributionJim Hahn4-11/+10
The Keystore is no longer needed in the tarball, as it is supplied externally by the CSITs and Helm charts. Deleted that file. Also modified the junits to use utils-test to generates keystores at runtime, thus deleted the junit keystore file, too. Issue-ID: POLICY-3143 Change-Id: I9daf6da10f2027880c260bd6f529bf6c6e7c2e91 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-18Support self-signed certificates in distributionJim Hahn2-4/+5
Also modified the code to work with any HTTP response code in the range 200-299. Issue-ID: POLICY-3143 Change-Id: Id7bcb0c98714c6d98ad7f5d7ceb3b033906aeab1 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-16Update policy-keystore with newer certificatesjhh2-0/+0
Issue-ID: POLICY-3139 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I7e228797bc5f51715c86141a279a990699fa6fe4
2021-03-12Address plugin-not-found issuesJim Hahn1-30/+1
Removed references to archetype-packaging and lifecycle-mapping, where unnecessary due to pom inheritance. Issue-ID: POLICY-3126 Change-Id: Id89fcec8dffd841445fe37959f2d17777ad98a19 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-11Bump distribution to 2.6.0-SNAPSHOTpd124815-19/+19
Issue-ID: POLICY-3105 Change-Id: I37f09fb3edb9329fa8a0138b81dbc5fafc5864fa Signed-off-by: pd1248 <pdragosh@research.att.com>
2021-03-10Merge "Add code coverage for reception package"Ram Krishna Verma13-0/+694
2021-03-10Bump policy-distribution to 2.5.2-SNAPSHOTa.sreekumar15-15/+15
Change-Id: Ibb79e61fc7d3923f123539873a5a08e599c175ab Issue-ID: POLICY-3127 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-03-10Release policy-distribution 2.5.1 dockera.sreekumar1-0/+8
Change-Id: I67ceead7f7724b4261e7cb1afc9384ce86627930 Issue-ID: POLICY-3127 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-03-10Release policy-distribution 2.5.1 maven artifactsa.sreekumar1-0/+5
Change-Id: I5a865c03d88b8c2e4ac2f3d00535b197e386bde3 Issue-ID: POLICY-3127 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-03-10Point to policy-models 2.4.1a.sreekumar1-1/+2
Change-Id: Ifa503246a966810c6254178765910cd6f038b429 Issue-ID: POLICY-3127 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-03-10Add code coverage for reception packageadheli.tavares13-0/+694
Issue-ID: POLICY-3090 Change-Id: I79bf20363644fe39ed532399ecf59740192f7bb9 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-03-04Code coverage for Policy distributionadheli.tavares2-1/+95
Added code coverage for some missing instructions on main package Issue-ID: POLICY-3090 Change-Id: I1ba870a4b3c7f63f6c00dfc3f4b908eee7ca701b Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-02-24Update info.yaml in distributionRam Krishna Verma1-2/+2
Issue-ID: POLICY-3028 Change-Id: I357f910ce74bd135522eb7ec2c76d97fe3195f74 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Bump distribution to 2.5.1-SNAPSHOTRam Krishna Verma15-15/+15
Issue-ID: POLICY-3088 Change-Id: Iefa88438d23defeb73875ec4de9be29541b24b89 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Release distribution 2.5.0 docker imageRam Krishna Verma1-0/+8
Issue-ID: POLICY-3088 Change-Id: Ib5ae6daf8f5b5fb192c76302d2fb009676bd7b22 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Release distribution 2.5.0 versionRam Krishna Verma1-0/+5
Issue-ID: POLICY-3088 Change-Id: I73e698c7fd356e209d22a23e23fc5f9632e22064 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Point to released version of jreRam Krishna Verma1-1/+1
Issue-ID: POLICY-3088 Change-Id: Id4b8058061d81b676210014146c77531339c9d62 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Point to released version of dependenciesRam Krishna Verma1-3/+3
Issue-ID: POLICY-3088 Change-Id: I244d8b061e58b624f197a2741ada25447047b18d Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-09fix for workspace accommodationTaka Cho1-1/+1
the config/csar should be under /w/workspace/policy-distribution-master-project-\ csit-distribution/distribution/csit/config/csar after checking on jenkins sandbox Issue-ID: POLICY-2895 Change-Id: I03abf0f0f1793cfb84f3eec7d610cadb8da41393 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-02-05move distribution csit to policy repoTaka Cho6-0/+148
move distribution csit plans/tests to policy/distribution repo move config to policy/distribution repo also Issue-ID: POLICY-2895 Change-Id: Ie4cd51bb29c74ea78ea0e9d545423839ced85b9b Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-01-18Fix bug - cast as longPamela Dragosh1-1/+1
Sonar wants to promote one value to a long, to avoid risk of overflow before assignment. Issue-ID: POLICY-2908 Change-Id: I2a92cfd8e437dac3f77ee0366993ae28b2c4c05e Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-01-15Remove unused import and add commentsPamela Dragosh1-8/+26
Removes unused import and also adds a check for file size. Since these entries are opened in memory, use NOSONAR to clear sonar security hotspot. Issue-ID: POLICY-2908 Change-Id: Ic3511a3f59cd2d78301316df209de5da1e25acdb Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-01-14Avoid path injectionPamela Dragosh1-3/+29
Adding a check to ensure that a zip file cannot be corrupted with a path injection to open a stream somewhere else in the file system. Issue-ID: POLICY-2908 Change-Id: Iaa75fc8c14831ad73fa7ab59c618909ff5af454c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-01-06Changed identifiers to concept identifiersRam Krishna Verma1-4/+5
The class ToscaPolicyIdentifierOptVersion is replaced by ToscaConceptIdentifierOptVersion in policy/models. Made the corresponding changes in policy/distribution. Issue-ID: POLICY-2900 Change-Id: I10fb99ecd4f52a811cde49fbc9e35ae2eb28596a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-01-05use jre base 2.2.0 - distributionTaka Cho1-1/+1
use jre base 2.2.0 Issue-ID: POLICY-2917 Change-Id: Iac8e53e8144b54b02bebb133f5bd4c1e616ffe4c Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-12-04Sonar issues with visibilityPamela Dragosh3-3/+6
S5993 Change the visibility of this constructor to "protected". Issue-ID: POLICY-2908 Change-Id: Id7b7d908eb687345f4d91b05869b3925c8694b05 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-11-30move all bash to ash shell scripts - distTaka Cho2-7/+7
bash scripts convert to ash Issue-ID: POLICY-2847 Change-Id: Iee0aacfdf01425cb2b6e6347672ebdd82ec205e1 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-10-27Point to snapshot versionsRam Krishna Verma1-3/+3
Issue-ID: POLICY-2875 Change-Id: Ibe0d79c4167b1ab8b66dee63064db057a6ae2501 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-10-27Bump distribution master to 2.5.0-SNAPSHOTRam Krishna Verma15-16/+16
Issue-ID: POLICY-2875 Change-Id: I5d447736a0d74bdce6f6907808d9a7c35a4bf8e0 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-10-20Bump distribution to 2.4.4 SNAPSHOTJim Hahn15-15/+15
Issue-ID: POLICY-2869 Change-Id: Iccbc23191763dcb9a2781973e29a85e0e34386cf Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-20Release distribution 2.4.3 docker7.0.0-ONAPJim Hahn1-0/+8
Issue-ID: POLICY-2869 Change-Id: I0a1f62b2ee424c0c91c71e0e294f8db9f6f806d2 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-20Release distribution 2.4.3 artifactsJim Hahn1-0/+5
Issue-ID: POLICY-2869 Change-Id: Ia646e8aac11d1a26bdfa338eb5992c5f2375a799 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-20Point distribution to models 2.3.5Pamela Dragosh1-1/+1
Issue-ID: POLICY-2869 Change-Id: I21bffaf0530d6887241b138f1ae58421f9dbb1e0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-10-07Bump distribution to 2.4.3-SNAPSHOTRam Krishna Verma15-15/+15
Issue-ID: POLICY-2839 Change-Id: I0de77e37818fb5da771003fbaefc74e97d0ef404 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-10-07Release distribution 2.4.2 docker artifactsRam Krishna Verma1-0/+8
Issue-ID: POLICY-2839 Change-Id: I7b2e5a9f3d6cf3c6222088452a3624d2421772fc Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>