policy/distribution.git
3 years agoRelease docker images for policy/distribution: 2.7.2 21/128521/1
liamfallon [Tue, 12 Apr 2022 18:57:20 +0000 (19:57 +0100)]
Release docker images for policy/distribution: 2.7.2

This commit releases docker images for repo policy/distribution.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I655dd26cc801bd55d5f17e979d31cbcd802a7bb3

3 years agoRelease policy/distribution: 2.7.2 12/128512/1
liamfallon [Tue, 12 Apr 2022 18:23:27 +0000 (19:23 +0100)]
Release policy/distribution: 2.7.2

This commit releases repo policy/distribution.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: If5666ce1daf9e5093862fb9a28067a32cae36be2

3 years agoupdate references in policy/distribution pom 03/128503/1
liamfallon [Tue, 12 Apr 2022 17:41:50 +0000 (18:41 +0100)]
update references in policy/distribution pom

updated references in the policy/distribution pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Iad3b16598014463b331c891c599f1a4c380bb757

3 years agoError handling when a decoder fails to parse policy 32/128332/2
adheli.tavares [Wed, 6 Apr 2022 08:53:27 +0000 (09:53 +0100)]
Error handling when a decoder fails to parse policy

- catch exception only if it was a parse error (still raises
exception when no decoder found)
- reducing of complexity on acm decoding for sonar
- added some debug logging and exception messages for better
tracking of issues

Issue-ID: POLICY-4006
Change-Id: Ie09aaf541fc06244b84477ecbfe70fc837438a86
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
3 years agoUpdate snapshot and/or references of policy/distribution to latest snapshots 12/127712/1
liamfallon [Fri, 11 Mar 2022 18:03:11 +0000 (18:03 +0000)]
Update snapshot and/or references of policy/distribution to latest snapshots

policy/distribution updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0b6c27012f6ef893b664bb7297c9a5744f6b6d02

3 years agoRelease docker images for policy/distribution: 2.7.1 00/127700/1
liamfallon [Fri, 11 Mar 2022 14:07:48 +0000 (14:07 +0000)]
Release docker images for policy/distribution: 2.7.1

This commit releases docker images for repo policy/distribution.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I1115347e36b812342831d051a35b9caa1b14dec6

3 years agoRelease policy/distribution: 2.7.1 90/127690/1
liamfallon [Fri, 11 Mar 2022 12:08:00 +0000 (12:08 +0000)]
Release policy/distribution: 2.7.1

This commit releases repo policy/distribution.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7c8a3a32350f241271bdf94b8643d82e0fcddf5d

3 years agoupdate references in policy/distribution pom 40/127640/2
liamfallon [Thu, 10 Mar 2022 09:12:48 +0000 (09:12 +0000)]
update references in policy/distribution pom

updated references in the policy/distribution pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I8b6677eda5a64493d7b353826ec4fbe7c2908249
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoRename ControlLoop to AutomationCompsition 40/127440/1
Sirisha_Manchikanti [Mon, 28 Feb 2022 17:10:36 +0000 (17:10 +0000)]
Rename ControlLoop to AutomationCompsition

Issue-ID: POLICY-3938
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: I63188fa9bc5d634d3aeb7e2d7051c4d67b5a202c

3 years agoFix distribution to accommodate object values in policy metadata 93/127093/1
rameshiyer27 [Mon, 14 Feb 2022 10:08:16 +0000 (10:08 +0000)]
Fix distribution to accommodate object values in policy metadata

Issue-ID: POLICY-3832
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I1cb539156acee3a63c9ffa432ec2371941bf9acd

3 years agoAdd distribution app metrics to prometheus 80/126580/1
Ram Krishna Verma [Wed, 12 Jan 2022 19:04:53 +0000 (14:04 -0500)]
Add distribution app metrics to prometheus

Adding the distribution application level metrics
to prometheus.
Adapted the changes so that existing test cases for
DistributionStatisticsManager are not affected and still
provides the full coverage.

