summary | 
shortlog | log | 
commit | 
commitdiff | 
review | 
tree
first ⋅ prev ⋅ next
 
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>
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>
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>
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>
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>
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>
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>
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>
Liam Fallon [Mon, 12 Nov 2018 14:59:33 +0000 (14:59 +0000)]
 
Merge "Fix virtual_binding error under VDU requirements"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jorge Hernandez [Tue, 16 Oct 2018 17:51:22 +0000 (17:51 +0000)]
 
Merge "Fix NullPointerException of PolicyScope field"
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>
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>
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>
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>
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>
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>
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>
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>
Pamela Dragosh [Tue, 25 Sep 2018 10:41:32 +0000 (10:41 +0000)]
 
Merge "AIOOBE when ApexPdpPolicyForwarder#forward"
Liam Fallon [Tue, 25 Sep 2018 08:01:20 +0000 (08:01 +0000)]
 
Merge "Add .casr suffix to downloaded csar file"
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>
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>
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>
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>
Liam Fallon [Wed, 19 Sep 2018 13:37:25 +0000 (13:37 +0000)]
 
Merge "Fix sonar & add test cases for models"
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>
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>
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>
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>
Liam Fallon [Fri, 14 Sep 2018 19:15:49 +0000 (19:15 +0000)]
 
Merge "Enabling docker image push"
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>
Pamela Dragosh [Fri, 14 Sep 2018 16:31:02 +0000 (16:31 +0000)]
 
Merge "Adding more hpa feature support for Polices"
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>
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>
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>
Liam Fallon [Fri, 14 Sep 2018 10:15:40 +0000 (10:15 +0000)]
 
Merge "Adding statistics endpoint to distribution"
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>
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>
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>
Liam Fallon [Wed, 12 Sep 2018 19:39:59 +0000 (19:39 +0000)]
 
Merge "Adding code for dynamically generate Polices"
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>
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>
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>
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>
Pamela Dragosh [Mon, 10 Sep 2018 13:10:41 +0000 (13:10 +0000)]
 
Merge "Adding code for sending distribution status to sdc"
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>
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>
Pamela Dragosh [Sat, 8 Sep 2018 13:27:27 +0000 (13:27 +0000)]
 
Merge "Parameter Group fields must have getters"
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>
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>
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>
mmis [Wed, 5 Sep 2018 16:12:03 +0000 (17:12 +0100)]
 
Refactored reception handler parameter handling
Refactored parameter handling for configuration of reception handlers as
the previous implementation does not align with the plugin architecture
(.e. plugin specific parameters being handled in core code)
Issue-ID: POLICY-1094
Change-Id: I31a9fc7f712ca43f0f69c42a6d99fa481b02cd4b
Signed-off-by: mmis <michael.morris@ericsson.com>
mmis [Wed, 5 Sep 2018 09:35:44 +0000 (10:35 +0100)]
 
Generate docker image for policy distribution
Added generation of tarball of policy distribution jars and generation of
docker image using the tarball
Issue-ID: POLICY-923
Change-Id: I9e38143fee864b765fbfd567c7e52bc7b0be2c9a
Signed-off-by: mmis <michael.morris@ericsson.com>
Pamela Dragosh [Tue, 4 Sep 2018 12:06:45 +0000 (12:06 +0000)]
 
Merge "Adding code for managing life cycle of SDC Client"
Pamela Dragosh [Tue, 4 Sep 2018 11:57:18 +0000 (11:57 +0000)]
 
Merge "Set Activator alive to false in terminate"
ramverma [Fri, 31 Aug 2018 16:16:01 +0000 (17:16 +0100)]
 
Adding code for managing life cycle of SDC Client
* Adding init/start/stop methods in SDCReceptionHandler for managing lifecycle of SDC Client.
* Adding a handler status enum to hold all the possible status values.
* Adding test cases to cover code changes fully.
Change-Id: Ib6f370485ff330538bfada6030c592629ed3fd1c
Issue-ID: POLICY-956
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
krishnajinka [Sun, 2 Sep 2018 14:12:33 +0000 (23:12 +0900)]
 
Set Activator alive to false in terminate
During terminate the alive status should be set
to false instead of true
Adding test case to cover the scenario
Issue-ID: POLICY-1017
Change-Id: I5c1d13172902cc75da8d0819e6e107b4e8d1b246
Signed-off-by: krisjinka <kris.jinka@samsung.com>
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
mmis [Mon, 27 Aug 2018 22:29:24 +0000 (23:29 +0100)]
 
