policy/distribution.git
6 years agoMerge "Upgrade to released artifacts" 2.2.0
Jim Hahn [Mon, 1 Jul 2019 18:31:59 +0000 (18:31 +0000)]
Merge "Upgrade to released artifacts"

6 years agoUpgrade to released artifacts 43/90743/1
Pamela Dragosh [Mon, 1 Jul 2019 18:11:28 +0000 (14:11 -0400)]
Upgrade to released artifacts

Policy/common, models and apex are released

Issue-ID: POLICY-1737
Change-Id: I0cefaad8ad5791d07fe19382c12c5f0421361588
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoAdd curly braces in shell script file 42/90642/1
shaoqiu [Fri, 28 Jun 2019 05:45:55 +0000 (05:45 +0000)]
Add curly braces in shell script file

According to comment:
https://gerrit.onap.org/r/c/policy/xacml-pdp/+/90495/1/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh#43

Issue-ID: POLICY-1702
Change-Id: Ie7c37a07dfc33f6b6bca70d9f9c2cb4cfb3377f5
Signed-off-by: shaoqiu <tim.huang@est.tech>
6 years agoMerge "Remove POLICY_DISTRIBUTION_HOME in Dockerfile"
Pamela Dragosh [Thu, 27 Jun 2019 10:34:20 +0000 (10:34 +0000)]
Merge "Remove POLICY_DISTRIBUTION_HOME in Dockerfile"

6 years agoFix distribution latest tag 45/90545/1
pdragosh [Wed, 26 Jun 2019 17:54:26 +0000 (13:54 -0400)]
Fix distribution latest tag

Eliminating the patch - using Rashmi's changes.

Issue-ID: POLICY-1737
Change-Id: I4a790b3da6de823bb744af270f541c0699ed8092
Signed-off-by: pdragosh <pdragosh@research.att.com>
6 years agoRemove POLICY_DISTRIBUTION_HOME in Dockerfile 96/90496/1
shaoqiu [Wed, 26 Jun 2019 04:08:11 +0000 (04:08 +0000)]
Remove POLICY_DISTRIBUTION_HOME in Dockerfile

Update the policy-dist.sh and Dockerfile according to the comments in
commit: https://gerrit.onap.org/r/c/policy/api/+/89972

Issue-ID: POLICY-1702
Change-Id: Ia3d2ce356baac3a657da879fb9ccf5eefd2a9624
Signed-off-by: shaoqiu <tim.huang@est.tech>
6 years agoUpgrade to release 3.0.0 parent 60/90260/2
Pamela Dragosh [Thu, 20 Jun 2019 20:36:02 +0000 (16:36 -0400)]
Upgrade to release 3.0.0 parent

Policy/parent released

Issue-ID: POLICY-1737
Change-Id: Ie2b62644526d49bc13ada05f39fc0551e5c5e428
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoChange getCanonicalName to getName in distribution 43/90043/2
Jim Hahn [Mon, 17 Jun 2019 22:04:43 +0000 (18:04 -0400)]
Change getCanonicalName to getName in distribution

Per javadocs, getName() should generally be used instead of
Class.getCanonicalName(). This change only applies to classes; it
does not apply to File objects.

Change-Id: I7a575900f6d26065563e4907cd2176f690797021
Issue-ID: POLICY-1646
Signed-off-by: Jim Hahn <jrh3@att.com>
6 years agoFix junit tests in distribution 99/90099/1
Jim Hahn [Tue, 18 Jun 2019 16:25:03 +0000 (12:25 -0400)]
Fix junit tests in distribution

Sonar fix broke some of the junit tests for parameters; fixed
those.
Also fixed some checkstyle errors (e.g., unused imports).

Change-Id: I76c57792b82b9c2ddd27bdbc35910e9b11d86ea5
Issue-ID: POLICY-1791
Signed-off-by: Jim Hahn <jrh3@att.com>
6 years agoBump distribution to 2.2.0 57/89057/1
Pamela Dragosh [Fri, 31 May 2019 15:48:36 +0000 (11:48 -0400)]
Bump distribution to 2.2.0

Due to dublin branch.

Issue-ID: POLICY-1747
Change-Id: I889d3c5276a070404eeba86d99ca82852d2645e5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoUpdate INFO.yaml to add Jim and Ram 65/88265/1
liamfallon [Wed, 22 May 2019 14:43:05 +0000 (14:43 +0000)]
Update INFO.yaml to add Jim and Ram

Issue-ID: POLICY-1775
Change-Id: I9dc75811f0d65ed9533c0485c33bf623da4fda7a
Signed-off-by: liamfallon <liam.fallon@est.tech>
6 years agoStep snapshot version of policy-distribution 93/87893/1
liamfallon [Thu, 16 May 2019 15:09:45 +0000 (15:09 +0000)]
Step snapshot version of policy-distribution

Issue-ID: POLICY-1630
Change-Id: Ie107fa87bdce76eec39a8ee5ae55b700236a3017
Signed-off-by: liamfallon <liam.fallon@est.tech>
6 years agoUpgrade to release versions 02/87802/1 2.1.0 4.0.0-ONAP
Pamela Dragosh [Wed, 15 May 2019 20:04:06 +0000 (16:04 -0400)]
Upgrade to release versions

