policy/api.git
3 years agoBump api to 2.2.5-SNAPSHOT in frankfurt 62/107962/2 frankfurt
Jim Hahn [Wed, 20 May 2020 12:24:16 +0000 (08:24 -0400)]
Bump api to 2.2.5-SNAPSHOT in frankfurt

Also updated the default branch.

Issue-ID: POLICY-2514
Change-Id: I9b8ddf60e2ccd706e83c5e466d3bc20faf64cdfb
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMerge "Updated scripts and testplan for api (Frankfurt)"
Pamela Dragosh [Tue, 19 May 2020 22:58:06 +0000 (22:58 +0000)]
Merge "Updated scripts and testplan for api (Frankfurt)"

3 years agoRelease api 2.2.4 docker 16/107916/1 6.0.0-ONAP
Jim Hahn [Tue, 19 May 2020 19:57:10 +0000 (15:57 -0400)]
Release api 2.2.4 docker

Issue-ID: POLICY-2514
Change-Id: I6f9abd6c4842778a3308f56ac653590754243da2
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdated scripts and testplan for api (Frankfurt) 08/107908/3
Chris Ramstad [Tue, 19 May 2020 18:15:30 +0000 (11:15 -0700)]
Updated scripts and testplan for api (Frankfurt)

Issue-ID: POLICY-2453
Signed-off-by: Chris Ramstad <cramstad@ciena.com>
Change-Id: I8ed5da7b5fa76a0265291dc97bf765987ea2c2fa

3 years agoRelease api 2.2.4 artifacts 06/107906/2
Jim Hahn [Tue, 19 May 2020 17:49:29 +0000 (13:49 -0400)]
Release api 2.2.4 artifacts

Issue-ID: POLICY-2514
Change-Id: Ib11c4a6ea5f115586056599af2e2521825c12b1e
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoPoint to released artifacts 88/107888/1
Pamela Dragosh [Tue, 19 May 2020 16:19:39 +0000 (12:19 -0400)]
Point to released artifacts

Issue-ID: POLICY-1514
Change-Id: Ic5d57c446e9b246e9545b0c21d8aec8560cdb1cf
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPolicy DB contents removed on DB deadlock 24/107424/1
liamfallon [Sun, 10 May 2020 21:41:33 +0000 (22:41 +0100)]
Policy DB contents removed on DB deadlock

Unit test knock on from rework on Legacy policies.

Issue-ID: POLICY-2548
Change-Id: I1f3469fb1f3e63da192614226b6ba456da7c1d4b
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoMake type and type_version mandatory on policies 56/107256/1
liamfallon [Wed, 6 May 2020 16:02:23 +0000 (17:02 +0100)]
Make type and type_version mandatory on policies

Up until now, the "type" and "type_version" fields defaulted to "NULL"
and "0.0.0" respectively when they were not specified because the
"type_version" field was not always specified on policies in previous
releases. In cases where the "type_version" field was not specified, it
was assumend that a "0.0.0" version of the policy type existed. In
parallel, if the version field was not specified on the policy type, the
version was stored as 0.0.0.

This behaviour is now changed and the "type" and "type_version" fields
are now always mandatory.

Issue-ID: POLICY-2538
Change-Id: Ieec97f4a111edd13dbe31116c7549f07c19ef0aa
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoUpdate SNDC Naming policy in API 15/106815/1
Jim Hahn [Wed, 29 Apr 2020 15:28:03 +0000 (11:28 -0400)]
Update SNDC Naming policy in API

This fixes a broken junit test.

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

4 years agoPoint api to new parent 25/106625/2
Jim Hahn [Fri, 24 Apr 2020 20:27:47 +0000 (16:27 -0400)]
Point api to new parent

Issue-ID: POLICY-2510
Change-Id: Icc055f13ed43ade9c86d9402c1d27ea9ad3e4f9a
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoRelease api 2.2.3 docker 18/106618/1
Jim Hahn [Fri, 24 Apr 2020 19:54:22 +0000 (15:54 -0400)]
Release api 2.2.3 docker

Issue-ID: POLICY-2510
Change-Id: I69c818d6209e9d30caa2a9011ad49dd8246ba30a
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoRelease api 2.2.3 artifacts 11/106611/2
Jim Hahn [Fri, 24 Apr 2020 18:25:40 +0000 (14:25 -0400)]
Release api 2.2.3 artifacts