Issue-ID: POLICY-3759
Change-Id: I972f107e4ac46c2769dfaeb9bcefa0731bb879ca
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoAdd ControlLoop distribution to runtime 29/126429/2
Sirisha_Manchikanti [Tue, 14 Dec 2021 18:12:07 +0000 (18:12 +0000)]
Add ControlLoop distribution to runtime

This commit unpacks the csar received either from SDC or for local
verification from file-system, prepares the toscaservicetemplate with
needed node-types and data-types, forwards the template to controlloop
runtime components for commisioning of controlloop.

Issue-ID: POLICY-3808
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: Ib3600542aca7b32ae19242c2f924bdaf2ab870a8

3 years agoMoving @NotNull annotation to field level 09/126109/2
lapentafd [Tue, 7 Dec 2021 15:59:49 +0000 (15:59 +0000)]
Moving @NotNull annotation to field level

KeyStorePassword and KeyStorePath values
can be expressed as simply null instead of "null"

Issue-ID: POLICY-3604
Change-Id: I839bce33df4829fcc8d604f8ed1e52e6f50ef988
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
3 years agoUpdate snapshot and/or references of policy/distribution to latest snapshots 35/126035/1
liamfallon [Thu, 2 Dec 2021 15:54:11 +0000 (15:54 +0000)]
Update snapshot and/or references of policy/distribution to latest snapshots

*** This commit is generated by a PF release script ***

policy/distribution updated to its latest own and reference snapshots

Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ibd543fc5349497980f27c6dc574bce31825a7f2e

3 years agoUpdate snapshot of policy/distribution to 2.7.1-SNAPSHOT 63/125963/1
liamfallon [Mon, 29 Nov 2021 11:33:42 +0000 (11:33 +0000)]
Update snapshot of policy/distribution to 2.7.1-SNAPSHOT

*** This commit is generated by a PF release script ***

policy/distribution is update from 2.7.0-SNAPSHOT to 2.7.1-SNAPSHOT

Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I1c58f1903bac793db23227013525640d93bb958b

3 years agoRelease docker images for policy/distribution: 2.7.0 39/125939/1
liamfallon [Fri, 26 Nov 2021 12:07:52 +0000 (12:07 +0000)]
Release docker images for policy/distribution: 2.7.0

*** This commit is generated by a PF release script ***

This commit releases the docker images for repo policy/distribution.

Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I6b4bc5bed0ce02b9ee5d8f19ece54d630e2f638a

3 years agoRelease policy/distribution: 2.7.0 30/125930/1
liamfallon [Fri, 26 Nov 2021 10:41:59 +0000 (10:41 +0000)]
Release policy/distribution: 2.7.0

*** Release Phase 8: This commit is generated by a PF release script ***

This is the eigth phase in releasing images, it releases policy/distribution.

Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ief7893fecf3e7fa20a2cddc4fa5130af87dfb2d5

3 years agoUpdate parent and common references 12/125912/2
liamfallon [Thu, 25 Nov 2021 11:41:21 +0000 (11:41 +0000)]
Update parent and common references

*** Release Phase 7: This commit is generated by a PF release script ***

This is the seventh release phase, it updates parent, common and models
references in policy/distribution.

Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ie4d0f27f6021622def7b72719508cc557c4c7624
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoRename user for API and PAP references. 01/125601/1
adheli.tavares [Thu, 4 Nov 2021 14:25:39 +0000 (14:25 +0000)]
Rename user for API and PAP references.

Use an account other than healthcheck in API and PAP for provisioning of policies.

Issue-ID: POLICY-2744
Change-Id: I2d626276daba25d405be24cf81233ae848a8674e
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
4 years agoPoint to snapshot dependency 41/125341/1
Ram Krishna Verma [Mon, 25 Oct 2021 22:10:20 +0000 (18:10 -0400)]
Point to snapshot dependency

Issue-ID: POLICY-3788
Change-Id: I803ecb77214903e353402c56b82a36cfa32a331f
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoUpdating Distribution S3P configuration. 78/125078/5
adheli.tavares [Mon, 18 Oct 2021 16:26:44 +0000 (17:26 +0100)]
Updating Distribution S3P configuration.

