policy/models.git
19 months agoRemove inactive committers from INFO.yaml 24/130824/1
liamfallon [Fri, 9 Sep 2022 09:17:26 +0000 (10:17 +0100)]
Remove inactive committers from INFO.yaml

Remove inactive committers from INFO.yaml

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

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

19 months agoMinor changes 5G SON operational policy examples 66/130766/1
jhh [Tue, 6 Sep 2022 17:45:49 +0000 (12:45 -0500)]
Minor changes 5G SON operational policy examples

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

19 months agoAllow setting external dockerfile for simulator 56/130656/1
danielhanrahan [Fri, 2 Sep 2022 08:35:48 +0000 (09:35 +0100)]
Allow setting external dockerfile for simulator

If building with an external dockerfile, e.g. using
 mvn clean install -Pdocker -DdockerFile=/path/to/dockerfile
docker will look for project files in the same directory as the
new dockerfile. A new property is added for setting the context
path, to allow using existing project files in src/main/docker.

Issue-ID: POLICY-4334
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I25a192d01583f1085055db08477e9be884512091

19 months agoSample 5G SON A1 and O1 policies 25/130525/1
jhh [Tue, 30 Aug 2022 21:14:03 +0000 (16:14 -0500)]
Sample 5G SON A1 and O1 policies

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

20 months agoAdded onap.policies.monitoring.tcagen2 version 2.0.0 42/130342/2
jhh [Wed, 17 Aug 2022 23:47:56 +0000 (18:47 -0500)]
Added onap.policies.monitoring.tcagen2 version 2.0.0

Issue-ID: POLICY-4317
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I34158cd21777b6127fd4a306b73fa3446e302c99
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
20 months agoUpdate docker base image to snapshot 71/130071/1
liamfallon [Fri, 29 Jul 2022 14:27:56 +0000 (15:27 +0100)]
Update docker base image to snapshot

Update docker base image to snapshot

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

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

21 months agoReduce size of docker images for models-simulator 03/129903/1
danielhanrahan [Fri, 8 Jul 2022 16:23:55 +0000 (17:23 +0100)]
Reduce size of docker images for models-simulator

Avoid creating extra layers when extracting tarball
Remove redundant chown/chmod commands
Reduce size of Alpine image by 48% (593MB to 307MB)
Reduce size of OpenSuse image by 38% (761MB to 470MB)

Issue-ID: POLICY-4271
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I773c92fe64015f5de25d6152853529315df7ca30

21 months agoUpgrade OpenSuse version to 15.4 for models 74/129874/1
danielhanrahan [Mon, 11 Jul 2022 15:09:57 +0000 (16:09 +0100)]
Upgrade OpenSuse version to 15.4 for models

Issue-ID: POLICY-4278
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I4ad815eacef7d3120d8cc8666c57b85e826abd05

21 months agoMerge "Fix simulator OpenSuse docker file"
Jorge Hernandez [Fri, 1 Jul 2022 16:00:35 +0000 (16:00 +0000)]
Merge "Fix simulator OpenSuse docker file"

21 months agoFix simulator OpenSuse docker file 32/129732/1
danielhanrahan [Fri, 1 Jul 2022 11:52:00 +0000 (12:52 +0100)]
Fix simulator OpenSuse docker file

Follow the same conventions as other docker files and startup scripts

Issue-ID: POLICY-4233
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I1a81864f430837e32eb8214e7862c0293b73e062

21 months agoFix CSIT build failure 31/129731/1
rameshiyer27 [Fri, 1 Jul 2022 11:29:26 +0000 (12:29 +0100)]
Fix CSIT build failure

Policy models simulator is not using the properties file from /etc/mounted/ directory that is provided
from CSIT. SSL has been disabled in the default properties file which causes communication failure with other
components.

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

21 months agoFix simulator docker file and startup script 25/129725/1
liamfallon [Wed, 29 Jun 2022 13:04:09 +0000 (14:04 +0100)]
Fix simulator docker file and startup script

The nmodels-simulator startup script is updated to:
- enable logging
- allow overriding of keystore and truststore
- allow overriding of configuration parameters
- Follow the same conventions as other docker files and startup scripts
- Add labelling
- Provide default configuration

Issue-ID: POLICY-4233
Change-Id: I6c25dc77c510a52ec298883f2534428807b1c253
Signed-off-by: liamfallon <liam.fallon@est.tech>
21 months agoMerge "OCI image spec labels for models-simulator"
Liam Fallon [Thu, 30 Jun 2022 10:11:04 +0000 (10:11 +0000)]
Merge "OCI image spec labels for models-simulator"