Issue-ID: POLICY-2510
Change-Id: Ida1fa08ac5836d2a7698f1a9e20e3ce852af3cd2
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoPoint api to models release version 04/106604/1
Jim Hahn [Fri, 24 Apr 2020 16:18:50 +0000 (12:18 -0400)]
Point api to models release version

Issue-ID: POLICY-2521
Change-Id: Iaa7e1f7c6d19a71e89321fd568dc77310c374f26
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoBump models version in policy-api 00/106600/1
Jim Hahn [Fri, 24 Apr 2020 15:17:24 +0000 (11:17 -0400)]
Bump models version in policy-api

Issue-ID: POLICY-2510
Change-Id: I9a7fa1b39c0ebab8d35c7b604529562f3f971996
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoSkip policy preload if DB already contains data 54/106454/3
Jim Hahn [Wed, 22 Apr 2020 16:01:27 +0000 (12:01 -0400)]
Skip policy preload if DB already contains data

Issue-ID: POLICY-2517
Change-Id: I430eaed1dbc2f81aa2d15af0ced3e879349a8bea
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoBump api to 2.2.3-SNAPSHOT 05/106005/1
Ram Krishna Verma [Wed, 15 Apr 2020 12:23:14 +0000 (08:23 -0400)]
Bump api to 2.2.3-SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: I9b20aa5dcdb6517b1abfba2725a19a77e98bb217
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoRelease api 2.2.2 docker image 57/105957/2
Ram Krishna Verma [Tue, 14 Apr 2020 21:03:00 +0000 (17:03 -0400)]
Release api 2.2.2 docker image

Issue-ID: POLICY-2378
Change-Id: Ie7536e0562dca9a8491cf01463a05ddb1fef1fb6
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoRelease api 2.2.2 artifacts 53/105953/1
Ram Krishna Verma [Tue, 14 Apr 2020 19:55:28 +0000 (15:55 -0400)]
Release api 2.2.2 artifacts

Issue-ID: POLICY-2378
Change-Id: I4b69ce348edb7e7ee1fd88c5e535217b46333494
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoBump api to 2.2.2-SNAPSHOT 45/105945/1
Ram Krishna Verma [Tue, 14 Apr 2020 19:27:43 +0000 (15:27 -0400)]
Bump api to 2.2.2-SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: I29affc99176950f463f7bb8fc41af883e709c4ca
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoPoint to released common/models 37/105937/1
Pamela Dragosh [Tue, 14 Apr 2020 18:50:07 +0000 (14:50 -0400)]
Point to released common/models

Issue-ID: POLICY-2378
Change-Id: I59b4769e65d230dc0fc2e520d94fbc07bf0e38b2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to models/common fixes 62/105862/1
Pamela Dragosh [Mon, 13 Apr 2020 19:54:50 +0000 (15:54 -0400)]
Point to models/common fixes

For the naming policy string fixes and fix in yaml coder

Issue-ID: POLICY-2486
Change-Id: Ic3cb88903ccdb07907f6907f1d9d0941c99fb690
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to released parent, common, models 13/105813/1
Pamela Dragosh [Fri, 10 Apr 2020 21:43:17 +0000 (17:43 -0400)]
Point to released parent, common, models

Issue-ID: POLICY-2378
Change-Id: If3883aacd99d515d3409d57c508330b7c7c4341f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to parent SNAPSHOT 56/105256/1
Pamela Dragosh [Tue, 7 Apr 2020 12:48:45 +0000 (08:48 -0400)]
Point to parent SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: I75a0bac797ea059553602538fd16b44f37e38708
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoAdd BARE and REFERENCED mode to policy fetches 84/104684/3
liamfallon [Mon, 30 Mar 2020 12:28:20 +0000 (13:28 +0100)]
Add BARE and REFERENCED mode to policy fetches

In BARE mode (default), just the policy definitions are returned, in
REFERENCED mode, the policy and all referenced policy and data types are
returned.

Issue-ID: POLICY-2377
Change-Id: Idc227d512d56945cc14dec0eae9264dbb3ca52a0
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoPoint to latest snapshots 88/104588/1
Pamela Dragosh [Fri, 27 Mar 2020 16:57:12 +0000 (12:57 -0400)]
Point to latest snapshots