- fixing the scripts and jmx files after stability long run failures.

Issue-ID: POLICY-3654
Change-Id: I0ff0bf625f226f1b71664c1817cef65fbd5cf5a6
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
4 years agoBump policy/distribution to Jakarta 2.7.0-SNAPSHOT 94/124994/1
liamfallon [Thu, 14 Oct 2021 12:54:22 +0000 (13:54 +0100)]
Bump policy/distribution to Jakarta 2.7.0-SNAPSHOT

Issue-ID: POLICY-3696
Change-Id: I877f56a698224d82226a55ca6c68d4dc65534d06
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoBump policy/distribution to 2.6.2-SNAPSHOT 67/124967/1
liamfallon [Thu, 14 Oct 2021 10:45:59 +0000 (11:45 +0100)]
Bump policy/distribution to 2.6.2-SNAPSHOT

Issue-ID: POLICY-3696
Change-Id: I3cdd361c13a616b121ebcd1782e51847861288ed
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoRelease policy/distribution 2.6.1 images 58/124958/1
liamfallon [Thu, 14 Oct 2021 09:54:14 +0000 (10:54 +0100)]
Release policy/distribution 2.6.1 images

Issue-ID: POLICY-3696
Change-Id: I3d0f1f3134cdb0acdbe0ed0e42886f2904ff6559
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoRelease policy/distribution 2.6.1 54/124954/1
liamfallon [Thu, 14 Oct 2021 09:41:51 +0000 (10:41 +0100)]
Release policy/distribution 2.6.1

Issue-ID: POLICY-3696
Change-Id: I9b785431ec14671f9c01050c1992a6a83afcd0b8
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpdate parent/common/models/docker references 04/124904/1
liamfallon [Wed, 13 Oct 2021 14:31:33 +0000 (15:31 +0100)]
Update parent/common/models/docker references

Issue-ID: POLICY-3696
Change-Id: Ia40b9d10c49bef7e5e53abaf50211636f56d9044
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoDistribution S3P Testing for Istanbul 23/124623/4
adheli.tavares [Thu, 30 Sep 2021 12:50:40 +0000 (13:50 +0100)]
Distribution S3P Testing for Istanbul

Issue-ID: POLICY-3654
Change-Id: Ib410008418a6d94948270fea1c37e20eb0c59003
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
4 years agoBump distribution to 2.6.1-SNAPSHOT 06/124206/1
Ram Krishna Verma [Tue, 14 Sep 2021 21:34:35 +0000 (17:34 -0400)]
Bump distribution to 2.6.1-SNAPSHOT

Issue-ID: POLICY-3587
Change-Id: I5b53cb351ebc874bc0ec26318955ea5c52c5a365
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoRelease distribution 2.6.0 docker image 05/124205/1
Ram Krishna Verma [Tue, 14 Sep 2021 20:39:49 +0000 (16:39 -0400)]
Release distribution 2.6.0 docker image

Issue-ID: POLICY-3587
Change-Id: I45698321b91b981cce7729d0c97338b96506bd28
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoRelease distribution 2.6.0 maven artifacts 92/124192/1
Ram Krishna Verma [Tue, 14 Sep 2021 18:42:40 +0000 (14:42 -0400)]
Release distribution 2.6.0 maven artifacts

Issue-ID: POLICY-3587
Change-Id: I384010f2861d0b06ab7e957035c0cfa55540fece
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoUse released common and models 88/124088/1
liamfallon [Mon, 13 Sep 2021 15:44:14 +0000 (16:44 +0100)]
Use released common and models

Issue-ID: POLICY-3587
Change-Id: I22df3fbd99af621dc112a64c31b2d13216b20035
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpdate INFO.yaml 53/123953/3
liamfallon [Wed, 8 Sep 2021 11:32:01 +0000 (12:32 +0100)]
Update INFO.yaml

