policy/docker.git
2 years agoAdd docker configuration for Prometheus and Grafana 30/127030/8
adheli.tavares [Wed, 2 Feb 2022 14:53:10 +0000 (14:53 +0000)]
Add docker configuration for Prometheus and Grafana

- docker compose file with the policy components
- configuration files for components to allow usage of http
- basic prometheus configuration to connect to api, pap, drools (apps/pdp), xaclm and apex
- examples of metrics to be added to a dashboard in Grafana

Issue-ID: POLICY-3886
Change-Id: Ic377b69b1a296017a85cb08ccdbbf9b8b281d8e3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoFix policy-api CSIT test 01/127101/4
a.sreekumar [Mon, 14 Feb 2022 13:51:34 +0000 (13:51 +0000)]
Fix policy-api CSIT test

Change-Id: Idd7fd933f10dabaa203ec498996aa772facddac9
Issue-ID: POLICY-3753
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMove PAP database provider to spring boot default 33/127033/2
a.sreekumar [Wed, 9 Feb 2022 12:19:54 +0000 (12:19 +0000)]
Move PAP database provider to spring boot default

Change-Id: I5a743a8e666978c0aa0a7fc833e846379780c94b
Issue-ID: POLICY-3867
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMerge "Fix spring datasource configuration for pap container"
Liam Fallon [Mon, 7 Feb 2022 17:19:31 +0000 (17:19 +0000)]
Merge "Fix spring datasource configuration for pap container"

2 years agoMerge "Fix failing build in jdk base image"
Liam Fallon [Mon, 7 Feb 2022 17:18:21 +0000 (17:18 +0000)]
Merge "Fix failing build in jdk base image"

2 years agoFix spring datasource configuration for pap container 01/127001/2
adheli.tavares [Mon, 7 Feb 2022 08:52:04 +0000 (08:52 +0000)]
Fix spring datasource configuration for pap container

Issue-ID: POLICY-3914
Change-Id: Iddb985161ecd51ad3f2b17ae6ac13d2825b67bec
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoMerge "Modified db-migrator to allow configuration of database"
Liam Fallon [Mon, 7 Feb 2022 11:56:21 +0000 (11:56 +0000)]
Merge "Modified db-migrator to allow configuration of database"

2 years agoFix failing build in jdk base image 00/127000/1
saul.gill [Mon, 7 Feb 2022 09:19:55 +0000 (09:19 +0000)]
Fix failing build in jdk base image

Fix originally put in drools-pdp
Upgraded Python pip package as was causing build failure

Issue-ID: POLICY-3905
Change-Id: Ib5320790914a6a1344ae0548aeda3c7cf4585734
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoAdd upgrade/downgrade scripts for postgres in db-migrator 63/126963/1
waynedunican [Fri, 4 Feb 2022 08:36:13 +0000 (08:36 +0000)]
Add upgrade/downgrade scripts for postgres in db-migrator

- Jakarta upgrade scripts
- Jakarta downgrade scripts

Issue-ID: POLICY-2715
Change-Id: I1dbe902644ce392ef0823022a256cf37cc499a3e
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoMerge "Add upgrade/downgrade scripts for postgres in db-migrator"
Liam Fallon [Wed, 2 Feb 2022 12:35:59 +0000 (12:35 +0000)]
Merge "Add upgrade/downgrade scripts for postgres in db-migrator"

2 years agoMerge "Add upgrade/downgrade scripts for postgres in db-migrator"
Liam Fallon [Wed, 2 Feb 2022 12:35:47 +0000 (12:35 +0000)]
Merge "Add upgrade/downgrade scripts for postgres in db-migrator"

2 years agoMerge "Add upgrade/downgrade scripts for postgres in db-migrator"
Liam Fallon [Wed, 2 Feb 2022 12:35:32 +0000 (12:35 +0000)]
Merge "Add upgrade/downgrade scripts for postgres in db-migrator"

2 years agoModified db-migrator to allow configuration of database 55/126855/3
waynedunican [Tue, 4 Jan 2022 19:48:11 +0000 (19:48 +0000)]
Modified db-migrator to allow configuration of database

- Updated the Dockerfile to include postgres sql
and to copy postgres scripts
- Added db-migrator-pg script for postgres installation
- Updated prepare upgrade/downgrade scripts

Issue-ID: POLICY-2715
Change-Id: Ib8d3523e8445ad1528fe225c96acdac5ca61535d
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoAdd testcase for app metrics exposed by distribution 39/126739/1
Ram Krishna Verma [Mon, 24 Jan 2022 21:53:04 +0000 (16:53 -0500)]
Add testcase for app metrics exposed by distribution