Issue-ID: POLICY-2378
Change-Id: I1f98713b431bbae69c9ff39f75b93468a28e3540
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease api 2.2.1 docker 40/104440/1
Pamela Dragosh [Wed, 25 Mar 2020 21:29:55 +0000 (17:29 -0400)]
Release api 2.2.1 docker

Issue-ID: POLICY-2378
Change-Id: I63550795e447782c94ac3b9feee2523f47ed912b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease api 2.2.1 26/104426/1
Pamela Dragosh [Wed, 25 Mar 2020 20:19:20 +0000 (16:19 -0400)]
Release api 2.2.1

Includes fix of operational common policy type for CLAMP
metadata.

Issue-ID: POLICY-2378
Change-Id: I0dd5826297277dd0986de46d6b16b2e3d2f0399a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to models 2.2.2 06/104406/1
Pamela Dragosh [Wed, 25 Mar 2020 18:35:11 +0000 (14:35 -0400)]
Point to models 2.2.2

To incorporate CLAMP changes to operational common policy type.

Issue-ID: POLICY-2378
Change-Id: I2a97189488936525772dd5e64d1b1072cf6dba8d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump api to 2.2.1-SNAPSHOT 57/104257/1
Pamela Dragosh [Tue, 24 Mar 2020 14:47:47 +0000 (10:47 -0400)]
Bump api to 2.2.1-SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: Ia7b147ebfb6e3222310116da644ac4c820093fe5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease 2.2.0 api docker image 45/104245/1
Pamela Dragosh [Tue, 24 Mar 2020 12:59:05 +0000 (08:59 -0400)]
Release 2.2.0 api docker image

Issue-ID: POLICY-2378
Change-Id: I7395e8fcbf986cb76b4c4c29e07c36e85ada9ea1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease 2.2.0 api artifacts 40/104240/1
Pamela Dragosh [Tue, 24 Mar 2020 12:18:15 +0000 (08:18 -0400)]
Release 2.2.0 api artifacts

Issue-ID: POLICY-2378
Change-Id: Ia9df6a83b3494c1e32517b6af0bd95d8d182fdb3
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to released artifacts 92/104192/1
Pamela Dragosh [Mon, 23 Mar 2020 14:20:56 +0000 (10:20 -0400)]
Point to released artifacts

parent, common and models are released.

Issue-ID: POLICY-2378
Change-Id: Ia374091bbc8ee4f145f620c28db8c89b986cdc2a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoTest change due to versions fix in Models 79/103979/1
liamfallon [Thu, 19 Mar 2020 15:35:24 +0000 (15:35 +0000)]
Test change due to versions fix in Models

Knock on change due to a change in error message returned by
policy-models

Issue-ID: POLICY-2377
Change-Id: I69702c52715b2c92c8bd87c8d34264f954b63891
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agorenew policy certs till 03/17/2021 82/103882/1
jhh [Wed, 18 Mar 2020 15:41:47 +0000 (10:41 -0500)]
renew policy certs till 03/17/2021

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

4 years agoRemoving legacy guard from policy/api 66/103166/6
Ram Krishna Verma [Thu, 5 Mar 2020 17:44:33 +0000 (12:44 -0500)]
Removing legacy guard from policy/api

Renamed the guard policy types per this review:
https://gerrit.onap.org/r/c/policy/models/+/103127

Issue-ID: POLICY-2243
Change-Id: I35ef95756483c869d374f36d0a1dfe6b588444c7
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Apply policy/models native drools policies changes"
Jorge Hernandez [Fri, 6 Mar 2020 14:23:30 +0000 (14:23 +0000)]
Merge "Apply policy/models native drools policies changes"

4 years agoApply policy/models native drools policies changes 85/103185/1
jhh [Thu, 5 Mar 2020 20:40:39 +0000 (14:40 -0600)]
Apply policy/models native drools policies changes

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

4 years agoRemoving deployed from policy/api 95/102895/2
Ram Krishna Verma [Tue, 3 Mar 2020 17:37:27 +0000 (12:37 -0500)]
Removing deployed from policy/api

The deployed API has already been created in PAP as part of Policy Update Notifications work.
Removing the corresponding one from policy/api to make sure that all run time administration
of PdpGroup and deployed policies are done only via PAP.

Leaving the deployed API's in legacy controller as they will be removed together.