21 months agouse url resource for docker-tag -- models 18/129718/1
danielhanrahan [Wed, 29 Jun 2022 10:23:27 +0000 (11:23 +0100)]
use url resource for docker-tag -- models

use groovy url resource from docker repo
to identify the tag for docker.

Issue-ID: POLICY-3378
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ie93decd775f7169bf9c1705c961f60c00acf7ecf

22 months agoOCI image spec labels for models-simulator 16/129716/1
danielhanrahan [Tue, 28 Jun 2022 14:00:28 +0000 (15:00 +0100)]
OCI image spec labels for models-simulator

Issue-ID: POLICY-4262
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6b1fd846febd1e8fbd992254e2ea24d043ec3a4a

22 months agoAdd models-simulator release file to master branch 94/129694/3
liamfallon [Mon, 27 Jun 2022 14:25:49 +0000 (15:25 +0100)]
Add models-simulator release file to master branch

We are not releasing anything with this addition. We are adding the yaml
file from the Jakarta branch for releasing policy models 2.6.4.

Issue-ID: POLICY-4233
Change-Id: Ib5bad96137c5f48c7c6eb8d5a9233e96ba11b80b
Signed-off-by: liamfallon <liam.fallon@est.tech>
22 months agoRelease docker images for policy/models: 2.6.4 63/129563/1
liamfallon [Tue, 14 Jun 2022 13:57:46 +0000 (14:57 +0100)]
Release docker images for policy/models: 2.6.4

This commit releases docker images for repo policy/models.

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

Issue-ID: POLICY-4233
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic762db281750033f98537b4e4d490045f3d8b68a
Signed-off-by: liamfallon <liam.fallon@est.tech>
(cherry picked from commit ebf9e345929633d69786ab5ca653fb3f66e40b43)

22 months agoMerge "Add Ramesh Murugan Iyer as a committer"
Liam Fallon [Thu, 2 Jun 2022 08:07:45 +0000 (08:07 +0000)]
Merge "Add Ramesh Murugan Iyer as a committer"

22 months agoAdd Ramesh Murugan Iyer as a committer 41/129441/1
liamfallon [Wed, 1 Jun 2022 11:59:32 +0000 (12:59 +0100)]
Add Ramesh Murugan Iyer as a committer

Issue-ID: POLICY-4228
Change-Id: I25cfb53b171a6d8201478809e6bac54ace00ddaa
Signed-off-by: liamfallon <liam.fallon@est.tech>
22 months agoOpenSuse docker file for policy-models-simulator 16/129416/2
danielhanrahan [Fri, 27 May 2022 15:23:38 +0000 (16:23 +0100)]
OpenSuse docker file for policy-models-simulator

Create OpenSuse docker file
Add build profile for OpenSuse docker image

Issue-ID: POLICY-4196
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ida526d2c1ca858e2b3c9791048f2dfc405931ca8

23 months agoSet snapshot and/or references of policy/models for new release 48/129048/1
liamfallon [Tue, 3 May 2022 16:21:44 +0000 (17:21 +0100)]
Set snapshot and/or references of policy/models for new release

policy/models updated to its latest own and reference snapshots

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

Issue-ID: POLICY-4073
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0101973870c989f148e76c52c81fda410451d441
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMerge "Update snapshot and/or references of policy/models to latest snapshots"
Liam Fallon [Wed, 27 Apr 2022 20:38:38 +0000 (20:38 +0000)]
Merge "Update snapshot and/or references of policy/models to latest snapshots"

2 years agoUpdate snapshot and/or references of policy/models to latest snapshots 14/128914/1
liamfallon [Wed, 27 Apr 2022 19:55:29 +0000 (20:55 +0100)]
Update snapshot and/or references of policy/models to latest snapshots

policy/models updated to its latest own and reference snapshots

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

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

2 years agoFix the name of SO processing class in Policy 07/128807/6
zhaoyh6 [Sun, 24 Apr 2022 06:21:36 +0000 (14:21 +0800)]
Fix the name of SO processing class in Policy

A new processing class of SO is added in policy, but the name of the processing
class was written incorrectly before.

Issue-ID: POLICY-4106
Signed-off-by: zhaoyh6 <zhaoyh6@asiainfo.com>
Change-Id: Ibfea9f56ed8e2fdb87cd2113a477ff4bfaa0af71

2 years agoRelease policy/models: 2.6.3 03/128903/1
liamfallon [Wed, 27 Apr 2022 12:26:54 +0000 (13:26 +0100)]
Release policy/models: 2.6.3

This commit releases repo policy/models.

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

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

2 years agoupdate parent,common references in policy/models pom 92/128892/1
liamfallon [Wed, 27 Apr 2022 08:46:45 +0000 (09:46 +0100)]
update parent,common references in policy/models pom