Update the INFO.yaml file with latest information.

Issue-ID: POLICY-3552
Change-Id: I346ff7a0ddee373ea6ac1df26d612150caebaa3a
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoPoint at released policy-parent 91/123991/2
liamfallon [Thu, 9 Sep 2021 12:43:27 +0000 (13:43 +0100)]
Point at released policy-parent

Issue-ID: POLICY-3587
Change-Id: I756518b188715b16a37367013ed1d17f77b675b0
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoFix default config in distribution 95/123695/1
Ram Krishna Verma [Mon, 30 Aug 2021 17:05:31 +0000 (13:05 -0400)]
Fix default config in distribution

Issue-ID: POLICY-3526
Change-Id: Iae0d43829eb284a4aed5547d0944b66ccff77396
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoMerge "Fix sonar issue"
Ram Krishna Verma [Thu, 26 Aug 2021 20:33:21 +0000 (20:33 +0000)]
Merge "Fix sonar issue"

4 years agoFix sonar issue 41/123641/1
Ram Krishna Verma [Thu, 26 Aug 2021 18:48:27 +0000 (14:48 -0400)]
Fix sonar issue

Issue-ID: POLICY-3077
Change-Id: I53447f551804f4455b65d19d84685ece5cba1c5a
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoUse policy/docker image 2.3.0 19/123619/1
Jim Hahn [Thu, 26 Aug 2021 17:41:31 +0000 (13:41 -0400)]
Use policy/docker image 2.3.0

Issue-ID: POLICY-3587
Change-Id: I5d2b4bd64e09121bddbeb1f43d53df998c0fd618
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoEnable prometheus by default in policy-distribution 58/123458/1
a.sreekumar [Mon, 23 Aug 2021 14:42:26 +0000 (15:42 +0100)]
Enable prometheus by default in policy-distribution

Change-Id: I5bfd9ff7597f10e5eb08c01183bf02a17676afb5
Issue-ID: POLICY-3538
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoUse generic create policy api 99/123399/2
Ram Krishna Verma [Thu, 19 Aug 2021 19:34:00 +0000 (15:34 -0400)]
Use generic create policy api

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>
4 years agoAdd yaml support for policy & policy types 67/123367/3
Ram Krishna Verma [Wed, 18 Aug 2021 21:17:23 +0000 (17:17 -0400)]
Add yaml support for policy & policy types

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>
4 years agouse url resource for docker-tag -- distribution 97/123197/1
Taka Cho [Mon, 9 Aug 2021 18:29:47 +0000 (14:29 -0400)]
use url resource for docker-tag -- distribution

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>
4 years agoMerge "Use new RestClientParameters class in distribution"
Ajith Sreekumar [Tue, 3 Aug 2021 10:17:39 +0000 (10:17 +0000)]
Merge "Use new RestClientParameters class in distribution"

4 years agoUse new RestClientParameters class in distribution 75/122975/4
Jim Hahn [Mon, 19 Jul 2021 20:21:25 +0000 (16:21 -0400)]
Use new RestClientParameters class in distribution

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>
4 years agoMerge "Revert "Use new RestClientParameters class in distribution""
Jim Hahn [Thu, 22 Jul 2021 15:23:37 +0000 (15:23 +0000)]
Merge "Revert "Use new RestClientParameters class in distribution""

4 years agoRevert "Use new RestClientParameters class in distribution" 78/122578/1
Jim Hahn [Thu, 22 Jul 2021 14:51:20 +0000 (14:51 +0000)]
Revert "Use new RestClientParameters class in distribution"

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>
4 years agoMerge "Use docker registry properties in distribution"
Ajith Sreekumar [Wed, 21 Jul 2021 11:35:25 +0000 (11:35 +0000)]
Merge "Use docker registry properties in distribution"

4 years agoUse new RestClientParameters class in distribution 26/122726/3
Jim Hahn [Mon, 19 Jul 2021 20:21:25 +0000 (16:21 -0400)]
Use new RestClientParameters class in distribution

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>
4 years agoUse docker registry properties in distribution 49/122749/1
Jim Hahn [Mon, 19 Jul 2021 18:55:47 +0000 (14:55 -0400)]
Use docker registry properties in distribution