Issue-ID: POLICY-1941
Change-Id: Ibe131f1aab3ec6a0eec05a2c91b5a140efc61b72
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoPoint to docker 2.0.1 77/102677/1
Pamela Dragosh [Sun, 1 Mar 2020 21:36:26 +0000 (16:36 -0500)]
Point to docker 2.0.1

Release docker 2.0.1

Issue-ID: POLICY-2378
Change-Id: Ib839cb1a5e8db9e815d41c42421839255072f658
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPreload default policies 66/102166/5
Chenfei Gao [Fri, 21 Feb 2020 22:07:49 +0000 (17:07 -0500)]
Preload default policies

Issue-ID: POLICY-2317
Change-Id: I5794e617ea4fb99caf6e7a974a4886e72605979c
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoChanges for cascaded get in policy models 09/102009/1
liamfallon [Wed, 19 Feb 2020 16:56:59 +0000 (16:56 +0000)]
Changes for cascaded get in policy models

This review adapts policy API for changes introduced for cascaded
returns on filtered gets in policy-models.

Issue-ID: POLICY-1402
Change-Id: I7593eb64cc497809f8485f6add40b6a64291a060
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoAdd changes for safe delete in policy-models 26/101926/1
liamfallon [Tue, 18 Feb 2020 17:44:18 +0000 (17:44 +0000)]
Add changes for safe delete in policy-models

Issue-ID: POLICY-1402
Change-Id: I3f97fbb4c11105118857d354970d6a3de1385f2d
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpdates to pulling Drools into own yaml 96/101696/3
Pamela Dragosh [Thu, 13 Feb 2020 17:09:13 +0000 (12:09 -0500)]
Updates to pulling Drools into own yaml

Also renamed legacy types and constants to ensure folks
know legacy vs tosca compliant.

Fixes recommended by Liam.

Issue-ID: POLICY-2146
Change-Id: I744f589c0154138f8526e583d0f2b480f172c0c4
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoChange return code checks in unit tests 00/101800/2
liamfallon [Mon, 17 Feb 2020 00:55:15 +0000 (00:55 +0000)]
Change return code checks in unit tests

The return codes issued by TOSCA handling in policy-models have been
changed to be more correct. This change updates the unit tests in API to
use thw new codes.

Issue-ID: POLICY-1402
Change-Id: If9798e5fe28bd3f92576135b8c5a34fc456a4925
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpdate API for changes in TOSCA provider 76/101676/1
liamfallon [Thu, 13 Feb 2020 13:42:27 +0000 (13:42 +0000)]
Update API for changes in TOSCA provider

Knock on changes and some simplification of the code because the TOSCA
provider now does some of the checks that were in API, so those checks
are not needed in API any more. Various JUnit fixes.

Issue-ID: POLICY-1402
Change-Id: Ic3a08e415c8cce4f2aad4b5da2623e41280c4e66
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agojunit failing after renaming recipe in op. policy 47/101547/1
jhh [Tue, 11 Feb 2020 17:14:07 +0000 (11:14 -0600)]
junit failing after renaming recipe in op. policy

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

4 years agoUpdating module names to resolve conflicts 00/101200/2
Ram Krishna Verma [Wed, 5 Feb 2020 21:28:33 +0000 (16:28 -0500)]
Updating module names to resolve conflicts

Issue-ID: POLICY-2355
Change-Id: Ie54b9be776a96f02a62645cc804060e562d994ba
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoPreloading Tosca compliant operational policy type for apex-pdp 99/101099/4
a.sreekumar [Mon, 3 Feb 2020 14:50:46 +0000 (14:50 +0000)]
Preloading Tosca compliant operational policy type for apex-pdp

Change-Id: I544e275758945007b4d68d0a6b069f5963780178
Issue-ID: POLICY-2147
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agotests for tosca compliant operational policies 98/100598/1
jhh [Wed, 22 Jan 2020 13:40:38 +0000 (07:40 -0600)]
tests for tosca compliant operational policies

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

4 years agoRemove assembly warning 53/100553/1
Pamela Dragosh [Tue, 21 Jan 2020 16:52:15 +0000 (11:52 -0500)]
Remove assembly warning

Use ${file.separator}

Issue-ID: POLICY-2329
Change-Id: I1e5def27e5cc87c86872c13df3db1347543e60e7
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agopreload tosca compliant operational policy types 14/100514/1
jhh [Mon, 20 Jan 2020 19:08:47 +0000 (13:08 -0600)]
preload tosca compliant operational policy types