Create code infrastructure for policy forwarding
Added sending of polices from the policy forwarder to the xacml PDP and
added handling of parameters for configuring the policy forwarders
Issue-ID: POLICY-926
Change-Id: I26effe70769f7edc765470a1a9ad40ed9faad82d
Signed-off-by: mmis <michael.morris@ericsson.com>
liamfallon [Wed, 29 Aug 2018 15:20:52 +0000 (16:20 +0100)]
 
Parameter Service Interface Changes
Changes to distribution due to changes to parameter
services, mainly addition of setName() to parameter service
interface and correct handling of empty parameters
Change-Id: I9523da6461874241d220f0feac61419ef6ebbb9d
Issue-ID: POLICY-1035
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
ramverma [Mon, 27 Aug 2018 16:31:03 +0000 (17:31 +0100)]
 
Removing plugin dependency from distribution main
* Removing plugin dependency from main. Ideally main should not be
dependent on plugins.
* Creating dummy handler, decoder, forwarder classes for test cases in
main.
* Combined few json test files.
* Added more test cases.
Change-Id: Id75e21d5d403febd9ac2b059661e17663d638dc2
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
ramverma [Thu, 23 Aug 2018 12:50:31 +0000 (13:50 +0100)]
 
Fix sonar and checkstyle issues in distribution
* Fixing all check style issues.
* Fixing all sonar issues.
* Adding maven check style plugin to fail at warning level.
Change-Id: I791b8feef39a3a0c3e1e250efea7b6e78208bf07
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Pamela Dragosh [Wed, 22 Aug 2018 14:48:53 +0000 (14:48 +0000)]
 
Merge "Adding health check endpoint to distribution"
liboNet [Thu, 23 Aug 2018 02:43:00 +0000 (10:43 +0800)]
 
Fix sonar code coverage issue
* Remove unused import
* Fix more than 1 statements on one line
* Divide validate into three parts to Fix >10 cyclomatic Complexity
Change-Id: I9c89c4854de31fa02a9052055662f4b74d12fe10
Issue-ID: POLICY-956
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Fri, 17 Aug 2018 19:38:03 +0000 (20:38 +0100)]
 
Adding health check endpoint to distribution
* Adding health check REST endpoint to distribution service.
* Adding isAlive field to DistributionActivator to fetch the health
  status.
* Adding parameter group for rest server parameters.
* Adding DistributionRestController for hosting all the rest endpoints
  in distribution service.
* Adding DistributionRestServer to manage lifecycle of distribution rest server.
* Adding ParameterValidationUtils utility class for common validations.
  Plan is to move this class to policy-common for wider use later.
* Adding test cases for all new code added.
* Refering common classes from policy/common
Change-Id: I246d57133ed1f0c3548bcdee173d7b64fb368abc
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
liboNet [Fri, 17 Aug 2018 19:15:59 +0000 (03:15 +0800)]
 
integrate PSSDConfiguration to distribution
* Integrate the PSSDConfiguration to distribution config parameter.
* Moved related PSSDConfigurationParameterGroup classes from "handling"
  to "parameters" to avoid specified sdc dependency.
* Modify all the test case since the distribution config parameter
  has been changed, update CommonTestData to wrap it.
* Add neccessnary SDC handling exceptions which to be used for
  SDC handler integration.
* update the PSSDCOnfiguraitonParameterGroup to add UUID to the setName
  function to generate unique name for each instance.
* use builder to create PSSDConfigurationParametersGroup instead of using
  many parameters
Change-Id: I3c78bc2a51ebc84761bc9458096d6ffa18070b47
Issue-ID: POLICY-956
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Thu, 16 Aug 2018 15:43:20 +0000 (16:43 +0100)]
 
Adding termination code changes for distribution
* Code changes for terminating the handlers started by
distribution activator.
* More test cases to increase coverage.
* Fixes for checkstyle issues.
* Fixes for sonar issues.
Change-Id: I3299317c83fa643ac1d0ba1105ac1a932c0a83f6
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
ramverma [Wed, 15 Aug 2018 20:28:42 +0000 (21:28 +0100)]
 
Fix sonar code coverage issue in distribution
The jacoco plugin settings in oparent is for creating coverage report
for each sub-module sepeartely. That leads to coverage missing in the
report if the test cases & actual classes are in different sub-module.
Overiding the setting in distribution to create a consolidated report of
all sub-modules in one report.
Change-Id: Idf4acd07dbb3694d7bff3c1d94a31a322d7027c5
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
ramverma [Mon, 13 Aug 2018 16:19:09 +0000 (17:19 +0100)]
 