Adding testcases to verify the application level
metrics exposed by policy-distribution component.

Issue-ID: POLICY-3759
Change-Id: I3cbc36011c358dc9f52aa01c663eb8ff02a6323a
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoAdd upgrade/downgrade scripts for postgres in db-migrator 53/126853/1
waynedunican [Fri, 7 Jan 2022 09:33:06 +0000 (09:33 +0000)]
Add upgrade/downgrade scripts for postgres in db-migrator

- Honolulu upgrade scripts

Issue-ID: POLICY-2715
Change-Id: I1cec6f16c4797bd1ce34d506173d28ae48e36801
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoAdd upgrade/downgrade scripts for postgres in db-migrator 54/126854/1
waynedunican [Thu, 6 Jan 2022 14:22:57 +0000 (14:22 +0000)]
Add upgrade/downgrade scripts for postgres in db-migrator

- Honolulu downgrade scripts

Issue-ID: POLICY-2715
Change-Id: Id3c242311868898d32c3d2e92427cf687a1d7cc1
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoAdd upgrade/downgrade scripts for postgres in db-migrator 52/126852/1
waynedunican [Tue, 11 Jan 2022 09:20:28 +0000 (09:20 +0000)]
Add upgrade/downgrade scripts for postgres in db-migrator

- Istanbul upgrade scripts
- Istanbul downgrade scripts

Issue-ID: POLICY-2715
Change-Id: I0dcfd11acaf5971581db081f2ff18b7657d0c7af
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoFix issues in existing entity classes 35/126535/1
a.sreekumar [Mon, 10 Jan 2022 14:42:00 +0000 (14:42 +0000)]
Fix issues in existing entity classes

Change-Id: I862a5c413f5cf4d0e472a527cd6dc5a32c28459c
Issue-ID: POLICY-3871
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoPAP CSIT changes for spring boot migration 97/126197/3
a.sreekumar [Fri, 10 Dec 2021 17:17:20 +0000 (17:17 +0000)]
PAP CSIT changes for spring boot migration

Change-Id: I0b0df4769240e4ca1512b6c2acba25d59734ffe3
Issue-ID: POLICY-3754
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoUpdate snapshot and/or references of policy/docker to latest snapshots 29/126029/1
liamfallon [Thu, 2 Dec 2021 15:53:51 +0000 (15:53 +0000)]
Update snapshot and/or references of policy/docker to latest snapshots

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

policy/docker updated to its latest own and reference snapshots

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

2 years agoUpdate snapshot of policy/docker to 2.4.1-SNAPSHOT 75/125875/1
liamfallon [Wed, 24 Nov 2021 16:34:17 +0000 (16:34 +0000)]
Update snapshot of policy/docker to 2.4.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: I838765b413507978fff7dffce324df3f9f7e9dcf

2 years agoRelease policy/docker: 2.4.0 52/125852/1
liamfallon [Tue, 23 Nov 2021 15:21:08 +0000 (15:21 +0000)]
Release policy/docker: 2.4.0

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

This is the fourth phase in releasing images, it releases policy/docker.

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

2 years agoUpdate policy/parent to 3.5.0 on policy/docker 44/125844/1 2.4.0
liamfallon [Tue, 23 Nov 2021 11:50:07 +0000 (11:50 +0000)]
Update policy/parent to 3.5.0 on policy/docker

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

This commit updates the version of policy/parent
to the latest released version.

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

2 years agoFixed policy participant config to use https 78/125678/1
saul.gill [Wed, 10 Nov 2021 14:44:57 +0000 (14:44 +0000)]
Fixed policy participant config to use https

Changed to use "useHttps" instead of "https"
Changed username for api and pap from "healthcheck" to "policyadmin"
Added config to bind mount for policy participant

Issue-ID: POLICY-3817
Change-Id: I7470ea45ebb769a8781b76422626e13b5eb515bd
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoRename username for API and PAP operations. 00/125600/2
adheli.tavares [Mon, 1 Nov 2021 10:40:32 +0000 (10:40 +0000)]
Rename username for API and PAP operations.

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

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

Issue-ID: POLICY-3788
Change-Id: Ic9e9da13fc7cfdedebf81d8a6cc2a7190d8790b2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoImproving APEX-PDP CSIT tests 58/125158/2
a.sreekumar [Wed, 20 Oct 2021 16:28:04 +0000 (17:28 +0100)]
Improving APEX-PDP CSIT tests

Change-Id: I06023f9b7555b23b007aadd20e87fb4e59c9980c
Issue-ID: POLICY-3709
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoFixing the version fetch problem in Policy CSITs 25/125125/1
a.sreekumar [Tue, 19 Oct 2021 11:38:04 +0000 (12:38 +0100)]
Fixing the version fetch problem in Policy CSITs