Issue-ID: POLICY-2148
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I59dc7c4afbf201233d4cbf0240b011e59225864f
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoUse alpine image for policy-api 96/100396/1
Jim Hahn [Thu, 16 Jan 2020 21:35:45 +0000 (16:35 -0500)]
Use alpine image for policy-api

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

4 years agoSwitch to debain for policy-api 20/100320/3
Jim Hahn [Wed, 15 Jan 2020 14:54:17 +0000 (09:54 -0500)]
Switch to debain for policy-api

Use the latest jre image for now.

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

4 years agoMerge "Update sonar config"
Ram Krishna Verma [Wed, 15 Jan 2020 09:25:10 +0000 (09:25 +0000)]
Merge "Update sonar config"

4 years agoUpdate policy-api for java11 docker 97/100297/1
Jim Hahn [Tue, 14 Jan 2020 22:52:12 +0000 (17:52 -0500)]
Update policy-api for java11 docker

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

4 years agoUpdate sonar config 94/100294/1
Pamela Dragosh [Tue, 14 Jan 2020 19:57:58 +0000 (14:57 -0500)]
Update sonar config

Removed configuration that will be in policy/parent.
Ignore sub-modules that don't have source code - slight
speed improvement.

Issue-ID: POLICY-2321
Change-Id: I6f483f80510050347452bd85af5340e81402bbc6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoJDK 11 upgrades 69/99769/5
HOCKLA [Wed, 18 Dec 2019 14:57:22 +0000 (08:57 -0600)]
JDK 11 upgrades

Pointed to upgraded policy/parent and policy/common

Issue-ID: POLICY-1582
Change-Id: I66bb6e2c103147916b6b284e594db1c24434e0ba
Signed-off-by: HOCKLA <ah999m@att.com>
4 years agoAdded the new versioning validation for policy and policy type 45/100145/5
Chenfei Gao [Thu, 9 Jan 2020 18:33:12 +0000 (13:33 -0500)]
Added the new versioning validation for policy and policy type

The following rules are implemented to validate the version provided
in the POST payloads of policies and policy types:

1) If version field is not specified in POST payload, "406 - Not Acceptable"
   would be returned along with the message "mandantory version field is missing".
2) If the version is not in the DB, we simply insert it.
3) If the version is in the DB, "406 - Not Acceptable" is returned along with
   the message saying "specified version x.x.x" is already existing and the latest
   version is x.x.x. It can force the user to create a newer version than the latest one.
4) The same versioning validation is applied to legacy types of policies too
   so that everything is consistent.

Issue-ID: POLICY-2316
Change-Id: I395df0196a9d3073fd1f09060f943aeeb554d277
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoEnabling logback file to be loaded using oom configmap 89/100089/3
a.sreekumar [Wed, 8 Jan 2020 13:02:10 +0000 (13:02 +0000)]
Enabling logback file to be loaded using oom configmap

Change-Id: I839b687716a72e2538495b46660fa697cdc2f4f8
Issue-ID: POLICY-2308
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoChanges related to persisiting data type of policy in db 24/100124/1
a.sreekumar [Thu, 9 Jan 2020 11:59:00 +0000 (11:59 +0000)]
Changes related to persisiting data type of policy in db

Change-Id: I2ff6af28eead0958e8bb2699e4b0ce91f1146f06
Issue-ID: POLICY-2315
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
4 years agoSpeed up tests on policy-api 24/99824/3
liamfallon [Thu, 19 Dec 2019 15:51:13 +0000 (09:51 -0600)]
Speed up tests on policy-api

Test initialization and shutown of h2 database and REST server only done
once at beginning of all API unit tests. Duplicate tests removed, all
test done to persistent database and other minor improvements.

We need to check coverage after this review, ti may have dropped by a
few percent. We should design new tests to bring the coverage back up
again.

Issue-ID: POLICY-2297
Change-Id: I7ccb9835e01e08c284fdc4602e3a00e946b5e902
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoUpdate preload optimization types 09/99409/3
Pamela Dragosh [Tue, 10 Dec 2019 12:34:36 +0000 (07:34 -0500)]
Update preload optimization types

The type names were updated and added 2 new types.