updated the parent and common references in the policy/models pom

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

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

2 years agoUpdate snapshot and/or references of policy/models to latest snapshots 07/128507/1
liamfallon [Tue, 12 Apr 2022 17:41:35 +0000 (18:41 +0100)]
Update snapshot and/or references of policy/models to latest snapshots

policy/models updated to its latest own and reference snapshots

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

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

2 years agoRelease policy/models: 2.6.2 99/128499/1
liamfallon [Tue, 12 Apr 2022 17:09:05 +0000 (18:09 +0100)]
Release policy/models: 2.6.2

This commit releases repo policy/models.

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

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

2 years agoupdate parent,common references in policy/models pom 97/128497/1
liamfallon [Tue, 12 Apr 2022 15:50:10 +0000 (16:50 +0100)]
update parent,common references in policy/models pom

updated the parent and common references in the policy/models pom

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

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

2 years agoMerge "Fix metadataSet serialization for db persistence and retrieval."
Liam Fallon [Mon, 21 Mar 2022 09:21:13 +0000 (09:21 +0000)]
Merge "Fix metadataSet serialization for db persistence and retrieval."

2 years agoFix metadataSet serialization for db persistence and retrieval. 85/127785/1
rameshiyer27 [Mon, 14 Mar 2022 15:24:25 +0000 (15:24 +0000)]
Fix metadataSet serialization for db persistence and retrieval.

PDP fails to parse metadataSet from PDP_UPDATE message. MetadataSet(Lob)
needs to be serialized and de-serialized for storage/retrieval to
preserve the format.

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

2 years agoClosed loop operation guarantee for ccvpn 89/127389/4
zhaoyh6 [Tue, 1 Mar 2022 06:58:07 +0000 (14:58 +0800)]
Closed loop operation guarantee for ccvpn

Issue-ID: REQ-1074
Signed-off-by: zhaoyh6 <zhaoyh6@asiainfo.com>
Change-Id: Ib2c60a1e5ebd1fda5e04e75c265e863733caa278

2 years agoUpdate snapshot and/or references of policy/models to latest snapshots 14/127614/1
liamfallon [Thu, 10 Mar 2022 09:12:32 +0000 (09:12 +0000)]
Update snapshot and/or references of policy/models to latest snapshots

policy/models 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: Ia409ca1501edff6e1014d06a7fdee805befc5e17

2 years agoRelease policy/models: 2.6.1 05/127605/1
liamfallon [Wed, 9 Mar 2022 19:12:10 +0000 (19:12 +0000)]
Release policy/models: 2.6.1

This commit releases repo policy/models.

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

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

2 years agoupdate parent,common references in policy/models pom 00/127600/1
liamfallon [Wed, 9 Mar 2022 15:49:32 +0000 (15:49 +0000)]
update parent,common references in policy/models pom

updated the parent and common references in the policy/models pom

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

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

2 years agoFix for ClassCastException on PfConceptContainer get method usages 69/127269/2
Rashmi Pujar [Thu, 24 Feb 2022 04:40:54 +0000 (23:40 -0500)]
Fix for ClassCastException on PfConceptContainer get method usages

Typecasting Map to NavigableMap leads to ClassCastException.
The usages of the get methods in delete policy, policyType
endpoints in policy/api (using spring data jpa) cause the
unchecked class-cast exception. Fix is to instead copy the
Map entries into a newly created TreeMap instance.

Issue-ID: POLICY-3924
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: I60625980d6f2692ffa7dd3bd9f53d10b43c13f4a

2 years agoFix return type of get node templates provider 71/127171/1
rameshiyer27 [Wed, 16 Feb 2022 23:07:34 +0000 (23:07 +0000)]
Fix return type of get node templates provider

The return type for fetching node templates can be just a List of
ToscaNodetemplates. Removing the map with node template keys as it
provides redundant keys in the output.

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

2 years agoFix issue with GeneratedValue in PfGeneratedIdKey 29/127129/5
a.sreekumar [Tue, 15 Feb 2022 12:16:30 +0000 (12:16 +0000)]
Fix issue with  GeneratedValue in PfGeneratedIdKey

PfGeneratedIdKey class (which is used as a composite key
in JpaPolicyAudit and JpaPdpStatistics) uses GeneratedValue
in a wrong way and not according to the specification.
This review fixes it. PfGeneratedIdKey class is removed, and the
generatedId is directly specified in the JpaPolicyAudit and
JpaPdpStatistics classes.

Note: These classes are only used by PAP, so the related methods for db
interaction is removed as PAP directly talks to DB using spring
repository layer. Also the only end result this change brings is that the
'generatedId' alone will be used as the primary key instead of
'generatedId, name and version' together.