Released policy/engine 1.4.0 and apex engine 2.1.0

Issue-ID: POLICY-1630
Change-Id: Ib39c9daae5966791f88885485978c1b4b95738c5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoupgrade sdc tosca parse to v1.5.1 21/87221/3
liboNet [Thu, 9 May 2019 00:54:06 +0000 (08:54 +0800)]
upgrade sdc tosca parse to v1.5.1

update pom.xml to use v1.5.1 for sdc-tosca parse
update Extract file since the DM's change
update the csar file based on new DM
update Test file to reflect the new CSAR file

Change-Id: I90da979ff1cedbdedadacc46386aa5ea0e7b6711
Issue-ID: POLICY-1720
Signed-off-by: liboNet <libo.zhu@intel.com>
6 years agoUpgrade policy/parent & policy/common in distribution 59/87559/1
ramverma [Mon, 13 May 2019 13:33:23 +0000 (13:33 +0000)]
Upgrade policy/parent & policy/common in distribution

Change-Id: Iada6e88ac68f4cea874d2cf832da77657df576e6
Issue-ID: POLICY-1630
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
6 years agoRebase image on policy-common-alpine 65/83465/2
Dmitry Puzikov [Mon, 25 Mar 2019 14:16:04 +0000 (15:16 +0100)]
Rebase image on policy-common-alpine

Added exact version of base image

Issue-ID: INT-999
Change-Id: I149b92c6e28d0dd325f9601a6aa979767d0a2e9b
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
6 years agoMerge "One year cert with new component names"
Pamela Dragosh [Tue, 16 Apr 2019 13:34:49 +0000 (13:34 +0000)]
Merge "One year cert with new component names"

6 years agoFix more sonar issues 98/85398/1
Lianhao Lu [Tue, 16 Apr 2019 02:37:32 +0000 (10:37 +0800)]
Fix more sonar issues

Fixed the sonar issues: S134, S3725, S2129.

Issue-ID: POLICY-1638
Change-Id: I1a91b8e5e071a770faf8182e8ac1ada04b63599e
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoOne year cert with new component names 81/85381/1
jhh [Mon, 15 Apr 2019 23:19:40 +0000 (18:19 -0500)]
One year cert with new component names

Change-Id: Ide8130ead1e5aff8d8346cb24f82233e64d4c144
Issue-ID: POLICY-1580
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
6 years agoFix sonnar issues 33/85133/1
Lianhao Lu [Fri, 12 Apr 2019 00:53:46 +0000 (08:53 +0800)]
Fix sonnar issues

Change-Id: Ic9ad2d733ace26fdd085a03af901783192d72a79
Issue-ID: POLICY-1638
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoGracefully release resource in file reception plugin 86/84986/1
Lianhao Lu [Thu, 11 Apr 2019 02:26:45 +0000 (10:26 +0800)]
Gracefully release resource in file reception plugin

In the FileSystemReception plugin, we need to shutdown the thread pool
to release the resources gracefully.

Change-Id: I800e4070d7bf8c052d964139117a68dc48c50f76
Issue-ID: POLICY-1631
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoChange logging from FlexLogger to SLF4J 78/84978/1
Lianhao Lu [Thu, 11 Apr 2019 01:49:42 +0000 (09:49 +0800)]
Change logging from FlexLogger to SLF4J

Replace the FlexLogger with SLF4J in forward plugins.

Change-Id: I20077f1a400cd1a28b4b32f877d20d5628af881c
Issue-ID: POLICY-1346
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoAdd multi-thread support in FileSystemReceptionHander 99/84799/1
Lianhao Lu [Wed, 10 Apr 2019 06:40:11 +0000 (14:40 +0800)]
Add multi-thread support in FileSystemReceptionHander

By adding multi-thread support in FileSystemReceptionHander, we can have
a more thorough s3p test to test performance & stablity in multithread
situations.

Change-Id: Id263435531e26dcbadfbda6f82b26ac54a72ba1a
Issue-ID: POLICY-1274
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoAdd a new policy file log forwarder. 85/84785/1
Lianhao Lu [Wed, 10 Apr 2019 04:39:16 +0000 (12:39 +0800)]
Add a new policy file log forwarder.

By introducing the new file log policy forwarder, we now could remove
dependency to external pap/pdp engine during s3p test, and focus only
on the performance and stability of the pssd instead.

Change-Id: I769d4f4a5425c82fa84e5fae20f08b6527bd5d70
Issue-ID: POLICY-1274
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoAdd NSS libraries to images 30/82530/1
Jorge Hernandez [Sun, 17 Mar 2019 05:19:56 +0000 (00:19 -0500)]
Add NSS libraries to images

Alpine OpenJDK was updated 2 days ago (3/14), this
upgrade seems to break java applications that depend on libnss*.so
OS libraries, which seem are no longer installed with the jdk.

Added some other libraries to aid when debugging.

Change-Id: I97e58b963420a43e91f9596ed72a82185a20d859
Issue-ID: POLICY-1604
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
6 years agoUpdate INFO.yaml file 89/82489/1
Jessica Wagantall [Fri, 15 Mar 2019 20:53:39 +0000 (13:53 -0700)]
Update INFO.yaml file