Issue-ID: POLICY-2066
Change-Id: Ibbd149dec1809a9a815a5f6b64a8e7855fcc2010
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Preloading native policy type for apex-pdp"
Pamela Dragosh [Fri, 6 Dec 2019 21:54:33 +0000 (21:54 +0000)]
Merge "Preloading native policy type for apex-pdp"

4 years agoPoint to new release version 1.6.1 policy/common 77/99277/1
HOCKLA [Fri, 6 Dec 2019 17:55:55 +0000 (11:55 -0600)]
Point to new release version 1.6.1 policy/common

Issue-ID: POLICY-1583
Change-Id: I95163af6929a6babd5669bee1cf7285cc9dace1c
Signed-off-by: HOCKLA <ah999m@att.com>
4 years agoPreloading native policy type for apex-pdp 52/99252/1
ramverma [Fri, 6 Dec 2019 11:33:28 +0000 (11:33 +0000)]
Preloading native policy type for apex-pdp

Preloading native policy type for apex-pdp so that policies can be
created and deployed using this policy type.
Removed few test cases not working on windows.

Issue-ID: POLICY-2279
Change-Id: I8e462118ee21e92fcb862ef94a6d15aec1b893c6
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
4 years agoPoint to release versions of policy/parent and policy/common 19/99219/2
HOCKLA [Thu, 5 Dec 2019 17:47:53 +0000 (11:47 -0600)]
Point to release versions of policy/parent and policy/common

Issue-ID: POLICY-1594
Change-Id: I1d686487e0276a290fd8ae997d4e368edd474174
Signed-off-by: HOCKLA <ah999m@att.com>
4 years agoMerge "change HealthCheckReport URL from self to hostName"
Jim Hahn [Thu, 5 Dec 2019 16:42:48 +0000 (16:42 +0000)]
Merge "change HealthCheckReport URL from self to hostName"

4 years agochange HealthCheckReport URL from self to hostName 94/99194/1
Hengye [Thu, 5 Dec 2019 07:13:45 +0000 (15:13 +0800)]
change HealthCheckReport URL from self to hostName

Issue-ID: POLICY-1689 Consolidate Policy Health Check into PAP
Change-Id: Ie7f8edf1d1a083c6c696824f249544959f72694d
Signed-off-by: Hengye <yehui.wang@est.tech>
4 years agoFix sonar issues in policy-api 30/99030/2
Jim Hahn [Mon, 2 Dec 2019 18:02:11 +0000 (13:02 -0500)]
Fix sonar issues in policy-api

The change to sonar cloud resulted in new issues being uncovered.
Addressed two of the three issues with this:
  Remove this unused import...
  Add at least one assertion to this test case.
The item left outstanding is:
  Make sure that command line arguments are used safely here.

Issue-ID: POLICY-2206
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: Ie5dc339640102a5b4471e5b719338358ec3e0209
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoPreload the policy types for native policies 17/98817/2
Chenfei Gao [Mon, 25 Nov 2019 16:22:38 +0000 (11:22 -0500)]
Preload the policy types for native policies

Issue-ID: POLICY-2212, POLICY-2213
Change-Id: I03be8132699b5af9ea60a06cb0e1332c05886ad9
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoBuild tar.gz without requiring docker image build 13/98613/1
jhh [Tue, 19 Nov 2019 16:00:43 +0000 (10:00 -0600)]
Build tar.gz without requiring docker image build

This allows the tar.gz to be released by LF jobs.

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

4 years agoAdded changes to make the list of preloaded policy types configurable 41/98341/2
Chenfei Gao [Wed, 13 Nov 2019 03:29:37 +0000 (22:29 -0500)]
Added changes to make the list of preloaded policy types configurable

Issue-ID: POLICY-2210
Change-Id: I84b512a783c1fdc0834cf79bdce4c48a7803b884
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoDo not hardcode io.fabric8 plugin 02/98202/1
Pamela Dragosh [Fri, 8 Nov 2019 19:50:22 +0000 (14:50 -0500)]
Do not hardcode io.fabric8 plugin

policy/parent now has this defined

Issue-ID: POLICY-2222
Change-Id: I0fde39c1bce25ee8f0e0c1dfd773963dc4bdf6ff
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPreload the SDNC Naming Policy type 62/97862/1
Pamela Dragosh [Fri, 1 Nov 2019 15:24:26 +0000 (11:24 -0400)]
Preload the SDNC Naming Policy type

Needs to be available for policy creation.