The script that fetches the latest version in policy-docker/csit
currently support only the image versions in format:

<1 digit major version>.<1 digit minor version>-SNAPSHOT-latest

But this started failing now as drool jakarta version is "1.10.0".
This is fixed.

Change-Id: I1cba3beaa00628ec435f2aaef527a7f6318193bf
Issue-ID: POLICY-3749
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoBump policy/docker to Jakarta 2.4.0-SNAPSHOT 53/124953/1
liamfallon [Thu, 14 Oct 2021 09:31:43 +0000 (10:31 +0100)]
Bump policy/docker to Jakarta 2.4.0-SNAPSHOT

Issue-ID: POLICY-3696
Change-Id: I48777921ed97ec578fb797521c6dd1240a116d4b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoBump policy/docker to 2.3.2-SNAPSHOT 44/124944/1
liamfallon [Thu, 14 Oct 2021 08:46:20 +0000 (09:46 +0100)]
Bump policy/docker to 2.3.2-SNAPSHOT

Issue-ID: POLICY-3696
Change-Id: Id00233078bb6add59e5c90311cc78d7a4f29490d
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease policy/docker images version 2.3.1 66/124866/1
liamfallon [Tue, 12 Oct 2021 21:56:21 +0000 (22:56 +0100)]
Release policy/docker images version 2.3.1

Issue-ID: POLICY-3696
Change-Id: I90cf8e4064b77e530b88d4a88c19caadc574ba23
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUpdate parent version, jdk version in db-migrator 51/124851/1 2.3.1
liamfallon [Tue, 12 Oct 2021 16:22:22 +0000 (17:22 +0100)]
Update parent version, jdk version in db-migrator

Issue-ID: POLICY-3696
Change-Id: I827bdd238ab51a1798dab3d83f088377be7949ff
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoFixing policy-models-simulators helm chart 57/124757/1
a.sreekumar [Fri, 8 Oct 2021 09:17:42 +0000 (10:17 +0100)]
Fixing policy-models-simulators helm chart

Change-Id: I137be6241f934729d3452e308e24c454500ec86a
Issue-ID: POLICY-3655
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoAdd http and k8s participant to CSIT 36/124636/1
Sirisha_Manchikanti [Fri, 17 Sep 2021 16:33:11 +0000 (17:33 +0100)]
Add http and k8s participant to CSIT

Add HTTP and Kubernetes participant to
policy/docker/csit

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

2 years agoRetain datetime precision on downgrade 28/124528/1
ktimoney [Tue, 28 Sep 2021 09:37:39 +0000 (10:37 +0100)]
Retain datetime precision on downgrade

Retain datetime precision during downgrade operation
to prevent duplicate keys in pdpstatistics

Issue-ID: POLICY-3679
Change-Id: Ic93519b9420f0f77c3af7b63d3963f1971d77c37
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoModify pdpstatistics to prevent duplicate keys 78/124478/2
ktimoney [Fri, 24 Sep 2021 07:07:55 +0000 (08:07 +0100)]
Modify pdpstatistics to prevent duplicate keys

Update timeStamp column in pdpstatistics to include microseconds.

Issue-ID: POLICY-3679
Change-Id: Ibf622b090b1cd914413f79c663db8128263c4ac2
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoUpdate db-migrator version checks 86/124386/2
ktimoney [Mon, 20 Sep 2021 16:20:51 +0000 (17:20 +0100)]
Update db-migrator version checks

DB-Migrator job completes even during failed upgrade

Issue-ID: POLICY-3660
Change-Id: I7295c740853e4dd533e989faa3dddebab4d4ccab
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoRemove blank line from INFO.yaml 13/124013/1
liamfallon [Thu, 9 Sep 2021 20:53:58 +0000 (21:53 +0100)]
Remove blank line from INFO.yaml

Issue-ID: POLICY-3587
Change-Id: Ie5f862a6030b2db250b0bdf39ec89d58213093c5
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoPoint at released policy-parent 04/124004/1
liamfallon [Thu, 9 Sep 2021 15:13:29 +0000 (16:13 +0100)]
Point at released policy-parent

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

2 years agoUpdate INFO.yaml 56/123956/1
liamfallon [Wed, 8 Sep 2021 12:07:41 +0000 (13:07 +0100)]
Update INFO.yaml

Update the INFO.yaml file with latest information.