Corresponding changes in
DB Migrator: https://gerrit.onap.org/r/c/policy/docker/+/127139
PAP: https://gerrit.onap.org/r/c/policy/pap/+/127130

Change-Id: Ib4ea8b60ffe5c2480746569c0354bf474a6b7006
Issue-ID: POLICY-3897
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoAdd policy metadataSet handling as node templates 09/127009/3
rameshiyer27 [Mon, 7 Feb 2022 17:07:38 +0000 (17:07 +0000)]
Add policy metadataSet handling as node templates

Each metadataSet is represented as a 'node_template' in Tosca
mapped to a specific node type.
Support added for db operations of node templates as
independent entities.

Detailed documentation available here :
https://wiki.onap.org/display/DW/Enable+Handling+of+Policy+Type+Metadata

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

2 years agoAdd postgres dependency to models 90/126790/2
waynedunican [Thu, 27 Jan 2022 07:10:46 +0000 (07:10 +0000)]
Add postgres dependency to models

Issue-ID: POLICY-2715
Change-Id: Id23cde33d8bafccc69f751491d90c0936d793b59
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoAdd configurable port and authentication to DMaaP simulator 12/126712/1
dc443y [Fri, 21 Jan 2022 20:43:18 +0000 (14:43 -0600)]
Add configurable port and authentication to DMaaP simulator

Issue-ID: POLICY-3890
Signed-off-by: dc443y <dc443y@att.com>
Change-Id: Idbeb3590a767e51aa0058a7a45d56a61e81301cb

2 years agoFix issues in existing entity classes 92/126492/6
a.sreekumar [Thu, 6 Jan 2022 14:52:15 +0000 (14:52 +0000)]
Fix issues in existing entity classes

Issues identified in the entity classes are fixed in this
review. Some fixes doesn't affect the table structure at all.
Tables actually affected by some of these fixes are not really used today, and doesn't
contain any data. A separate review is raised for the db-migrator
changes.

Change-Id: I0efdf2c5f17e12225f1b443b5fe8e27c578229f7
Issue-ID: POLICY-3871
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoextend vnf properties model for cds actors 24/126324/6
jhh [Thu, 16 Dec 2021 22:15:33 +0000 (16:15 -0600)]
extend vnf properties model for cds actors

CDS operations for VNFs default to vFirewall-like behavior for
AAI queries where vserver and target resources are required.

The properties refactoring allows for enriched
vnf-id behavior (similar to vCPE) and provides some leg work
for other extensions.

Fix dmaap simulator sporadic test errors in junits

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

2 years agoBump parent and common version 26/126026/1
a.sreekumar [Thu, 2 Dec 2021 14:40:54 +0000 (14:40 +0000)]
Bump parent and common version

Change-Id: I3d528cb1086dd444c043fb54cbe0698729e6e1f2
Issue-ID: POLICY-3827
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoUpdate snapshot of policy/models to 2.6.1-SNAPSHOT 21/125921/1
liamfallon [Fri, 26 Nov 2021 09:30:04 +0000 (09:30 +0000)]
Update snapshot of policy/models to 2.6.1-SNAPSHOT

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

This commit updates the snapshot of the repo to the next patch version.

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

2 years agoRelease policy/models: 2.6.0 79/125879/1
liamfallon [Thu, 25 Nov 2021 10:30:36 +0000 (10:30 +0000)]
Release policy/models: 2.6.0

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

This is the sixth phase in releasing images, it releases policy/models.

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

2 years agoUpdate parent and common references 73/125873/1
liamfallon [Wed, 24 Nov 2021 16:27:59 +0000 (16:27 +0000)]
Update parent and common references

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

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

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

2 years agoFix Db connection issues in TOSCA control loop 60/125460/2
FrancescoFioraEst [Wed, 27 Oct 2021 09:18:32 +0000 (10:18 +0100)]
Fix Db connection issues in TOSCA control loop

Issue-ID: POLICY-3153
Change-Id: I28a7962027a9cb383238a6d3765a46a905f8e58b
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoPoint to snapshot dependency 38/125338/1
Ram Krishna Verma [Mon, 25 Oct 2021 22:05:09 +0000 (18:05 -0400)]
Point to snapshot dependency

Issue-ID: POLICY-3788
Change-Id: Ief434babe80980cbe97170011d168e94ee4045aa
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoFix for entrypoint to use sh instead of bash. 48/125148/3
adheli.tavares [Wed, 20 Oct 2021 08:00:26 +0000 (09:00 +0100)]
Fix for entrypoint to use sh instead of bash.