Update missing information blocks and
indentation to pass verify job.

Change-Id: I6bfa10c8a3d214884882edd3ee9d0e8d02245113
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
6 years agoUse Alpine as base docker image in distribution 53/79753/1
ning.xi [Wed, 6 Mar 2019 03:32:53 +0000 (03:32 +0000)]
Use Alpine as base docker image in distribution

Issue-ID: POLICY-1550
Change-Id: I16801ad4fa0c2db578a9d1e41adef053df5074be
Signed-off-by: ning.xi <ning.xi@est.tech>
6 years agoMerge "Changes directory structure of S3P Tests"
Pamela Dragosh [Fri, 1 Mar 2019 15:44:53 +0000 (15:44 +0000)]
Merge "Changes directory structure of S3P Tests"

6 years agoUpdate INFO.yaml Liam's email 77/79377/1
Pamela Dragosh [Thu, 28 Feb 2019 16:10:03 +0000 (11:10 -0500)]
Update INFO.yaml Liam's email

est.tech

Issue-ID: POLICY-1556
Change-Id: I2d49ebac72911e59e0d0f12546652280593e0a26
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoChanges directory structure of S3P Tests 95/79295/1
Bilal A [Wed, 27 Feb 2019 18:52:05 +0000 (13:52 -0500)]
Changes directory structure of S3P Tests

Changes Include:
a) Moving performance and stability tests into two separate directories.

Change-Id: Ib98713b2c37658de16c5eb6ee8918b867bdf5b8a
Issue-ID: POLICY-1462
Signed-off-by: Bilal A <bilal@research.att.com>
6 years agoUse gson by default 73/78673/1
jh7358 [Mon, 18 Feb 2019 14:37:38 +0000 (09:37 -0500)]
Use gson by default

Add a property to force the REST server to use gson instead of jackson.

Change-Id: I0dd762e0f9b4a4809f68e5b5498e16136f611d12
Issue-ID: POLICY-1525
Signed-off-by: Jim Hahn <jrh3@att.com>
6 years agoFix docker build in policy/distribution 46/78046/1
ramverma [Thu, 7 Feb 2019 12:02:07 +0000 (12:02 +0000)]
Fix docker build in policy/distribution

policyLoger.properties file was removed as part of moving to slf4j
for logging. But the assembly.xml file was still refering to it. Since
the file was not there the /bin directory was missing from the
created package. Resulting in docker builds failing.

Change-Id: Ia800c949d180d592aa0adb6cf61773b37329be48
Issue-ID: POLICY-1346
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
6 years agoChange policy/distribution logging to slf4j 80/77880/1
ramverma [Tue, 5 Feb 2019 15:34:35 +0000 (15:34 +0000)]
Change policy/distribution logging to slf4j

1) Changed logging from FlexLogger to SLF4J with logback
2) Fixed test cases of distribution REST endpoints having
   infinite while loop

Change-Id: I1551873b3d348f9a7d2b4f8dfc3ae5dd6462bdb8
Issue-ID: POLICY-1346
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
6 years agoFix compilation error on policy-distribution 54/76354/1
ramverma [Fri, 25 Jan 2019 15:26:52 +0000 (15:26 +0000)]
Fix compilation error on policy-distribution

Change-Id: Ic190774c74c11a2d11c3b3b7e0144f69cd8770e8
Issue-ID: POLICY-1428
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
6 years agoFix issues in policy-distribution 87/76087/3
ramverma [Tue, 22 Jan 2019 12:39:39 +0000 (12:39 +0000)]
Fix issues in policy-distribution

1) Creating a new thread for watching directory path for new file.
2) Updating distribution statistics from FileSystemReceptionHandler.

Change-Id: Ic539f2cad015f0756407fe910f309a2ea661a764
Issue-ID: POLICY-1437
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
6 years agoRemove properietary license from CSAR 55/76055/1
liboNet [Tue, 22 Jan 2019 00:45:03 +0000 (08:45 +0800)]
Remove properietary license from CSAR

Remove these license from the Artifacts/Information directory
which will NOT impact the test in S3p and reception-plugins

Change-Id: I6551d37b704b2191b865af8c69f01eae685d0adb
Issue-ID: POLICY-1433
Signed-off-by: liboNet <libo.zhu@intel.com>
6 years agoFix Noncompliant usage sonar issue 83/75283/4
liboNet [Sat, 5 Jan 2019 05:31:04 +0000 (13:31 +0800)]
Fix Noncompliant usage sonar issue

remove the Thread.sleep about such noncompliant usage
rename the funciton name for codestyle's alignment

Change-Id: I71b66143d7d68fa58a1a60de70e1836fde7df8c4
Issue-ID: POLICY-1256
Signed-off-by: liboNet <libo.zhu@intel.com>
6 years agoFix checkstyle issues in distribution 35/74935/2
liamfallon [Wed, 19 Dec 2018 19:11:01 +0000 (19:11 +0000)]
Fix checkstyle issues in distribution

Some fixes for minor checkstyle issues.