Issue-ID: POLICY-3552
Change-Id: Ie57f51e435b0e8caaf56524fc092e43c7ed79653
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMerge "Update default value of LASTUPDATE in pdp table"
Jim Hahn [Wed, 1 Sep 2021 16:59:49 +0000 (16:59 +0000)]
Merge "Update default value of LASTUPDATE in pdp table"

2 years agoAdd CSIT test for consolidated healthcheck 40/123740/1
Ram Krishna Verma [Tue, 31 Aug 2021 21:11:06 +0000 (17:11 -0400)]
Add CSIT test for consolidated healthcheck

Adding CSIT test for consolidated healthcheck.
Also, verifying the an external groups file can be mounted to replace
PapDb.json present inside the docker image for database initialization.

Issue-ID: POLICY-3609
Change-Id: Icf2585d9d9df7e820fbddfbd1fe044b5a9e29cb3
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoUpdate default value of LASTUPDATE in pdp table 33/123733/3
ktimoney [Tue, 31 Aug 2021 14:17:53 +0000 (15:17 +0100)]
Update default value of LASTUPDATE in pdp table

Update LASTUPDATE column in pdp table to use CURRENT_TIMESTAMP as default value

Issue-ID: POLICY-3608
Change-Id: I28d267729ab3959a0d4602a4129737d6d8029f86
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoUse env variables in drools/drools-apps CSITs 01/123701/1
jhh [Mon, 30 Aug 2021 22:24:59 +0000 (17:24 -0500)]
Use env variables in drools/drools-apps CSITs

Issue-ID: POLICY-3199
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Iefd75ae810c7b91b8cc37469b1169031346b2c4e
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2 years agoMerge "Bump docker to 2.3.1"
Ajith Sreekumar [Thu, 26 Aug 2021 11:32:58 +0000 (11:32 +0000)]
Merge "Bump docker to 2.3.1"

2 years agoMerge "Update CSITs for metrics + refactoring"
Ajith Sreekumar [Thu, 26 Aug 2021 08:52:57 +0000 (08:52 +0000)]
Merge "Update CSITs for metrics + refactoring"

2 years agoMerge "Update pdp_enginestats records during upgrade/downgrade"
Jim Hahn [Wed, 25 Aug 2021 22:10:32 +0000 (22:10 +0000)]
Merge "Update pdp_enginestats records during upgrade/downgrade"

2 years agoBump docker to 2.3.1 82/123582/1
Jim Hahn [Wed, 25 Aug 2021 16:38:21 +0000 (12:38 -0400)]
Bump docker to 2.3.1

Also changed db-migrator to base off of 2.3.0 jre-alpine version.  (We
have a "chicken and egg" problem where the migrator can't point to the
current docker version, as it hasn't been released yet, thus pointing it
to the latest released version, which is one back.)

Issue-ID: POLICY-3587
Change-Id: Idf34e9c6a724e31f16636388e239bed059c5dd3e
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRelease docker 2.3.0 images 58/123558/1
Jim Hahn [Wed, 25 Aug 2021 16:28:31 +0000 (12:28 -0400)]
Release docker 2.3.0 images

Issue-ID: POLICY-3587
Change-Id: I27d917e77b32bb9bf405f45caf3b04f802e7ba6d
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse release versions in docker 51/123551/1 2.3.0
Jim Hahn [Wed, 25 Aug 2021 14:03:50 +0000 (10:03 -0400)]
Use release versions in docker

Issue-ID: POLICY-3587
Change-Id: I49396f998f623bdb384c67891d770de0caafc79c
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate pdp_enginestats records during upgrade/downgrade 47/123547/1
ktimoney [Wed, 25 Aug 2021 11:14:54 +0000 (12:14 +0100)]
Update pdp_enginestats records during upgrade/downgrade

Updates to pdpstatistics have a knock on effect on pdp_enginestats.
Table data needs to updated to ensure records are in sync

Issue-ID: POLICY-3583
Change-Id: Id7408beceb47e540e933e8ccc0ff05095f8da85b
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoUpdate CSITs for metrics + refactoring 17/123417/6
a.sreekumar [Fri, 20 Aug 2021 16:39:53 +0000 (17:39 +0100)]
Update CSITs for metrics + refactoring

Change-Id: I5d090765ff29143f689c6754a7a1ad55dae1c1b4
Issue-ID: POLICY-3524
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoFix drools-apps CSIT 23/123523/1
Jim Hahn [Tue, 24 Aug 2021 21:13:35 +0000 (17:13 -0400)]
Fix drools-apps CSIT

Appears the the drools-apps healthcheck server now launches with https
disabled, by default.  The CSITs expect it to be enabled, so added a
property to enable it.