Issue-ID: POLICY-3767
Change-Id: I463ebdcb75e39b5ee7098c0cee178988fc360788
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoImprove AAI simulator by configuring responses 32/125032/5
a.sreekumar [Fri, 15 Oct 2021 17:02:21 +0000 (18:02 +0100)]
Improve AAI simulator by configuring responses

Change-Id: Ide7f572dac91110a5d560fc388dd87246c9d195b
Issue-ID: POLICY-3709
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoBump policy/models to Jakarta 2.6.0-SNAPSHOT 71/124971/1
liamfallon [Thu, 14 Oct 2021 11:00:54 +0000 (12:00 +0100)]
Bump policy/models to Jakarta 2.6.0-SNAPSHOT

Issue-ID: POLICY-3696
Change-Id: I66ec28e3a51a8f388b56ccbf211f71698cf5e8aa
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoBump policy/models to 2.5.2-SNAPSHOT 17/124917/1
liamfallon [Wed, 13 Oct 2021 18:29:38 +0000 (19:29 +0100)]
Bump policy/models to 2.5.2-SNAPSHOT

Issue-ID: POLICY-3696
Change-Id: Idbdbbe56e5daac2ce8ce780d2c8ce5ff54b8e006
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease policy/models artifacts for version 2.5.1 90/124890/1
liamfallon [Wed, 13 Oct 2021 14:17:45 +0000 (15:17 +0100)]
Release policy/models artifacts for version 2.5.1

Issue-ID: POLICY-3696
Change-Id: Iee534442d6132be4ae760f47f742927defd401dc
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoPoint at released policy/common and docker images 81/124881/1
liamfallon [Wed, 13 Oct 2021 10:38:36 +0000 (11:38 +0100)]
Point at released policy/common and docker images

Issue-ID: POLICY-3696
Change-Id: I438f998a2f93ab1f00509a56f918216b50787fb7
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoSupport in_range TOSCA Constraint 09/124709/1
liamfallon [Wed, 6 Oct 2021 17:45:12 +0000 (18:45 +0100)]
Support in_range TOSCA Constraint

The TOSCA in_range constraint is not supported, causing errors to be
thrown in TOSCA control loop constraint edits.

Issue-ID: POLICY-3695
Change-Id: I95dec4118ce8572c5b76d528878c6782856e0a53
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRevert ignoring tests in models 63/124363/1
Ram Krishna Verma [Mon, 20 Sep 2021 14:35:19 +0000 (10:35 -0400)]
Revert ignoring tests in models

Reverting ignoring of tests in models
as the staging job has been marked to skip tests.

Issue-ID: POLICY-3587
Change-Id: Ia5946d3b9402ba7810815e73eb207ac5c57a6c74
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoBump policy-models to 2.5.1-SNAPSHOT 14/124214/2
liamfallon [Wed, 15 Sep 2021 09:03:32 +0000 (10:03 +0100)]
Bump policy-models to 2.5.1-SNAPSHOT

Issue-ID: POLICY-3587
Change-Id: Idca2237777c1f7bda3fab89934dc97b9360fbc3d
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease policy-models 2.5.0 35/124135/1
liamfallon [Tue, 14 Sep 2021 09:50:17 +0000 (10:50 +0100)]
Release policy-models 2.5.0

Issue-ID: POLICY-3587
Change-Id: I7fab026ee4f58baf73f960aba0d35f77fbd41257
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoWork around test failure in staging job 91/124091/1
liamfallon [Mon, 13 Sep 2021 16:12:23 +0000 (17:12 +0100)]
Work around test failure in staging job

The "keytool" program does not exist in the Jenkins staging job
environment, so the test case that checks for a keytool error message
fails because an unexpected error message is received.

Other tests also break so the tests are morked with @Ignore for now.

Issue-ID: POLICY-3587
Change-Id: Ic43e5043c769ff6d2cf604f2a0f29fd4f6931b4b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUse policy-common released version in policy-models 76/124076/1
liamfallon [Mon, 13 Sep 2021 14:20:26 +0000 (15:20 +0100)]
Use policy-common released version in policy-models

Issue-ID: POLICY-3587
Change-Id: I609d0657aa1991ed7d3c1022af2ade25a6905f8f
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoPoint at released policy-parent 84/123984/3
liamfallon [Thu, 9 Sep 2021 11:16:07 +0000 (12:16 +0100)]
Point at released policy-parent

Issue-ID: POLICY-3587
Change-Id: I799b3f36d6d362ba82dd359feb57accd9a7b53ae
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMerge "Update INFO.yaml"
Pamela Dragosh [Thu, 9 Sep 2021 13:35:10 +0000 (13:35 +0000)]
Merge "Update INFO.yaml"