Issue-ID: POLICY-1221
Change-Id: I86577f47283a6fa97be25d7550ed9c2d7ec026a9
Signed-off-by: liamfallon <liam.fallon@est.tech>
6 years agoFix lineEnding issue for policy-keystore 76/74876/1
liboNet [Wed, 19 Dec 2018 22:57:56 +0000 (06:57 +0800)]
Fix lineEnding issue for policy-keystore

. separate the etc/ssl from etc in assembly
. fix the JVM property typo by using trustStorePassword

Change-Id: I0e00bf211de96939346c46e0486361e29f9e20f7
Issue-ID: POLICY-1385
Signed-off-by: liboNet <libo.zhu@intel.com>
6 years agoadd Https support for distribution endpoints 02/74702/2
liboNet [Tue, 18 Dec 2018 01:22:00 +0000 (09:22 +0800)]
add Https support for distribution endpoints

. add the https into the RestServerParameters interface
. update CommonTestData to support https interface
. add two cases for healthcheck and statistic https validation
. update the package script to use JVM properties
. add keystore and truststore to resources dir
. update the keystore path for consistency

Change-Id: I04b2a3e1afef84eafbb6a22e6fe2122a5a181883
Issue-ID: POLICY-1221
Signed-off-by: liboNet <libo.zhu@intel.com>
6 years agoFix policy format with vCPE service 02/73502/4
liboNet [Tue, 27 Nov 2018 00:10:33 +0000 (08:10 +0800)]
Fix policy format with vCPE service

. change the capital and lower-case letter
. add missing fields in ConfigBody policyName and templateVersion
that are requried by OOF
. add '=' into default operator once no such info in the input CSAR
. based on the vCPE service, which includes several CPs, some may do
NOT connect any VDU. so need deal with such case.
. add new test case to cover complicated service includes 5 policies
. change the resource's type from String to List as requried by OOF
which needs such format to deal with all kind of policies beides hpa
. improve the code style

Change-Id: Id39b1a0511c362c5ae9dce409af18b032832de80
Issue-ID: POLICY-1282
Signed-off-by: liboNet <libo.zhu@intel.com>
6 years agoCreate label for architecture to ref 35/73435/1
Pamela Dragosh [Fri, 23 Nov 2018 19:50:58 +0000 (14:50 -0500)]
Create label for architecture to ref

Creating a label so architecture document can reference this
new application.

Issue-ID: POLICY-1163
Change-Id: Ie3cef673f179240d562dc02411d38c9dfc038252
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agopolicy/distribution documents 69/73369/3
ramverma [Thu, 22 Nov 2018 11:33:03 +0000 (11:33 +0000)]
policy/distribution documents

Change-Id: I1c3e083a9ce050ce67acd5f68d0dcf498927592a
Issue-ID: POLICY-1260
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
6 years agoAdded additional supporting scripts for s3p test 06/73106/1
Lianhao Lu [Tue, 20 Nov 2018 05:59:49 +0000 (13:59 +0800)]
Added additional supporting scripts for s3p test

clean_policy.sh: remove policies correspdoing to s3p csar files.

list_failed_policy.sh: try to get failed policies from pdp in s3p test.

Issue-ID: POLICY-837
Change-Id: I742437f740eee191875b25eccd03f00574bc0dcc
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoFix unchecked cast sonar issue 50/72550/5
Pamela Dragosh [Tue, 13 Nov 2018 15:19:07 +0000 (10:19 -0500)]
Fix unchecked cast sonar issue

Removed the unused variable. We are reasonably
sure that the cast is ok.

Fixed the JUnit tests, removed useless imports,
unused variables and raw types.

Issue-ID: POLICY-1256
Change-Id: Iad7dbbf02a4dd48648fc9d5c20595c9f0f8d7acb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agos3p: Remove temporary workaround 98/72498/2
Lianhao Lu [Tue, 13 Nov 2018 03:41:16 +0000 (11:41 +0800)]
s3p: Remove temporary workaround

Since bug POLICY-1254 has been fixed, remove the workaround for it.

Change-Id: I40a706b439b8db8530299921c8a59ef04e0d250d
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoFileSystemReceptionHandler: Fix sonar issues 97/72497/2
Lianhao Lu [Tue, 13 Nov 2018 03:25:29 +0000 (11:25 +0800)]
FileSystemReceptionHandler: Fix sonar issues

Fixed 6 code smell issues reported by sonar.

Change-Id: I537df24f0f0624470efd8675f01ecd433aed1cb0
Issue-ID: POLICY-1256
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoMerge "Fix virtual_binding error under VDU requirements"
Liam Fallon [Mon, 12 Nov 2018 14:59:33 +0000 (14:59 +0000)]
Merge "Fix virtual_binding error under VDU requirements"

6 years agoFix virtual_binding error under VDU requirements 71/72271/2
liboNet [Fri, 9 Nov 2018 21:32:42 +0000 (05:32 +0800)]
Fix virtual_binding error under VDU requirements

virtual_binding will bind CP to a VDU but virtual_link
use the node name instead of the name of node's propertiy
add new test case to cover s3p
the picvendorId's path has been changed based on demo repo