Issue-ID: POLICY-3374
Change-Id: I78ce18ef57fd5655597b169f21f8bae8228773b5
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoUse lombok in policy/distribution 08/122508/2
Ram Krishna Verma [Wed, 7 Jul 2021 18:21:34 +0000 (14:21 -0400)]
Use lombok in policy/distribution

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>
4 years agoUse lombok in policy/distribution 43/122443/2
Ram Krishna Verma [Mon, 5 Jul 2021 21:42:21 +0000 (17:42 -0400)]
Use lombok in policy/distribution

Issue-ID: POLICY-3393
Change-Id: I4221d8c6ecff3b529e7cd65f467bcf9bd3ac758d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoFix new checkstyle issues in distribution 54/122054/1
Jim Hahn [Fri, 18 Jun 2021 18:31:38 +0000 (14:31 -0400)]
Fix new checkstyle issues in distribution

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>
4 years agoFix broken junits in policy-distribution 35/121535/2
Jim Hahn [Tue, 25 May 2021 15:06:41 +0000 (11:06 -0400)]
Fix broken junits in policy-distribution

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>
4 years agoRemove csit folder from policy/distribution 46/121346/1
Ram Krishna Verma [Thu, 13 May 2021 19:29:53 +0000 (15:29 -0400)]
Remove csit folder from policy/distribution

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>
4 years agoMerge "Refactor policy/distribution csit tests"
Pamela Dragosh [Mon, 10 May 2021 12:56:29 +0000 (12:56 +0000)]
Merge "Refactor policy/distribution csit tests"

4 years agoFix sonars in policy-distribution 95/121195/1
Jim Hahn [Fri, 7 May 2021 19:21:38 +0000 (15:21 -0400)]
Fix sonars in policy-distribution

Fixed:
- more cases of "var"

Issue-ID: POLICY-3285
Change-Id: I41345dfde611497e848b1d207b34eeda1c2c3feb
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoRefactor policy/distribution csit tests 94/121194/1
Ram Krishna Verma [Fri, 7 May 2021 19:14:13 +0000 (15:14 -0400)]
Refactor policy/distribution csit tests

* 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>
4 years agoFix sonars in policy-distribution 47/121147/1
Jim Hahn [Thu, 6 May 2021 20:39:17 +0000 (16:39 -0400)]
Fix sonars in policy-distribution

Fixed:
- use "var" instead of actual type

Issue-ID: POLICY-3285
Change-Id: I0dba2f96870722b4071ac0085287bc91a27dde88
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoRemove GroupValidationResult 83/120983/3
Jim Hahn [Tue, 27 Apr 2021 19:08:59 +0000 (15:08 -0400)]
Remove GroupValidationResult

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>
4 years agoRefactor DistributionCommandLineArguments class 54/120554/2
adheli.tavares [Tue, 13 Apr 2021 15:33:41 +0000 (16:33 +0100)]
Refactor DistributionCommandLineArguments class

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>
4 years agoMerge "Use sh instead of ash in distribution"
Pamela Dragosh [Wed, 7 Apr 2021 15:32:56 +0000 (15:32 +0000)]
Merge "Use sh instead of ash in distribution"

4 years agoUse sh instead of ash in distribution 40/120240/3
Jim Hahn [Tue, 6 Apr 2021 19:43:17 +0000 (15:43 -0400)]
Use sh instead of ash in distribution

Issue-ID: POLICY-3160
Change-Id: If642e98c8639b0065eea38ec41fc4923a07091b7
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoDistribution S3P test 13/120013/1
adheli.tavares [Tue, 30 Mar 2021 10:06:03 +0000 (11:06 +0100)]
Distribution S3P test

Updating scripts and files related to S3P tests.