Issue-ID: POLICY-3553
Change-Id: Ia10e103d4e3964c3dbf28b7f6db19f6dd6ddb9c1
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate METADATA table names for policy/docker db-migrator 97/123497/1
ktimoney [Mon, 23 Aug 2021 14:07:18 +0000 (15:07 +0100)]
Update METADATA table names for policy/docker db-migrator

METADATA tables for policy/docker db-migrator should be different than counterpart in policy/drools-pdp seed

Issue-ID: POLICY-3547
Change-Id: Ie0c6ebf286ed410433014106425626cee55f222e
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoUpdate pdpstatistics with IDs for change of PK. 15/123415/2
adheli.tavares [Fri, 20 Aug 2021 13:44:30 +0000 (14:44 +0100)]
Update pdpstatistics with IDs for change of PK.

Update the new created ID column with values
when changing pdpstatistics PK composition.

Issue-ID: POLICY-3546
Change-Id: I53939557700237ccc7ab21e4069bd82ec6a4a4cf
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoFix CSIT migrator version 66/123366/1
Jim Hahn [Wed, 18 Aug 2021 21:12:56 +0000 (17:12 -0400)]
Fix CSIT migrator version

Modified the CSIT to only use the first two digits when selecting the
db-migrator version.

Issue-ID: POLICY-3535
Change-Id: Ic3539d87806ec9115fbad5e39498b3215cd25045
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpgrade/downgrade on existent tables and indexes. 95/123295/4
adheli.tavares [Thu, 12 Aug 2021 15:51:19 +0000 (16:51 +0100)]
Upgrade/downgrade on existent tables and indexes.

Issue-ID: POLICY-3535
Change-Id: I755bb0f279f4255eb9c452b9f569a88de69e14f2
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoMerge "Add db-migrator to CSIT tests"
Jim Hahn [Wed, 18 Aug 2021 13:26:49 +0000 (13:26 +0000)]
Merge "Add db-migrator to CSIT tests"

2 years agoRemove EPL-1.0 license 28/123328/1
Jim Hahn [Tue, 17 Aug 2021 14:40:25 +0000 (10:40 -0400)]
Remove EPL-1.0 license

ONAP does not allow code containing an EPL-1.0 license.  To address
this, the offending file was re-cloned, this time from ci-management,
which does not contain the EPL-1.0 license.

Issue-ID: POLICY-3431
Change-Id: Idd973e71beb57d55b7086f52abefd3bc5c5de65d
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd db-migrator to CSIT tests 21/123221/2
ktimoney [Mon, 9 Aug 2021 16:23:35 +0000 (17:23 +0100)]
Add db-migrator to CSIT tests

Issue-ID: POLICY-3491
Change-Id: I987986da7325a040b80b031ae4e7fbf9776c4c54
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agouse url resource for docker-tag -- docker 34/123234/1
Taka Cho [Tue, 10 Aug 2021 17:38:45 +0000 (13:38 -0400)]
use url resource for docker-tag -- docker

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

With this change, the "SNAPSHOT-latest" docker
tag will change from "2.3.0-SNAPSHOT-latest"
to "2.3-SNAPSHOT-latest" for jdk/jre alpine base
image as well as db_migrator docker.

Also fix a bug in println groovy script.

Issue-ID: POLICY-3378
Change-Id: I72bd15e2535f688629ee5f1a823409d8fe83cdb1
Signed-off-by: Taka Cho <takamune.cho@att.com>
2 years agoMerge "Add db-migrator to CSIT"
Ajith Sreekumar [Mon, 9 Aug 2021 14:18:15 +0000 (14:18 +0000)]
Merge "Add db-migrator to CSIT"

2 years agoAdd db-migrator to CSIT 84/123184/1
ktimoney [Mon, 9 Aug 2021 09:39:10 +0000 (10:39 +0100)]
Add db-migrator to CSIT

Update file permissions for db-migrator scripts

Issue-ID: POLICY-3491
Change-Id: I6895d27cb45dcdb9faa94ef5dc5e97b610ba3509
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agomove docker-build groovy script to docker repo 57/123157/2
Taka Cho [Thu, 5 Aug 2021 18:23:13 +0000 (14:23 -0400)]
move docker-build groovy script to docker repo

For all docker builds, policy is using groovy-maven-plugin
to run a groovy script to determine the tag for docker.

The plan is:
1, move docker-tag groovy script to docker repo.
2, change source for groovy-maven-plugin to a URL
   below, that will point to the source code from
   step #1.

   <configuration>
       <source>https://raw.githubusercontent.com/onap
       /policy-docker/master/utils/groovy
       /docker-tag.groovy</source>
   </configuration>