Change-Id: I0ca400eab4d16284f14cb568fe3da5b409dd9222
Issue-ID: POLICY-1254
Signed-off-by: liboNet <libo.zhu@intel.com>
6 years agoMake FileSystemReceptionHandler more tolerant 72/72272/2
Lianhao Lu [Fri, 9 Nov 2018 06:57:30 +0000 (14:57 +0800)]
Make FileSystemReceptionHandler more tolerant

Make FileSystemReceptionHandler tolerant of exceptions thrown when
parsing tosca template and be able to handle new incoming csar.

Also added the unit test for FileSystemReceptionHandler.

Change-Id: I0f1647f6f952576a8e61adca4d027990706d1411
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoFix sonar/checkstyle issues 94/72294/1
Pamela Dragosh [Fri, 9 Nov 2018 13:02:39 +0000 (08:02 -0500)]
Fix sonar/checkstyle issues

The main pom.xml was incorrect, so these issues have
creeped into the source code.

Issue-ID: POLICY-1256
Change-Id: Ic0b52f3a28f869252120991b0c1946ef8402bcc5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoAdded JMeter scripts for perf test 58/72058/5
Lianhao Lu [Wed, 7 Nov 2018 09:59:37 +0000 (17:59 +0800)]
Added JMeter scripts for perf test

Change-Id: I4286c6defdef331ee5c40399d17381d3c8b8a544
Issue-ID: POLICY-836
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoAdded JMeter scripts for stability test 57/72057/4
Lianhao Lu [Wed, 7 Nov 2018 08:39:31 +0000 (16:39 +0800)]
Added JMeter scripts for stability test

Added the scripts and JMeter scenario for stability test

Change-Id: If495321e54e56d688cfadd53894a0361f283079d
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
6 years agoS3P: added FileSystemReceptionHandler plugin 56/72056/3
Lianhao Lu [Wed, 7 Nov 2018 03:46:28 +0000 (11:46 +0800)]
S3P: added FileSystemReceptionHandler plugin

For S3P test, we need to add a new FileSystemRecpetionHandler plugin
which monitors a local directory for newly come csar files.

This patch added the plugin code as well as the configuration file for
s3p to use.

Change-Id: I8f1e65489abde15ae32c54d819bbc6e7cbdf36d0
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
7 years agoSet new master version for Dublin 76/71576/3
liamfallon [Wed, 31 Oct 2018 18:23:28 +0000 (18:23 +0000)]
Set new master version for Dublin

Issue-ID: POLICY-1232
Change-Id: Ib72ebd05fb88de05c356f05ee7ca2a4e4d00881c
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
7 years agouse https instead of http to do forward 50/71550/1
liboNet [Thu, 1 Nov 2018 06:38:08 +0000 (14:38 +0800)]
use https instead of http to do forward

use https instead of http
set default as the value of pdpGroup

Change-Id: I9c4fa901bfc00be465b6ba9777d4c35c0ac93eb3
Issue-ID: POLICY-1237
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoAdd more logics about fields value for OOF model 63/71463/2
liboNet [Wed, 31 Oct 2018 02:03:49 +0000 (10:03 +0800)]
Add more logics about fields value for OOF model

To align with OOF/Policy/SO, need add below:
. resource should be set as name field of SDC resource.
. identity should be set as a concatenation of PolicyType + "_" + Resource
. value of flavorDirective's type, expected from OOF, is "flavor_directives"
. policyScope should add the name of service from SDC to align with that from SO.
. Update the Testcase

Change-Id: I57f461ef51e0f50e6096c9c9ba84c5832cb13656
Issue-ID: POLICY-1227
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoFix refering to snapshot in policy/distribution 52/71152/3 2.0.1
ramverma [Wed, 24 Oct 2018 13:56:47 +0000 (14:56 +0100)]
Fix refering to snapshot in policy/distribution

Issue-ID: POLICY-1213
Change-Id: I7262a00ec35549e63127f8a3730ca8aa75da09aa
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoMerge "Fix NullPointerException of PolicyScope field"
Jorge Hernandez [Tue, 16 Oct 2018 17:51:22 +0000 (17:51 +0000)]
Merge "Fix NullPointerException of PolicyScope field"

7 years agoFix NullPointerException of PolicyScope field 41/70541/2
liboNet [Wed, 17 Oct 2018 00:14:23 +0000 (08:14 +0800)]
Fix NullPointerException of PolicyScope field

add HPA into PolicyScope to fix the NullPointerException

Change-Id: I160e630d982257c57e1f950906c231c895872c71
Issue-ID: POLICY-1200
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoFixing bug in policy-distribution 51/70551/1
ramverma [Tue, 16 Oct 2018 11:39:27 +0000 (12:39 +0100)]
Fixing bug in policy-distribution

Fixing bug in distributor due to which malformed xml
was being sent to apex-pdp for updating the policy.
And due to which the parser in apex-pdp use to fail.

Change-Id: I5feaad0eeb06c820904acacd5cc47858b14eb963
Issue-ID: POLICY-1201
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoAdd version tag for release 59/70359/1 2.0.0
Pamela Dragosh [Fri, 12 Oct 2018 14:24:06 +0000 (10:24 -0400)]
Add version tag for release

Maven does not like the version being inherited from parent.
So must explicitly set it.