Issue-ID: POLICY-1740
Change-Id: Id473492ce1ba923131ec3505ecd8f27b18e30013
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoAdd common Jersey version 45/97845/2
liamfallon [Fri, 1 Nov 2019 11:37:50 +0000 (11:37 +0000)]
Add common Jersey version

Add a common version of Jersey for all Policy Framework components.

Issue-ID: POLICY-2209
Change-Id: Ibb7e4fdfe55e34b3c7c788c3637dbcdacc8a70a8
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoFix new eclipse warnings in policy-api 55/97755/1
Jim Hahn [Wed, 30 Oct 2019 15:31:30 +0000 (11:31 -0400)]
Fix new eclipse warnings in policy-api

Unused import.

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

4 years agoUpdate S3P for new API endpoint 95/97595/1
Chenfei Gao [Fri, 25 Oct 2019 01:26:02 +0000 (21:26 -0400)]
Update S3P for new API endpoint

Issue-ID: POLICY-2185
Change-Id: I2d6e29ab6615734abcb1b16336bc5d6afa9937f1
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoMerge "Add missing Optimization base policy type"
Jorge Hernandez [Mon, 21 Oct 2019 18:38:36 +0000 (18:38 +0000)]
Merge "Add missing Optimization base policy type"

4 years agoAdd missing Optimization base policy type 88/97388/1
Pamela Dragosh [Mon, 21 Oct 2019 18:01:33 +0000 (14:01 -0400)]
Add missing Optimization base policy type

This should be there - it has "matchable" metadata needed by
the XACML PDP optimization application.

Issue-ID: POLICY-2066
Change-Id: Id20996f3cee1b45360e47731bc3d6a4f9457275d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agooverride cert stores 25/97225/2
jhh [Thu, 17 Oct 2019 00:36:39 +0000 (19:36 -0500)]
override cert stores

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

4 years agoCreated a new simplified API for creating policies 31/96831/1
Chenfei Gao [Wed, 9 Oct 2019 20:36:05 +0000 (16:36 -0400)]
Created a new simplified API for creating policies

Added a new endpoint to create multiple policies in one call
Added corresponding provider method
Added corresponding junit tests

Issue-ID: POLICY-1991
Change-Id: I09202ededfd88cf9f1ac62ea036e98e3b5d78f98
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoAdd changes to support application/yaml in api 86/95786/2
Chenfei Gao [Tue, 17 Sep 2019 02:20:34 +0000 (22:20 -0400)]
Add changes to support application/yaml in api

Issue-ID: POLICY-2101
Change-Id: I0860ff11231b6a649f52355d8d9333eec7d78826
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoBump versions for api master 72/95372/2
Jim Hahn [Tue, 10 Sep 2019 13:57:24 +0000 (09:57 -0400)]
Bump versions for api master

Change-Id: Ic9789f0041e463891d675baac32a7619d9a5bfd4
Issue-ID: POLICY-2045
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoRelease api 2.1.2 88/95288/1 5.0.0-ONAP
Pamela Dragosh [Tue, 10 Sep 2019 00:25:07 +0000 (20:25 -0400)]
Release api 2.1.2

released 2.1.2

Issue-ID: POLICY-2045
Change-Id: Icff2a924188ae57a055aa52853ab4eee21545dc7
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoUpgrade to released artifacts 81/95281/1
Pamela Dragosh [Mon, 9 Sep 2019 23:31:33 +0000 (19:31 -0400)]
Upgrade to released artifacts

Released parent, common and models.

Issue-ID: POLICY-2045
Change-Id: I2e7ba2fe54d0761608e1c17104873d0e20e2a3ae
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoKnock on of changing policy types to map 38/94938/3
liamfallon [Thu, 5 Sep 2019 22:25:55 +0000 (22:25 +0000)]
Knock on of changing policy types to map

This review adapts policy-api for the change in the structure
of the toasca service template from a list of maps to a plain map.

DUplication of policy types and policies removed and policy-models
examples used instead.

Issue-ID: POLICY-2047
Change-Id: Ie1fdeef79289348005314c5de9b2e37c0c45d786
Signed-off-by: liamfallon <liam.fallon@est.tech>
4 years agoChange scope to list 93/94693/1
Pamela Dragosh [Fri, 30 Aug 2019 15:51:35 +0000 (11:51 -0400)]
Change scope to list