Issue-ID: POLICY-3113
Change-Id: I6c6d50a2f0e6b47deac5e505fb841eebbbbea437
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
4 years agoDelete keystores from distribution 52/119552/1
Jim Hahn [Fri, 19 Mar 2021 16:00:30 +0000 (12:00 -0400)]
Delete keystores from distribution

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>
4 years agoSupport self-signed certificates in distribution 16/119516/1
Jim Hahn [Thu, 18 Mar 2021 16:06:41 +0000 (12:06 -0400)]
Support self-signed certificates in distribution

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>
4 years agoUpdate policy-keystore with newer certificates 84/119384/1
jhh [Tue, 16 Mar 2021 15:32:55 +0000 (10:32 -0500)]
Update policy-keystore with newer certificates

Issue-ID: POLICY-3139
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I7e228797bc5f51715c86141a279a990699fa6fe4

4 years agoAddress plugin-not-found issues 64/119264/1
Jim Hahn [Fri, 12 Mar 2021 16:55:30 +0000 (11:55 -0500)]
Address plugin-not-found issues

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>
4 years agoBump distribution to 2.6.0-SNAPSHOT 91/119191/1
pd1248 [Thu, 11 Mar 2021 20:40:38 +0000 (15:40 -0500)]
Bump distribution to 2.6.0-SNAPSHOT

Issue-ID: POLICY-3105
Change-Id: I37f09fb3edb9329fa8a0138b81dbc5fafc5864fa
Signed-off-by: pd1248 <pdragosh@research.att.com>
4 years agoMerge "Add code coverage for reception package"
Ram Krishna Verma [Wed, 10 Mar 2021 18:08:22 +0000 (18:08 +0000)]
Merge "Add code coverage for reception package"

4 years agoBump policy-distribution to 2.5.2-SNAPSHOT 85/119085/1
a.sreekumar [Wed, 10 Mar 2021 15:49:49 +0000 (15:49 +0000)]
Bump policy-distribution to 2.5.2-SNAPSHOT

Change-Id: Ibb79e61fc7d3923f123539873a5a08e599c175ab
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoRelease policy-distribution 2.5.1 docker 77/119077/1
a.sreekumar [Wed, 10 Mar 2021 15:04:18 +0000 (15:04 +0000)]
Release policy-distribution 2.5.1 docker

Change-Id: I67ceead7f7724b4261e7cb1afc9384ce86627930
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoRelease policy-distribution 2.5.1 maven artifacts 70/119070/1
a.sreekumar [Wed, 10 Mar 2021 13:52:51 +0000 (13:52 +0000)]
Release policy-distribution 2.5.1 maven artifacts

Change-Id: I5a865c03d88b8c2e4ac2f3d00535b197e386bde3
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoPoint to policy-models 2.4.1 49/119049/1
a.sreekumar [Tue, 9 Mar 2021 18:23:38 +0000 (18:23 +0000)]
Point to policy-models 2.4.1

Change-Id: Ifa503246a966810c6254178765910cd6f038b429
Issue-ID: POLICY-3127
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoAdd code coverage for reception package 56/118956/4
adheli.tavares [Tue, 9 Mar 2021 12:16:03 +0000 (12:16 +0000)]
Add code coverage for reception package

Issue-ID: POLICY-3090
Change-Id: I79bf20363644fe39ed532399ecf59740192f7bb9
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
4 years agoCode coverage for Policy distribution 64/118764/2
adheli.tavares [Wed, 3 Mar 2021 15:27:56 +0000 (15:27 +0000)]
Code coverage for Policy distribution

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>
4 years agoUpdate info.yaml in distribution 88/118388/1
Ram Krishna Verma [Wed, 24 Feb 2021 15:01:47 +0000 (10:01 -0500)]
Update info.yaml in distribution

Issue-ID: POLICY-3028
Change-Id: I357f910ce74bd135522eb7ec2c76d97fe3195f74
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoBump distribution to 2.5.1-SNAPSHOT 17/118317/1
Ram Krishna Verma [Tue, 23 Feb 2021 20:13:18 +0000 (15:13 -0500)]
Bump distribution to 2.5.1-SNAPSHOT