Issue-ID: POLICY-1189
Change-Id: I4097368f5084c6da724df185cfb58bd88a668130
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoUpgrade to released 1.3.0 artifacts 62/70062/1
Pamela Dragosh [Mon, 8 Oct 2018 20:43:50 +0000 (16:43 -0400)]
Upgrade to released 1.3.0 artifacts

policy/common and policy/engine are released.

Issue-ID: POLICY-1189
Change-Id: I9ea1222fc3330493595cd9545a2728d48b9e044e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoRemove properietary license from CSAR 40/70040/1
liboNet [Tue, 9 Oct 2018 21:54:53 +0000 (05:54 +0800)]
Remove properietary license from CSAR

Remove these license in zip file from the Artifacts/Deployments
directory which will NOT impact the test
reduce the size of csar file by using zip -9 compression

Change-Id: I234da7c13f0ce00fc2f1edbc16aac279bf90752d
Issue-ID: POLICY-1185
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoRemove properietary license from CSAR 64/69964/3
liboNet [Mon, 8 Oct 2018 18:48:59 +0000 (02:48 +0800)]
Remove properietary license from CSAR

Remove these license from the Artifacts/Information directory
which will NOT impact the test

Change-Id: I3280ca902616248313fe357cfa0cda9bc254b178
Issue-ID: POLICY-1185
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoUpdate the schema parse based on newer version 59/69559/1
liboNet [Sun, 30 Sep 2018 20:01:30 +0000 (04:01 +0800)]
Update the schema parse based on newer version

the schema format of HPA requirement has been modified
so that the parse needs update too based on the wiki:
https://wiki.onap.org/display/DW/Specifying+HPA+
Capability+Requirements+using+TOSCA-based+VNF+Descriptors

Change-Id: I48b39797e70d686ed0b9b2e7001b9a00068e76fd
Issue-ID: POLICY-1160
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoAdd user and password into client setting 47/69547/1
liboNet [Sat, 29 Sep 2018 22:27:50 +0000 (06:27 +0800)]
Add user and password into client setting

SDC will do authorization based on the input configuration.

Change-Id: Ie4b3eca8d24a669e14e9752f7d7f67a222fdc3d1
Issue-ID: POLICY-1158
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoMerge "AIOOBE when ApexPdpPolicyForwarder#forward"
Pamela Dragosh [Tue, 25 Sep 2018 10:41:32 +0000 (10:41 +0000)]
Merge "AIOOBE when ApexPdpPolicyForwarder#forward"

7 years agoMerge "Add .casr suffix to downloaded csar file"
Liam Fallon [Tue, 25 Sep 2018 08:01:20 +0000 (08:01 +0000)]
Merge "Add .casr suffix to downloaded csar file"

7 years agoAIOOBE when ApexPdpPolicyForwarder#forward 59/68559/3
Alexis de Talhouët [Sun, 23 Sep 2018 04:27:17 +0000 (00:27 -0400)]
AIOOBE when ApexPdpPolicyForwarder#forward

Change-Id: Iebc19d2e734ead405ac398a1011dcd42990b20b8
Issue-ID: POLICY-1147
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
7 years agoEnable TRACE log for distribution 61/68561/2
Alexis de Talhouët [Sun, 23 Sep 2018 04:32:31 +0000 (00:32 -0400)]
Enable TRACE log for distribution

Change-Id: I2eceec9d4f015bd6ecd961d47ed0a8fbe41f40ab
Issue-ID: POLICY-1147
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
7 years agoAdd .casr suffix to downloaded csar file 55/68555/1
Alexis de Talhouët [Sun, 23 Sep 2018 03:53:51 +0000 (23:53 -0400)]
Add .casr suffix to downloaded csar file

SdcToscaParserFactory is looking file file type of .yaml .yml .zip or .csar
As no suffix was provided, .tmp was being appended, hence the process was
failing to parse the csar file.

Change-Id: Ia87bb1e2402f94e44f6cbf3e28beb2adea52db4d
Issue-ID: POLICY-1146
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
7 years agoAdding retry logic for SDC Client in Distribution 01/68401/2
ramverma [Fri, 21 Sep 2018 10:09:58 +0000 (11:09 +0100)]
Adding retry logic for SDC Client in Distribution

* SdcReceptionHandler in distribution tries to initialize & start the
SDC Client when distribution framework comes up. If by any chance the
SDC service is not up then currently the SdcReceptionHandler throws an
exception to the distribution activator and the distribution framework
goes down. And the health check fails.

* This review fixes it by adding a retry mechanism in
SdcReceptionHandler for all lifecycle methods of SdcClient (init, start,
stop). After failure the same operation is retried again with some
delay. The delay is passed as parameter from configuration json file.
The minimum default value for the delay is kept as 30 seconds.

* Adding SdcClientHandler timer task for performing the retries
asynchronously.

Change-Id: Ibb6d936fcf4872c82f87e2cd04a00583b81c92ff
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoMerge "Fix sonar & add test cases for models"
Liam Fallon [Wed, 19 Sep 2018 13:37:25 +0000 (13:37 +0000)]
Merge "Fix sonar & add test cases for models"

7 years agoFix sonar & add test cases for models 45/67445/3
ramverma [Tue, 18 Sep 2018 19:15:02 +0000 (20:15 +0100)]
Fix sonar & add test cases for models