Issue-ID: POLICY-3378
Change-Id: Iff1f09e5ae47205240305b09602c49d403fad98f
Signed-off-by: Taka Cho <takamune.cho@att.com>
2 years agoRefactor pap csit test cases 64/123064/1
Ram Krishna Verma [Tue, 3 Aug 2021 14:14:46 +0000 (10:14 -0400)]
Refactor pap csit test cases

Refactored pap csit test cases to
* remove code duplication
* create methods for rest call
* improve assertions
* make it easy to add new test cases

Issue-ID: POLICY-3525
Change-Id: I60a5a9128ca6e97044d5de13fb14610d721c78d2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoUpdate parameters for distribution CSIT 20/123020/1
Jim Hahn [Fri, 30 Jul 2021 17:47:33 +0000 (13:47 -0400)]
Update parameters for distribution CSIT

Policy/distribution has been modified to use RestClientParams, thus
the corresponding json was modified to match.

Issue-ID: POLICY-3456
Change-Id: I64b5f4caf2f927b62b8a02f3352d083f06483937
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd policy audit to pap csit 80/122980/1
Ram Krishna Verma [Thu, 29 Jul 2021 22:09:58 +0000 (18:09 -0400)]
Add policy audit to pap csit

Adding policy audit api's to pap csit.

However, I see that pap csit file can be refactored
and lot of duplications can be removed.
Will do it as part of next review.

Issue-ID: POLICY-3340
Change-Id: I4334ad957ae70c4bcc9f3aa18d882042ce96d57f
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMerge "Update db-migrator to include ability to deal with partial installs"
Jim Hahn [Thu, 29 Jul 2021 13:42:40 +0000 (13:42 +0000)]
Merge "Update db-migrator to include ability to deal with partial installs"

2 years agoMove policy-db-migrator to separate container 32/122932/2
ktimoney [Wed, 28 Jul 2021 15:06:13 +0000 (16:06 +0100)]
Move policy-db-migrator to separate container

Issue-ID: POLICY-3458
Change-Id: I4ae930d7f903efc4cf10dfca88dfed843ea29edb
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoUpdate db-migrator to include ability to deal with partial installs 60/122860/3
ktimoney [Thu, 22 Jul 2021 13:25:50 +0000 (14:25 +0100)]
Update db-migrator to include ability to deal with partial installs

Allow user to upgrade or downgrade form a release that did not complete successfully

Issue-ID: POLICY-3490
Change-Id: Ie14a744246f26a9036066b9f4064bca0c23290be
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoMerge "Use docker registry properties in docker images"
Jim Hahn [Wed, 21 Jul 2021 12:20:44 +0000 (12:20 +0000)]
Merge "Use docker registry properties in docker images"

2 years agoMerge "Update db-migrator to include rollback functionality"
Ajith Sreekumar [Wed, 21 Jul 2021 11:21:02 +0000 (11:21 +0000)]
Merge "Update db-migrator to include rollback functionality"

2 years agoUpdate db-migrator to include rollback functionality 97/122697/3
ktimoney [Fri, 16 Jul 2021 14:58:40 +0000 (15:58 +0100)]
Update db-migrator to include rollback functionality

Issue-ID: POLICY-3490
Change-Id: Ibd1898819a5cb70f25bf69d71f2975dd2845389e
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoUse docker registry properties in docker images 50/122750/1
Jim Hahn [Mon, 19 Jul 2021 19:15:05 +0000 (15:15 -0400)]
Use docker registry properties in docker images

Issue-ID: POLICY-3374
Change-Id: Icebaf8184c2177778891bcd24a61ec93b2a46491
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRemove operationshistory10 DB 22/122722/3
Jim Hahn [Mon, 19 Jul 2021 18:23:34 +0000 (14:23 -0400)]
Remove operationshistory10 DB

The operationshistory10 DB is no longer needed; removed from the CSIT.

Issue-ID: POLICY-3419
Change-Id: Ifcf3022a9b9ca92ad3d4f00402ee4e8b141d40ba
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoBase policy-jdk image on onap-python image 37/122637/2
Jim Hahn [Wed, 14 Jul 2021 16:26:55 +0000 (12:26 -0400)]
Base policy-jdk image on onap-python image

The onap-java image only installs the java jre, but policy needs the
jdk, thus we have been uninstalling the jre and then installing the jdk.
Unfortunately, this means that the policy-jdk image does not use the
latest ONAP-specified point release for either the java jdk OR python.

With this change, the policy-jdk image will start with the onap-python
image instead, thus python, at least will be up to date, even if the jdk
is not.