2 years agoUpdate INFO.yaml 49/123949/1
liamfallon [Wed, 8 Sep 2021 11:20:57 +0000 (12:20 +0100)]
Update INFO.yaml

Update the INFO.yaml file with latest information.

Issue-ID: POLICY-3552
Change-Id: I95b9164e7a208ca38dca31f5e71c65bc30531b84
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoAdd check for null for policies and policy types 34/123734/3
saul.gill [Tue, 31 Aug 2021 08:33:32 +0000 (09:33 +0100)]
Add check for null for policies and policy types

Add check when reading policies and policy types from db

Issue-ID: POLICY-3606
Change-Id: I7a1d96e4be1841243619e89c31dabc3e761dd17a
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoAdd topics end point to dmaap sim 99/123699/3
Ram Krishna Verma [Mon, 30 Aug 2021 21:28:37 +0000 (17:28 -0400)]
Add topics end point to dmaap sim

Add "/topics" end point to dmaap simulator.
It will be used in CSIT tests to verify consolidated health check.

Issue-ID: POLICY-3605
Change-Id: I6814d6dd021e0d98bd99754d4e68f789ef405353
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoFix sonars in models 23/123423/1
Jim Hahn [Fri, 20 Aug 2021 20:39:17 +0000 (16:39 -0400)]
Fix sonars in models

Fixed:
- use "var"
- change constructor to protected
- add equals() to subclasses

Issue-ID: POLICY-3094
Change-Id: Ia62716b1a740b4475e54e496330f50aa7fb404d7
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd PDP-TOPIC-CHECK message 64/123364/1
Jim Hahn [Tue, 17 Aug 2021 19:25:39 +0000 (15:25 -0400)]
Add PDP-TOPIC-CHECK message

Added a new PdpMessage subclass that a PDP can use to verify its ability
to send/receive to/from the PDP-PAP topic before it sends its first
registration message.

Issue-ID: POLICY-3531
Change-Id: Ied61caa805e93e25732385bf91272b4fc248fd69
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpgrade to cds 1.1.5-SNAPSHOT 41/123041/1
Ram Krishna Verma [Mon, 2 Aug 2021 18:37:35 +0000 (14:37 -0400)]
Upgrade to cds 1.1.5-SNAPSHOT

Upgrading policy components to cds 1.1.5-SNAPSHOT
to verify the contract and fixes coming up in the next released version.

Issue-ID: POLICY-3516
Change-Id: I93602c392a5f917e68a7a1a74eaf0f188f520c39
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMerge "Add "configure" operation to xacml"
Ajith Sreekumar [Thu, 29 Jul 2021 08:19:12 +0000 (08:19 +0000)]
Merge "Add "configure" operation to xacml"

2 years agoAdd junit test for empty statistics filter 27/122927/2
Jim Hahn [Wed, 28 Jul 2021 13:48:00 +0000 (09:48 -0400)]
Add junit test for empty statistics filter

Also removed the version field from the filter, as it is not applicable
to the PDP instance name.

Issue-ID: POLICY-3511
Change-Id: I17e8d2d6646a27736a827b9e9e17881d6b0a3795
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd "configure" operation to xacml 61/122861/3
Jim Hahn [Mon, 26 Jul 2021 15:11:09 +0000 (11:11 -0400)]
Add "configure" operation to xacml

Added "configure" operation to xacml simulator and actor.xacml.

Issue-ID: POLICY-3502
Change-Id: Ia206303c65ce4e54187d818da9253dabfe864d62
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRemove actor.guard from models 62/122862/1
Jim Hahn [Mon, 26 Jul 2021 13:48:31 +0000 (09:48 -0400)]
Remove actor.guard from models

Replaced by actor.xacml.

Issue-ID: POLICY-3506
Change-Id: I41b6a9918df31b251eb93105fc9413deda04daf3
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRemove unused statistics methods 42/122842/1
Jim Hahn [Fri, 23 Jul 2021 19:14:12 +0000 (15:14 -0400)]
Remove unused statistics methods

The getPdpStatistics method should be removed as they're functionality
has been subsumed by getFilteredPdpStatistics.

Issue-ID: POLICY-3511
Change-Id: I98da98ac483705bea46ebaa0619257195be6b518
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoLimit the number of statistics records returned 41/122841/4
Jim Hahn [Wed, 21 Jul 2021 21:30:32 +0000 (17:30 -0400)]
Limit the number of statistics records returned

Added limit of MAX records (100).  Also, if unspecified, or negative,
it defaults to MAX records.