* As per jacoco, the try-with-resources coverage issue is fixed in 0.8.0
release - https://www.jacoco.org/jacoco/trunk/doc/changes.html

* Adding openpojo test for all the models in distribution-model

* Removed jacoco version from distribution pom as oparent 1.2.1 already
comes with jacoco 0.8.2

Change-Id: I55e2891a0dad1f10113730b46f10d760a883bea6
Issue-ID: POLICY-922
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoEnable passing config file to start script 77/67277/1
mmis [Tue, 18 Sep 2018 11:55:42 +0000 (12:55 +0100)]
Enable passing config file to start script

Issue-ID: POLICY-923
Change-Id: I8803b5a94e33d0175a84665dd3b253c7220451ea
Signed-off-by: mmis <michael.morris@ericsson.com>
7 years agoFix sonar bug in distribution 31/67031/3
ramverma [Mon, 17 Sep 2018 14:55:06 +0000 (15:55 +0100)]
Fix sonar bug in distribution

Change-Id: I6bcb6f6af1020ceb22dd92d6633717d2a183d5b8
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoFix sonar bugs in distribution 81/66781/1
ramverma [Sat, 15 Sep 2018 01:09:03 +0000 (02:09 +0100)]
Fix sonar bugs in distribution

Change-Id: I42e568cab649da74e2a179fe487c32feec9c88fa
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoMerge "Enabling docker image push"
Liam Fallon [Fri, 14 Sep 2018 19:15:49 +0000 (19:15 +0000)]
Merge "Enabling docker image push"

7 years agoAligned decoder with forwarder for opt. policies 11/66711/2
mmis [Fri, 14 Sep 2018 08:00:25 +0000 (09:00 +0100)]
Aligned decoder with forwarder for opt. policies

Changed decoder for optimization policies to generate instance of
OptimizationPolicy (instead of PdpxPolicy) as expected by the forwarder.
Without this change there is a mismatch between the decoder and the
forwarder.

Added parameters for configuring the static elements of the optimization
policies and setting of these elements.

Issue-ID: POLICY-927
Change-Id: Ib91a905dc89eed13622fb88e4dd19b3cb9f62c75
Signed-off-by: mmis <michael.morris@ericsson.com>
7 years agoMerge "Adding more hpa feature support for Polices"
Pamela Dragosh [Fri, 14 Sep 2018 16:31:02 +0000 (16:31 +0000)]
Merge "Adding more hpa feature support for Polices"

7 years agoAdding more hpa feature support for Polices 51/66651/3
liboNet [Sat, 15 Sep 2018 04:29:04 +0000 (12:29 +0800)]
Adding more hpa feature support for Polices

* Add hugePage feature parse
* Add SRIOV feature parse
* Add pciePassthrough feature parse
* Add more test cases and resources

Change-Id: Ib45515a26e3fdac742a631b3a13d739fd1784d2f
Issue-ID: POLICY-927
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoEnabling docker image push 97/66697/1
mmis [Fri, 14 Sep 2018 15:27:45 +0000 (16:27 +0100)]
Enabling docker image push

Change-Id: I619b0f6e0ff9a31cfeafbd9c23dc93739e065d0c
Issue-ID: POLICY-923
Signed-off-by: mmis <michael.morris@ericsson.com>
7 years agoFix sonar bugs in distribution 71/66671/1
ramverma [Fri, 14 Sep 2018 14:20:55 +0000 (15:20 +0100)]
Fix sonar bugs in distribution

Change-Id: I20c1246efc3ce0ad6d874e6a0b5c8230c96b9425
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoMerge "Adding statistics endpoint to distribution"
Liam Fallon [Fri, 14 Sep 2018 10:15:40 +0000 (10:15 +0000)]
Merge "Adding statistics endpoint to distribution"

7 years agoFix all sonar issues in distribution 61/66461/3
ramverma [Thu, 13 Sep 2018 20:29:44 +0000 (21:29 +0100)]
Fix all sonar issues in distribution

Change-Id: I93c77f929217c185c422fc8f16e9ac2fefe0fd42
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoAdding statistics endpoint to distribution 73/66473/2
ramverma [Thu, 13 Sep 2018 22:05:39 +0000 (23:05 +0100)]
Adding statistics endpoint to distribution

* Adding statistics endpoint in DistributionRestController
* Adding DistributionStatisticsManager to hold all stats.
* Adding StatisticsReport class to represent distribution stats report.
* Updating stats at each step in SdcReceptionHandler.
* Adding test cases for all code changes.

Change-Id: I0b0f97aecc64b18314367fdff6d3ca7bee06efc7
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoAdding policy decoder to extract file from csar 89/66389/5
ramverma [Thu, 13 Sep 2018 15:31:35 +0000 (16:31 +0100)]
Adding policy decoder to extract file from csar

* Adding decoder configuration parameters infrastructure to support
plugin based architecture. Adding a new policy decoder after this will be just
creating a new decoder class and its corresponding parameter class.

* Adding a new decoder which extracts policy file from given csar. It is
written in a generic way to extract file for any pdp like apex, drools.

* Adding configuration parameters for the new decoder. The policy file name and
policy type is passed as parameter to the decoder.