Adding code for bootstrapping policy distribution
* Code changes for initializing handlers & related plugins from
configuration parameter JSON file.
* Using common parameter service for refering parameters at multiple
places.
* Moved related parameters classes from "main" to "reception" to avoid maven
cyclic dependency errors.
* Added test cases for new code chnages. The test coverage is around
95%.
* Changed logging from slf4j to common-logging.
Change-Id: Ifb77cfaa6e6472d43295a7c41a49ddd657c0e2c2
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Pamela Dragosh [Mon, 13 Aug 2018 17:38:46 +0000 (17:38 +0000)]
 
Merge "Initial moduel structure for SDC handling"
liboNet [Wed, 8 Aug 2018 00:08:10 +0000 (08:08 +0800)]
 
Initial moduel structure for SDC handling
This submission defines the initial module structure for
this handling and add the IConfiguration implementation and
test code, use the json format as the configuration.
rename the class name to sensible one with PSSD prefix.
remove static variable to make it possible for more than one
subscription to SDC.
improve the validate func to validate each mandatory parameters
and check the int parameter's value
Change-Id: I3106ad9d4535b1251eae064e803805b92378f6f1
Issue-ID: POLICY-956
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Wed, 8 Aug 2018 22:17:37 +0000 (23:17 +0100)]
 
Adding configuration parameters for distribution
* Adding main configuration parameters to distribution component. The
  intention is to define a top level parameter group that should be
  capable of handling all the parameters needed for the framework.
* Added validation to check the actuall class by loading it from
  classpath.
* Added Test Cases for configuration parameter. The coverage of
  the package is 95.3 %.
Change-Id: I87c4c34d9df2c9b5a0ab75bef2bbe0d25e38747b
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
mmis [Thu, 2 Aug 2018 08:45:44 +0000 (09:45 +0100)]
 
Create interfaces for Policy Distribution
Created interfaces and some skeletal implementations. Implememtations to
be further developed in subsequent stories
Change-Id: If55be78e34c8783451cb9aa755a563bc0850e569
Issue-ID: POLICY-1029
Signed-off-by: mmis <michael.morris@ericsson.com>
liamfallon [Mon, 30 Jul 2018 15:58:54 +0000 (16:58 +0100)]
 
Add start and parameter handling
Add startup code, command line parsing, service
start, and parameter handling for the policy distribution service.
Issue-ID: POLICY-922
Change-Id: Ie664aba6541304cf9b635541e9688c681b24952d
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
liamfallon [Thu, 19 Jul 2018 13:27:17 +0000 (14:27 +0100)]
 
Initial module structure for Policy Distribution
This submission defines the initial module strucutre for the
distribution component in the ONAP Policy Framework. The
structure is documented here:
https://wiki.onap.org/display/DW/Policy+Platform+-+SDC+Service+Distribution+Software+Architecture
Change-Id: I0adbffbcd598250cb9a0b8ce07806e564bf83a85
Issue-ID: POLICY-922
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Pamela Dragosh [Wed, 27 Jun 2018 12:08:47 +0000 (08:08 -0400)]
 
Remove warning for version
Eclipse generates a warning that the version is duplicated.
Issue-ID: POLICY-871
Change-Id: Icab683ec575c564e019bd3042ade17fe6ece2b2e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Wed, 30 May 2018 12:55:45 +0000 (08:55 -0400)]
 
Fixing artifactId for consistency
Issue-ID: POLICY-871
Change-Id: Ic30f82072d4ba8a9d2d08fcd113cf143cc8d4ef8
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Fri, 25 May 2018 13:22:38 +0000 (09:22 -0400)]
 
Setup policy/repository pom.xml
Point to policy/parent and correct version.
Issue-ID: POLICY-871
Change-Id: Ie57a55b3856a9232ed8b83c059bfdc01fd4c9d79
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Tue, 1 May 2018 12:39:37 +0000 (08:39 -0400)]
 
Initialize repo
Add .gitreview, .gitignore, README and License
Change-Id: I0cdbcd9191cbe399d0274d1a04c5f6ef4211567c
Issue-ID: POLICY-771
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jessica Wagantall [Tue, 1 May 2018 03:07:55 +0000 (20:07 -0700)]
 
Add INFO.yaml file
Add INFO.yaml to list:
- Project description
- Properties
- PTL information
- Meeting information
- Committer information
Change-Id: Iff828fcae59cc7b1b170c3a7700df4ce911de406
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Jessica Wagantall [Tue, 1 May 2018 02:01:17 +0000 (02:01 +0000)]
 
Initial empty repository