summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-08-30Fix default config in distributionRam Krishna Verma1-2/+2
Issue-ID: POLICY-3526 Change-Id: Iae0d43829eb284a4aed5547d0944b66ccff77396 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-26Merge "Fix sonar issue"Ram Krishna Verma1-1/+1
2021-08-26Fix sonar issueRam Krishna Verma1-1/+1
Issue-ID: POLICY-3077 Change-Id: I53447f551804f4455b65d19d84685ece5cba1c5a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-26Use policy/docker image 2.3.0Jim Hahn1-2/+2
Issue-ID: POLICY-3587 Change-Id: I5d2b4bd64e09121bddbeb1f43d53df998c0fd618 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-23Enable prometheus by default in policy-distributiona.sreekumar1-1/+2
Change-Id: I5bfd9ff7597f10e5eb08c01183bf02a17676afb5 Issue-ID: POLICY-3538 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-08-19Use generic create policy apiRam Krishna Verma2-5/+5
Change lifecycycle api forwarder to use generic create policy api for creating policies. Hence, no need to parse the tosca template and find fields to build the specific url. Issue-ID: POLICY-3545 Change-Id: I848df3cf2e0cbb9136120769293cc466d660036a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-19Add yaml support for policy & policy typesRam Krishna Verma3-1/+36
Adding support for yaml format of policy & policy types in distribution. So that users can either define them in json or yaml format. And then distribute to policy framework. Issue-ID: POLICY-3509 Change-Id: Ifba7486bbc1e6876f0e3e39b0ae5ebe043567029 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-09use url resource for docker-tag -- distributionTaka Cho1-18/+4
use groovy url resource from docker repo to identify the tag for docker Issue-ID: POLICY-3378 Change-Id: Ia2dcb8c3564fcfc7199ce1cda3dd26b7b684cc94 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-03Merge "Use new RestClientParameters class in distribution"Ajith Sreekumar15-131/+65
2021-07-30Use new RestClientParameters class in distributionJim Hahn15-131/+65
This is a re-do of a previously reverted review. It's mostly the same as before, but there are some minor differences. Replaced LifecycleApiForwarderParameters with RestClientParameters. Also modified the code to get the HttpClient objects once. Also removed some unused json test files. This requires changes to property files in CSITs and OOM: - add "clientName" to the api & pap structures - rename "hostName" to "hostname" - rename "isHttps" to "useHttps" and move it inside the api & pap structures Issue-ID: POLICY-3456 Change-Id: I32b04bc3b6880ec7798814dad268143bc3b06faf Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-22Merge "Revert "Use new RestClientParameters class in distribution""Jim Hahn11-53/+85
2021-07-22Revert "Use new RestClientParameters class in distribution"Jim Hahn11-53/+85
This reverts commit b59b14d47b590ff94b7c98348c1617990d03c86f. Reason for revert: needs complete rework Issue-ID: POLICY-3456 Change-Id: I7b1f5bb1a9c8cb681808d52b4d6c18377f6a0250 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-21Merge "Use docker registry properties in distribution"Ajith Sreekumar1-2/+1
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-19Use docker registry properties in distributionJim Hahn1-2/+1
Issue-ID: POLICY-3374 Change-Id: I78ce18ef57fd5655597b169f21f8bae8228773b5 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>