* Fixing few broken package declaration in pdpx decoder tests.
* Adding test cases for all code changes.

Change-Id: I95e68cebce0f9747ca63b090f9b9116ce8836939
Issue-ID: POLICY-1101
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoMerge "Adding code for dynamically generate Polices"
Liam Fallon [Wed, 12 Sep 2018 19:39:59 +0000 (19:39 +0000)]
Merge "Adding code for dynamically generate Polices"

7 years agoAdding code for dynamically generate Polices 11/65511/4
liboNet [Tue, 11 Sep 2018 03:07:04 +0000 (11:07 +0800)]
Adding code for dynamically generate Polices

* Update sdc tosca version to 1.4.1
* Define the objects to represents the policy
  used by OOF/Mutlicloud/AAI etc
* Integration into the distribution framework
  to update PdpxPolicy and add new File
  PolicyDecoderCsarPdpx to do decoder from CSAR
* Add two Test case including 2 VNFs, each VNF
  maps to 1 policy, so to generate 2 polices
* use @SerializedName make the variable name
  different with that in the out json field

Change-Id: Icc7175082063db8a245bbe576085cdf5a4b51adc
Issue-ID: POLICY-927
Signed-off-by: liboNet <libo.zhu@intel.com>
7 years agoAdding policy forwarder for apex-pdp 17/65817/3
ramverma [Tue, 11 Sep 2018 11:55:27 +0000 (12:55 +0100)]
Adding policy forwarder for apex-pdp

* Adding policy forwarder for apex-pdp
* Adding ApexPdpPolicy to hold policies related to apex-pdp
* Adding forwarder parameter for configuring apex-pdp forwarder
* Adding test cases for all code changes.

Change-Id: Ic1cb9bfc11b2b95321ea2d81882c588b025d33fb
Issue-ID: POLICY-1101
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoRemoved thoughtworks web-stub dependency 27/66027/1
mmis [Wed, 12 Sep 2018 08:49:04 +0000 (09:49 +0100)]
Removed thoughtworks web-stub dependency

Dependency is unused and so can be removed

Change-Id: Ib9036e90b1851210f39b627c20fb90c5c88e7e1a
Issue-ID: POLICY-926
Signed-off-by: mmis <michael.morris@ericsson.com>
7 years agoFix all sonar issues in distribution 11/65811/1
ramverma [Tue, 11 Sep 2018 11:38:03 +0000 (12:38 +0100)]
Fix all sonar issues in distribution

* Fixing all sonar issues in distribution
* Adding more test cases to improve code coverage

Change-Id: I296f96b66046e25c3c462632091f40565ff75478
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoMerge "Adding code for sending distribution status to sdc"
Pamela Dragosh [Mon, 10 Sep 2018 13:10:41 +0000 (13:10 +0000)]
Merge "Adding code for sending distribution status to sdc"

7 years agoFixing sonar bugs in distribution 91/65391/2
ramverma [Sun, 9 Sep 2018 13:24:10 +0000 (14:24 +0100)]
Fixing sonar bugs in distribution

Change-Id: I3ec5c73c54145b1ba9f637eaa95c843e25f46a10
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoAdding code for sending distribution status to sdc 09/65309/2
ramverma [Fri, 7 Sep 2018 20:15:51 +0000 (21:15 +0100)]
Adding code for sending distribution status to sdc

* Adding implementation of IDistributionStatusMessage &
IComponentDoneStatusMessage interfaces of SDC.
* Adding builder for distribution status classes.
* Adding code changes in SdcReceptionHandler to send
download/deployment/component status to SDC at various stages of
handling notification.
* Adding test cases for all new code.

Change-Id: I27c9ed373015d728f1ed02528e2ba2a638952bdf
Issue-ID: POLICY-956
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoMerge "Parameter Group fields must have getters"
Pamela Dragosh [Sat, 8 Sep 2018 13:27:27 +0000 (13:27 +0000)]
Merge "Parameter Group fields must have getters"

7 years agoParameter Group fields must have getters 95/65195/1
liamfallon [Fri, 7 Sep 2018 12:45:52 +0000 (13:45 +0100)]
Parameter Group fields must have getters

Parameter handling is changed so that all fields
must have a getter following normal naming conventions.

This change brings that in.

Issue-ID: POLICY-1095
Change-Id: Idc61960347a67c50f33fc272dcd00ceca7553d95
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
7 years agoAdding code for handling notifications from SDC 05/64805/3
ramverma [Wed, 5 Sep 2018 16:19:10 +0000 (17:19 +0100)]
Adding code for handling notifications from SDC

Change-Id: I45f28cbce8defead5e1f43ed81fa5ea6a2b2208b
Issue-ID: POLICY-974
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
7 years agoFix oparent version reference 19/65019/1
Pamela Dragosh [Thu, 6 Sep 2018 15:07:44 +0000 (11:07 -0400)]
Fix oparent version reference

Ensuring we are always using the same oparent version
that is declared in policy/parent.

As part of the work we are doing for security and
critical issues.

Change-Id: Idc6fdd0f613f1fb2ae4bb3c758847884fa4758f6
Issue-ID: POLICY-1059
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>