Issue-ID: POLICY-3511
Change-Id: I0170951cd79818af5944adf5d29480bad4de815b
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRefactor GuardOperation 24/122824/2
Jim Hahn [Wed, 21 Jul 2021 21:30:32 +0000 (17:30 -0400)]
Refactor GuardOperation

Extracted DecisionOperation superclass out of GuardOperation.

Issue-ID: POLICY-3502
Change-Id: Ice766e9c33756a5780726c75a0283f89c85cabad
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdded Xacml actor 04/122804/3
Jim Hahn [Tue, 20 Jul 2021 18:07:35 +0000 (14:07 -0400)]
Added Xacml actor

Cloned the guard actor to use as a starting point for creating a more
generic actor for interacting with the xacml-pdp.
Also renamed various classes.

Issue-ID: POLICY-3501
Change-Id: I9bd0107845de41a349d56259e6cfa6a3180efa25
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpgrade CDS dependency 77/122777/1
k.kedron [Mon, 19 Jul 2021 16:05:52 +0000 (18:05 +0200)]
Upgrade CDS dependency

- New CDS client libraries.
- Update code to use new CDS BlueprintProcessingService

Change-Id: I00fb044908774a48755ff8d9ebb32e055a74c819
Issue-ID: POLICY-3507
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2 years agoAdd attributes to Decision Response 11/122711/1
Dragosh, Pamela (pd1248) [Mon, 19 Jul 2021 15:10:22 +0000 (11:10 -0400)]
Add attributes to Decision Response

In order to support returning specific attributes, this field will
be needed.

Issue-ID: POLICY-2865
Change-Id: I9901e89abeb2fd375d6e218d4d39e736ff8829da
Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2 years agoMerge "Delete extra simulator docker images"
Ram Krishna Verma [Tue, 13 Jul 2021 17:31:01 +0000 (17:31 +0000)]
Merge "Delete extra simulator docker images"

2 years agoUpdate Pam's email INFO.yaml 03/122603/1
Dragosh, Pamela (pd1248) [Tue, 13 Jul 2021 14:31:52 +0000 (10:31 -0400)]
Update Pam's email INFO.yaml

Issue-ID: POLICY-3484
Change-Id: Ibbba0d4c981df0b27ac76aed97a64dab27871750
Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2 years agoDelete extra simulator docker images 89/122589/4
Jim Hahn [Mon, 12 Jul 2021 19:25:53 +0000 (15:25 -0400)]
Delete extra simulator docker images

The policy-models-simulator docker image, built from
models-sim/packages, subsumes the functionality of the other simulator
images.  Deleted the other images.

This simulator still needs some of the code from the dmaap-sim modules,
so only deleted the code from the latter that is not needed by this
simulator.

Also modified the simulator launch script to use sh instead of bash.

Issue-ID: POLICY-3474
Change-Id: Ie7f69b327a18c3e07f154124ae38975d5e6924f0
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd default min records for policy audit 88/122588/2
Ram Krishna Verma [Mon, 12 Jul 2021 20:11:51 +0000 (16:11 -0400)]
Add default min records for policy audit

Adding default min records as 10 for policy audit provider.
This is inline with our discussions and design doumented here
https://wiki.onap.org/display/DW/PAP+REST+API+changes+for+Istanbul+release

Issue-ID: POLICY-3340
Change-Id: I5bab5f186f2591b1a2f2c42e9851ad88f73c8dfb
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMerge "Handle numRecords default setting when built as 0."
Jim Hahn [Mon, 12 Jul 2021 18:34:41 +0000 (18:34 +0000)]
Merge "Handle numRecords default setting when built as 0."

2 years agoHandle numRecords default setting when built as 0. 49/122549/3
adheli.tavares [Fri, 9 Jul 2021 17:28:28 +0000 (18:28 +0100)]
Handle numRecords default setting when built as 0.

Check the numRecord to be set as DEFAULT_MAX_RECORDS when not added to
the auditFilter (builder set it to 0).

Issue-ID: POLICY-3340
Change-Id: I25ad83bbea71ddd82064aec3069ffa4cbce5aac1
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoRemove unused DAO statistics methods 82/122582/1
Jim Hahn [Mon, 12 Jul 2021 14:04:40 +0000 (10:04 -0400)]
Remove unused DAO statistics methods

The PDP statistics provider had several filter methods, at least one
of which has now been subsumed by another and is no longer being used.

Issue-ID: POLICY-3405
Change-Id: If603eaf3df36fd4e6e3555376bf1b95144ec8eb1
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate pdp statistics to count deploy/undeploy separately. 53/122453/4
adheli.tavares [Mon, 5 Jul 2021 13:59:40 +0000 (14:59 +0100)]
Update pdp statistics to count deploy/undeploy separately.