Missed this change in last review.

Issue-ID: POLICY-1899
Change-Id: I19c9bd3346b9dd870ca3b62e7a5fb61b468e804b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Update optimization policy type"
Jorge Hernandez [Fri, 30 Aug 2019 15:34:07 +0000 (15:34 +0000)]
Merge "Update optimization policy type"

4 years agoUpdate optimization policy type 66/91266/10
Pamela Dragosh [Thu, 11 Jul 2019 13:58:27 +0000 (09:58 -0400)]
Update optimization policy type

Per work with Optimization team, identifying common attributes for matchable
optimization policies.

Fixed TOSCA syntax errors - use map instead of list.

Removed identity from PciPolicy, QueryPolicy and OptimizationPolicy.

Added example of how vCPE policies now look.

Updated the example for HPA Policy based on Ruoyo input. Fixed syntax
errors due to JSON conversion. Trailing spaces.

Added back in list for applicableResources and required scope attribute
for example policies.

Issue-ID: POLICY-1899
Change-Id: Ic8ae6db0575fb21fca6103ab2ed015c8524def80
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPreload control loop coordination type in API 44/94444/4
Jim Hahn [Wed, 28 Aug 2019 13:53:19 +0000 (09:53 -0400)]
Preload control loop coordination type in API

Modified json based on input from Chenfei.

Change-Id: Ibd70c5737713fee5dcd2370e02ef5f567d2a73b3
Issue-ID: POLICY-1847
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoupdate keystore 73/94173/2
jhh [Fri, 23 Aug 2019 03:35:28 +0000 (22:35 -0500)]
update keystore

Issue-ID: POLICY-1988
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia3878cad1ec0eb22b21b09531ed99d33c4d104f2
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
4 years agoAdd performance test for API component 16/93716/1
Chenfei Gao [Fri, 16 Aug 2019 16:47:31 +0000 (12:47 -0400)]
Add performance test for API component

Added the test plan for performance test.

Issue-ID: POLICY-1806
Change-Id: I3bd283e2aacac58ba3e0397eaa9ee8dada676871
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoMerge "Adding more policy-api junits"
Pamela Dragosh [Fri, 16 Aug 2019 15:33:00 +0000 (15:33 +0000)]
Merge "Adding more policy-api junits"

4 years agoAdding more policy-api junits 48/93548/4
Bilal A [Wed, 14 Aug 2019 19:03:07 +0000 (15:03 -0400)]
Adding more policy-api junits

Issue-ID: POLICY-1771
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: If85abb8280e28da7391bb4b4cb502473a404065b

4 years agoMerge "Disbale Jetty messages"
Pamela Dragosh [Thu, 15 Aug 2019 13:18:55 +0000 (13:18 +0000)]
Merge "Disbale Jetty messages"

4 years agoMerge "Add get deployed endpoints for legacy policies"
Jorge Hernandez [Wed, 14 Aug 2019 12:53:43 +0000 (12:53 +0000)]
Merge "Add get deployed endpoints for legacy policies"

4 years agoDisbale Jetty messages 27/92927/2
Bilal A [Tue, 13 Aug 2019 19:09:27 +0000 (15:09 -0400)]
Disbale Jetty messages

Issue-ID: POLICY-1771
Signed-off-by: Bilal A <bilal@research.att.com>
Change-Id: I0fbf300af65e5500c3cc8e7bddf43bb29d988471

4 years agoAdd get deployed endpoints for legacy policies 16/92616/2
Chenfei Gao [Fri, 2 Aug 2019 20:41:19 +0000 (16:41 -0400)]
Add get deployed endpoints for legacy policies

Issue-ID: POLICY-1810
Change-Id: I47046fbbd7d319b58cabf57ff470ec0d5246c88a
Signed-off-by: Chenfei Gao <cgao@research.att.com>
4 years agoUpgrade to snapshot integration parent artifact 00/93100/1
Bruno Sakoto [Thu, 8 Aug 2019 15:01:18 +0000 (11:01 -0400)]
Upgrade to snapshot integration parent artifact

Issue-ID: POLICY-1603
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: I1318c17c48714d59966e8de60671bd3f1d14c351

4 years agoBump version of policy/api 23/92923/2
jrh3 [Wed, 7 Aug 2019 16:25:21 +0000 (12:25 -0400)]
Bump version of policy/api

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