Note: tried using the latest adoptjdk image, but apparently there's
something different about that image that triggers a stack overflow in
apex-pdp.  Consequently, we'll stay with the openjdk installed via
alpine "apk".  This is still java 11, which satisfies ONAP requirements,
it just isn't the point release that is preferred.

Issue-ID: POLICY-3486
Change-Id: I0959c7048a38e30927b37b58deb887cc961a2150
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoMerge "Move drools-pdp db-migrator to separate container"
Jim Hahn [Wed, 14 Jul 2021 16:53:00 +0000 (16:53 +0000)]
Merge "Move drools-pdp db-migrator to separate container"

2 years agoChange to xacml applicationParameters 13/122613/1
Dragosh, Pamela (pd1248) [Tue, 13 Jul 2021 18:08:17 +0000 (14:08 -0400)]
Change to xacml applicationParameters

Issue-ID: POLICY-3326
Change-Id: I116bade6fd8da23363af78e89beb23ee6e73d577
Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2 years agoMerge "Check exit status of wait_topic in xacml-pdp CSIT"
Jim Hahn [Tue, 13 Jul 2021 12:05:59 +0000 (12:05 +0000)]
Merge "Check exit status of wait_topic in xacml-pdp CSIT"

2 years agoMove drools-pdp db-migrator to separate container 60/122460/6
ktimoney [Fri, 2 Jul 2021 14:19:47 +0000 (15:19 +0100)]
Move drools-pdp db-migrator to separate container

Note: Instructions on how to use: https://wiki.onap.org/display/DW/Instructions+for+running+db-migrator

Issue-ID: POLICY-3458
Change-Id: I42bce63eca94333c6aaab0e27eb3e514bb844661
Signed-off-by: ktimoney <kevin.timoney@est.tech>
2 years agoCheck exit status of wait_topic in xacml-pdp CSIT 86/122586/1
Jim Hahn [Mon, 12 Jul 2021 19:07:33 +0000 (15:07 -0400)]
Check exit status of wait_topic in xacml-pdp CSIT

Added code to the xacml-pdp robot script to check the exit status of
wait_topic, to ensure that it succeeded.

Issue-ID: POLICY-3473
Change-Id: Ie47bb861cd331c42aa5ae4f91c38a259796be842
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate APEX CSIT tests to cover multiple outputs 23/122523/4
a.sreekumar [Thu, 8 Jul 2021 14:32:52 +0000 (15:32 +0100)]
Update APEX CSIT tests to cover multiple outputs

As part of this review, a new policy is executed in APEX-PDP that
interacts with AAI and CDS simulators. At each execution phase, along
with sending a request to AAI/CDS, a log event is also sent to DMaaP
notifying every action taken. This is done using the multiple output
support.

Change-Id: If34df13823196f9ece9b5ce6448b6652507f0b63
Issue-ID: POLICY-3466
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoReplace POLICY-STATISTICS with POLICY-HEARTBEAT 56/122456/1
Jim Hahn [Tue, 6 Jul 2021 13:19:21 +0000 (09:19 -0400)]
Replace POLICY-STATISTICS with POLICY-HEARTBEAT

Eliminated the separate topic/feed for policy statistics and replaced it
with a topic/feed for heatbeats, as that will be used for both
heartbeats AND statistics.

Issue-ID: POLICY-3460
Change-Id: Ie81a9c3d263db969a8c14597910f75724c244952
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd POLICY-STATISTICS topic to CSITs 00/122400/1
Jim Hahn [Thu, 1 Jul 2021 19:46:53 +0000 (15:46 -0400)]
Add POLICY-STATISTICS topic to CSITs

Added the topic.  Also reduced the heartbeat interval so that statistics
will be updated more frequently, reducing the time that some of the
tests take.

Issue-ID: POLICY-3405
Change-Id: I532a89b3e29884cf19f3a070d725280d9d10b637
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoFix related to name and statistics changes in CSIT 78/122378/1
a.sreekumar [Wed, 30 Jun 2021 15:46:00 +0000 (16:46 +0100)]
Fix related to name and statistics changes in CSIT

Change-Id: Iaeaadca083431a8b8df8043f73146fb31a09f3e0
Issue-ID: POLICY-3410
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoDon't regenerate policy root CA in CSITs 78/122278/2
Jim Hahn [Mon, 28 Jun 2021 17:28:12 +0000 (13:28 -0400)]
Don't regenerate policy root CA in CSITs

If the truststore already contains a root CA for policy, then the
script should not regenerate a root CA, as it interferes with pods
that are brought up in subsequent runs.