Issue-ID: POLICY-3383
Change-Id: I41e2668bdebd732149db0ccbe160b67b9952a8d9
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoUpdate policy-models for checkstyle 8.43 62/122262/3
liamfallon [Mon, 28 Jun 2021 08:33:18 +0000 (09:33 +0100)]
Update policy-models for checkstyle 8.43

Issue-ID: POLICY-3209
Change-Id: Ic45f889ab4d0ed24f6c1fc1aaece0601636e7a10
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoAdd "source" to PAP-PDP messages 09/122109/4
Jim Hahn [Tue, 22 Jun 2021 16:01:37 +0000 (12:01 -0400)]
Add "source" to PAP-PDP messages

Added a "source" field to the PdpStateChange and PdpUpdate messages so
that PAP can record a unique name in the message, for logging purposes.

In a separate review, planning to add a method in policy-common for
creating the unique name.  Once that has been created, it will be used
by PAP, to populate the "source" field, and all PDPs, to populate the
"name" field in the PdpStatus messages.

Issue-ID: POLICY-3409
Change-Id: I86c97702abe62a5672720330df50b7b106187661
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoMerge "Add example for pnf policy chaining"
Pamela Dragosh [Tue, 22 Jun 2021 11:22:36 +0000 (11:22 +0000)]
Merge "Add example for pnf policy chaining"

2 years agoAdd timestamp to Pdp records 74/122074/3
Jim Hahn [Fri, 18 Jun 2021 20:03:04 +0000 (16:03 -0400)]
Add timestamp to Pdp records

To support the case where multiple PAPs are running, added a timestamp
to the PDP records so the PAPs can all be kept in sync as far as when a
PDP was last responsive.

Issue-ID: POLICY-2898
Change-Id: Ia7e0fd17363ff5827564cbc1537e516156b7f53a
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd example for pnf policy chaining 88/122088/1
Ram Krishna Verma [Mon, 21 Jun 2021 20:45:36 +0000 (16:45 -0400)]
Add example for pnf policy chaining

Adding example for policy chaining in drools-pdp for PNF.
This will be later referenced in the documents in upcoming review.

Issue-ID: POLICY-3382
Change-Id: Ifce5cf17e869566725a8e15fd391fb130c115e0f
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoFix new checkstyle issues in models 73/122073/3
Jim Hahn [Mon, 21 Jun 2021 13:54:27 +0000 (09:54 -0400)]
Fix new checkstyle issues in models

The new version of checkstyle identified new issues.  Fixed those.

Issue-ID: POLICY-3094
Change-Id: I85314bc0249cba0020a0aefbc250851a2b646dd9
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoMerge "Use lombok for errors pap, pdp, sim-dmaap, sim-pdp"
Jim Hahn [Mon, 21 Jun 2021 13:17:35 +0000 (13:17 +0000)]
Merge "Use lombok for errors pap, pdp, sim-dmaap, sim-pdp"

2 years agoUse lombok for errors pap, pdp, sim-dmaap, sim-pdp 27/122027/2
Jim Hahn [Thu, 17 Jun 2021 20:29:33 +0000 (16:29 -0400)]
Use lombok for errors pap, pdp, sim-dmaap, sim-pdp

Issue-ID: POLICY-3396
Change-Id: Ib2c9bc5dc199e15ae9ca077031c0f2cfbc5b6a81
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse lombok for events, base, dao 29/122029/2
Jim Hahn [Thu, 17 Jun 2021 20:54:20 +0000 (16:54 -0400)]
Use lombok for events, base, dao

Issue-ID: POLICY-3396
Change-Id: I7b37efc13a25e0e27d63a85a3ee291e91a4e1682
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoMerge "Use lombok annotations for sdnr, simulators"
Jim Hahn [Fri, 18 Jun 2021 13:34:31 +0000 (13:34 +0000)]
Merge "Use lombok annotations for sdnr, simulators"

2 years agoMerge "Use lombok annotations for so, vfc"
Jim Hahn [Fri, 18 Jun 2021 13:34:17 +0000 (13:34 +0000)]
Merge "Use lombok annotations for so, vfc"

2 years agoMerge "Use lombok annotations for aai, appc, appclcm, cds"
Jim Hahn [Fri, 18 Jun 2021 13:34:04 +0000 (13:34 +0000)]
Merge "Use lombok annotations for aai, appc, appclcm, cds"

2 years agoMerge "Use lombok annotations for tosca, rest, sdnc"
Jim Hahn [Fri, 18 Jun 2021 13:33:50 +0000 (13:33 +0000)]
Merge "Use lombok annotations for tosca, rest, sdnc"