Issue-ID: POLICY-3088
Change-Id: Iefa88438d23defeb73875ec4de9be29541b24b89
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoRelease distribution 2.5.0 docker image 09/118309/1
Ram Krishna Verma [Tue, 23 Feb 2021 18:11:48 +0000 (13:11 -0500)]
Release distribution 2.5.0 docker image

Issue-ID: POLICY-3088
Change-Id: Ib5ae6daf8f5b5fb192c76302d2fb009676bd7b22
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoRelease distribution 2.5.0 version 00/118300/1
Ram Krishna Verma [Tue, 23 Feb 2021 17:23:36 +0000 (12:23 -0500)]
Release distribution 2.5.0 version

Issue-ID: POLICY-3088
Change-Id: I73e698c7fd356e209d22a23e23fc5f9632e22064
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoPoint to released version of jre 81/118281/1
Ram Krishna Verma [Tue, 23 Feb 2021 16:16:09 +0000 (11:16 -0500)]
Point to released version of jre

Issue-ID: POLICY-3088
Change-Id: Id4b8058061d81b676210014146c77531339c9d62
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoPoint to released version of dependencies 56/118256/1
Ram Krishna Verma [Tue, 23 Feb 2021 15:20:38 +0000 (10:20 -0500)]
Point to released version of dependencies

Issue-ID: POLICY-3088
Change-Id: I244d8b061e58b624f197a2741ada25447047b18d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agofix for workspace accommodation 53/117653/1
Taka Cho [Tue, 9 Feb 2021 19:27:57 +0000 (14:27 -0500)]
fix for workspace accommodation

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>
4 years agomove distribution csit to policy repo 56/117456/5
Taka Cho [Wed, 3 Feb 2021 19:13:04 +0000 (14:13 -0500)]
move distribution csit to policy repo

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>
4 years agoFix bug - cast as long 53/116953/1
Pamela Dragosh [Mon, 18 Jan 2021 13:48:54 +0000 (08:48 -0500)]
Fix bug - cast as long

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>
4 years agoRemove unused import and add comments 13/116913/4
Pamela Dragosh [Fri, 15 Jan 2021 14:59:27 +0000 (09:59 -0500)]
Remove unused import and add comments

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>
4 years agoAvoid path injection 90/116890/1
Pamela Dragosh [Thu, 14 Jan 2021 20:24:37 +0000 (15:24 -0500)]
Avoid path injection

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>
4 years agoChanged identifiers to concept identifiers 37/116637/1
Ram Krishna Verma [Wed, 6 Jan 2021 19:13:45 +0000 (14:13 -0500)]
Changed identifiers to concept identifiers

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>
4 years agouse jre base 2.2.0 - distribution 11/116611/1
Taka Cho [Tue, 5 Jan 2021 20:10:58 +0000 (15:10 -0500)]
use jre base 2.2.0 - distribution

use jre base 2.2.0

Issue-ID: POLICY-2917
Change-Id: Iac8e53e8144b54b02bebb133f5bd4c1e616ffe4c
Signed-off-by: Taka Cho <takamune.cho@att.com>
4 years agoSonar issues with visibility 35/116135/1
Pamela Dragosh [Fri, 4 Dec 2020 15:49:03 +0000 (10:49 -0500)]
Sonar issues with visibility

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>
4 years agomove all bash to ash shell scripts - dist 63/115563/1
Taka Cho [Mon, 30 Nov 2020 19:50:59 +0000 (14:50 -0500)]
move all bash to ash shell scripts - dist

bash scripts convert to ash

Issue-ID: POLICY-2847
Change-Id: Iee0aacfdf01425cb2b6e6347672ebdd82ec205e1
Signed-off-by: Taka Cho <takamune.cho@att.com>
5 years agoPoint to snapshot versions 19/114319/1
Ram Krishna Verma [Tue, 27 Oct 2020 18:58:43 +0000 (14:58 -0400)]
Point to snapshot versions