Issue-ID: POLICY-3384
Change-Id: I0c46fd23bd24ffd2add4e2d4914b6198a6f4b18f
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd CSIT for clamp controlloop 97/122097/2
Sirisha_Manchikanti [Tue, 8 Jun 2021 08:28:21 +0000 (09:28 +0100)]
Add CSIT for clamp controlloop

Add CSIT testcases, scripts and a seperate docker-compose file for
integration testing between controlloop components, this involves
integration between Mariadb, Dmaap, ControlLoop-Runtime,
Policy-Participant, Policy-API and DCAE-Participant docker images.

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

2 years agoUse newer onap docker base image 94/121994/1
Jim Hahn [Wed, 16 Jun 2021 21:00:26 +0000 (17:00 -0400)]
Use newer onap docker base image

Modified the docker files to use the newer onap docker base image.

Issue-ID: POLICY-3390
Change-Id: Ia9b57d1909917225b22eea5920f91ad193655911
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoMerge "Change container name to simulator in CSITs"
Pamela Dragosh [Tue, 15 Jun 2021 15:04:25 +0000 (15:04 +0000)]
Merge "Change container name to simulator in CSITs"

2 years agoDon't save private key 03/121903/2
Jim Hahn [Mon, 14 Jun 2021 16:00:48 +0000 (12:00 -0400)]
Don't save private key

GitHub complains if you include a private key in a repo.  Modified the
CSITs to generate the root CA so that it's private key does not have to
be stored.

Issue-ID: POLICY-3384
Change-Id: I4bebc3e4b0e386047d7f6fbd19150812cb605899
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoChange container name to simulator in CSITs 00/121900/1
Jim Hahn [Mon, 14 Jun 2021 14:04:00 +0000 (10:04 -0400)]
Change container name to simulator in CSITs

Changed the container name of message-router to simulator.  Also
introduced aliases for aai-sim, so-sim, etc.

Issue-ID: POLICY-3384
Change-Id: Ife8c7c69d2342f256d6bcfb0d6704734472b5554
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRename to message-router 81/121881/3
Jim Hahn [Fri, 11 Jun 2021 17:23:20 +0000 (13:23 -0400)]
Rename to message-router

Modified the CSITs to use message-router for the simulator name.
Also added a Root CA so that the ssl certificates can be signed.
Removed property file overrides that are no longer needed.

Issue-ID: POLICY-3384
Change-Id: I6f1bc53f192567eeab0e71a64d9eaec814a38dd0
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoDon't use pip3 wrapper script 08/121708/1
Jim Hahn [Fri, 4 Jun 2021 17:22:49 +0000 (13:22 -0400)]
Don't use pip3 wrapper script

The pip3 script generates a warning saying to use "python3 -m pip"
instead.  Modified the code as such.

Issue-ID: POLICY-3155
Change-Id: I852583bea88b6d4b969a1aba20e7b9193fa24732
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse local version of the include script 89/121689/1
arkadiusz.adamski [Thu, 3 Jun 2021 15:09:29 +0000 (16:09 +0100)]
Use local version of the include script

- Use local version of the include-raw-integration-install-robotframework.sh script
- correct name of pip python module

Issue-ID: POLICY-3092
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: Iba43621b3c8aebfa715cee91a75fd6832ccbc2be

3 years agoUse python3 for CSITs 99/121599/10
arkadiusz.adamski [Mon, 24 May 2021 11:50:40 +0000 (12:50 +0100)]
Use python3 for CSITs

- use python3 and pip3 in scripts
- update robot-framework-http library, so it can use python3
- update selenium2library, so it can use python3

Issue-ID: POLICY-3092
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: I5a6a4fe43e54366859049e1d43bbce599dacd14e

3 years agoTest csit verify jobs 25/121425/1
Ram Krishna Verma [Wed, 19 May 2021 18:33:02 +0000 (14:33 -0400)]
Test csit verify jobs

Test the csit verify jobs created as part of https://gerrit.onap.org/r/c/ci-management/+/121407

Issue-ID: POLICY-3257
Change-Id: I03bbfc2113c18c704c28270fe9c6720ddbc0e7ef
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoMerge "Update comments in test plans"
Pamela Dragosh [Fri, 14 May 2021 18:42:04 +0000 (18:42 +0000)]
Merge "Update comments in test plans"

3 years agoMerge "add https telemetry configuration for csits"
Ram Krishna Verma [Thu, 13 May 2021 18:52:22 +0000 (18:52 +0000)]
Merge "add https telemetry configuration for csits"

3 years agoUpdate comments in test plans 42/121342/1
Jim Hahn [Thu, 13 May 2021 17:24:12 +0000 (13:24 -0400)]
Update comments in test plans

Changed the directory name in the test plan comments, now that they've
been moved to docker/csit.

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