Issue-ID: POLICY-2875
Change-Id: Ibe0d79c4167b1ab8b66dee63064db057a6ae2501
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
5 years agoBump distribution master to 2.5.0-SNAPSHOT 91/114291/1
Ram Krishna Verma [Tue, 27 Oct 2020 17:57:08 +0000 (13:57 -0400)]
Bump distribution master to 2.5.0-SNAPSHOT

Issue-ID: POLICY-2875
Change-Id: I5d447736a0d74bdce6f6907808d9a7c35a4bf8e0
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
5 years agoBump distribution to 2.4.4 SNAPSHOT 52/114052/2
Jim Hahn [Tue, 20 Oct 2020 14:51:53 +0000 (10:51 -0400)]
Bump distribution to 2.4.4 SNAPSHOT

Issue-ID: POLICY-2869
Change-Id: Iccbc23191763dcb9a2781973e29a85e0e34386cf
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoRelease distribution 2.4.3 docker 45/114045/1 7.0.0-ONAP
Jim Hahn [Tue, 20 Oct 2020 14:28:56 +0000 (10:28 -0400)]
Release distribution 2.4.3 docker

Issue-ID: POLICY-2869
Change-Id: I0a1f62b2ee424c0c91c71e0e294f8db9f6f806d2
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoRelease distribution 2.4.3 artifacts 37/114037/1
Jim Hahn [Tue, 20 Oct 2020 14:02:01 +0000 (10:02 -0400)]
Release distribution 2.4.3 artifacts

Issue-ID: POLICY-2869
Change-Id: Ia646e8aac11d1a26bdfa338eb5992c5f2375a799
Signed-off-by: Jim Hahn <jrh3@att.com>
5 years agoPoint distribution to models 2.3.5 31/114031/1
Pamela Dragosh [Tue, 20 Oct 2020 12:10:20 +0000 (08:10 -0400)]
Point distribution to models 2.3.5

Issue-ID: POLICY-2869
Change-Id: I21bffaf0530d6887241b138f1ae58421f9dbb1e0
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
5 years agoBump distribution to 2.4.3-SNAPSHOT 57/113657/1
Ram Krishna Verma [Wed, 7 Oct 2020 22:09:30 +0000 (18:09 -0400)]
Bump distribution to 2.4.3-SNAPSHOT

Issue-ID: POLICY-2839
Change-Id: I0de77e37818fb5da771003fbaefc74e97d0ef404
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
5 years agoRelease distribution 2.4.2 docker artifacts 53/113653/1
Ram Krishna Verma [Wed, 7 Oct 2020 20:50:43 +0000 (16:50 -0400)]
Release distribution 2.4.2 docker artifacts

Issue-ID: POLICY-2839
Change-Id: I7b2e5a9f3d6cf3c6222088452a3624d2421772fc
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
5 years agoRelease distribution 2.4.2 maven artifacts 45/113645/1
Ram Krishna Verma [Wed, 7 Oct 2020 20:18:45 +0000 (16:18 -0400)]
Release distribution 2.4.2 maven artifacts

Issue-ID: POLICY-2839
Change-Id: Ibc7147aeab372ceb8d0f5f40b2095e56df56ec44
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
5 years agoPoint to model 2.3.2 32/113632/1
Ram Krishna Verma [Wed, 7 Oct 2020 19:28:01 +0000 (15:28 -0400)]
Point to model 2.3.2

Issue-ID: POLICY-2839
Change-Id: I3c6186180fda382bfb63b267a7bc9f5875b27018
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
5 years agoNew sonars in policy/distribution 80/113380/1
Jim Hahn [Wed, 30 Sep 2020 14:16:42 +0000 (10:16 -0400)]
New sonars in policy/distribution

Addressed the following sonars:
- extract common test methods

Issue-ID: POLICY-2713
Change-Id: I2c8e957785b7e0d1b66e3bd49d5a8a854149fffd
Signed-off-by: Jim Hahn <jrh3@att.com>