aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-01-21Remove properietary license from CSAR3.0.1-ONAPliboNet8-174/+0
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> (cherry picked from commit eac48bb3c587999376af202ab421275a27279523)
2019-01-10Move to 2.0.4-SNAPSHOT version2.0.4Jorge Hernandez12-15/+15
Change-Id: Ic0870fd89bdc303d8e9c95aaa49db79e320fe12d Issue-ID: POLICY-1390 Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
2019-01-10Fix Noncompliant usage sonar issueliboNet3-6/+4
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> (cherry picked from commit 2fd83c1b4dc05314d57503c6ba647b88326003d2)
2019-01-10Merge "Fix checkstyle issues in distribution" into casablancaPamela Dragosh8-98/+86
2019-01-10Fix checkstyle issues in distributionliamfallon8-98/+86
Some fixes for minor checkstyle issues. Issue-ID: POLICY-1221 Change-Id: I86577f47283a6fa97be25d7550ed9c2d7ec026a9 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit 9013b63b082dcc3c7e6a10b52976bcc46ca3f019)
2019-01-10Fix lineEnding issue for policy-keystoreliboNet2-2/+12
. 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> (cherry picked from commit 5654548387d1ba2c3776d1a01276103481ac41cd)
2019-01-07add Https support for distribution endpointsliboNet12-7/+381
. 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> (cherry picked from commit fc32c230809a051bc1c17e8a2a447210822eebe7)
2018-12-04Fix policy format with vCPE serviceliboNet9-68/+119
. 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> (cherry picked from commit 987cb61f269572fec7c0b0fe500f081ca36c2dd9)
2018-11-25Create label for architecture to refPamela Dragosh1-1/+3
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> (cherry picked from commit cf2a21536bd30ebb8b4544f51ad3024dae310842)
2018-11-23policy/distribution documentsramverma3-0/+708
Change-Id: I1c3e083a9ce050ce67acd5f68d0dcf498927592a Issue-ID: POLICY-1260 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com> (cherry picked from commit 592f9d090e4351a27aa6f283f5fb2b0b3dc7255b)
2018-11-20Added additional supporting scripts for s3p testLianhao Lu2-0/+90
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> (cherry picked from commit fbf8e05938b7ce58bf090a37d004760836548d88)
2018-11-15Update version to 2.0.3-SNAPSHOT3.0.0-ONAP2.0.3liamfallon12-13/+13
Change-Id: Ifd9c18586d22c6a84997adf2d20a943df371504a Issue-ID: POLICY-1262 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-11-13Fix unchecked cast sonar issuePamela Dragosh3-14/+10
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> (cherry picked from commit bf30e81ea77ab361a25f0076c7f81c10ded9c53e)
2018-11-13Merge "s3p: Remove temporary workaround" into casablancaLiam Fallon4-14/+10
2018-11-13s3p: Remove temporary workaroundLianhao Lu4-14/+10
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> (cherry picked from commit 9b18d4f702586fd022fd142f0f23e5a0e3b24359)
2018-11-14Fix virtual_binding error under VDU requirementsliboNet5-8/+47
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>
2018-11-13FileSystemReceptionHandler: Fix sonar issuesLianhao Lu3-46/+82
Fixed 6 code smell issues reported by sonar. Change-Id: I537df24f0f0624470efd8675f01ecd433aed1cb0 Issue-ID: POLICY-1256 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> (cherry picked from commit 3c0823e37b6cf933b23687a2d7339b131fe5a464)
2018-11-12Make FileSystemReceptionHandler more tolerantLianhao Lu6-11/+280
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> (cherry picked from commit 70f9f24e6ed39a6ddb4afef02516af624f50079d)
2018-11-12Fix sonar/checkstyle issuesPamela Dragosh18-53/+56
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> (cherry picked from commit 789f09f2430440d6be44a5fad26715d002aff757)
2018-11-12Added JMeter scripts for perf testLianhao Lu4-0/+530
Change-Id: I4286c6defdef331ee5c40399d17381d3c8b8a544 Issue-ID: POLICY-836 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> (cherry picked from commit c1647ba56080a79d149b2e9fd647bda4da39997e)
2018-11-12Added JMeter scripts for stability testLianhao Lu165-0/+51950
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> (cherry picked from commit de0e18b974cb40cbbfac1accdc7d4b460ccd4186)
2018-11-12S3P: added FileSystemReceptionHandler pluginLianhao Lu5-2/+314
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> (cherry picked from commit 3bd15a55aeb69c1caad1a1f32175cb3b7797733a)
2018-11-08Upgrade policy parent and common2.0.2Pamela Dragosh3-6/+6
Upgrade to release parent 2.0.1 and common 1.3.3 to fix license issue in dmaap 1.1.9 Fixes to package distribution and docker pom.xml which mvn version missed. Also need to upgrade engine 1.3.3 release Bumping version to 1.3.3-SNAPSHOT for release Issue-ID: POLICY-1229 Change-Id: If5247308ea8eba6dd65614a67f38396896d8ed0f Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-11-05Upgrade to released artifacts.Pamela Dragosh1-2/+2
Upgrade to policy/common 1.3.2 and apex pdp 2.0.2. Will upgrade to engine when it is released. Issue-ID: POLICY-1245 Change-Id: If79e65d93206e160c76328d8c9f0628099b55538 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-11-01Merge "Add more logics about fields value for OOF model" into casablancaPamela Dragosh3-7/+13
2018-11-01use https instead of http to do forwardliboNet1-2/+2
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>
2018-11-01Add more logics about fields value for OOF modelliboNet3-7/+13
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>
2018-10-31Step version for Casablanca supportliamfallon11-31/+23
Issue-ID: POLICY-1233 Change-Id: Iebf0b77a9b87543ebe99d6a6eab0939bd276931c Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-25Fix refering to snapshot in policy/distribution2.0.1ramverma12-16/+17
Issue-ID: POLICY-1213 Change-Id: I7262a00ec35549e63127f8a3730ca8aa75da09aa Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-10-16Merge "Fix NullPointerException of PolicyScope field"Jorge Hernandez1-0/+1
2018-10-17Fix NullPointerException of PolicyScope fieldliboNet1-0/+1
add HPA into PolicyScope to fix the NullPointerException Change-Id: I160e630d982257c57e1f950906c231c895872c71 Issue-ID: POLICY-1200 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-10-16Fixing bug in policy-distributionramverma1-0/+6
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>
2018-10-12Add version tag for release2.0.0Pamela Dragosh1-0/+1
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>
2018-10-09Upgrade to released 1.3.0 artifactsPamela Dragosh2-2/+3
policy/common and policy/engine are released. Issue-ID: POLICY-1189 Change-Id: I9ea1222fc3330493595cd9545a2728d48b9e044e Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-10-10Remove properietary license from CSARliboNet4-0/+0
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>
2018-10-09Remove properietary license from CSARliboNet5-0/+0
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>
2018-10-01Update the schema parse based on newer versionliboNet4-13/+19
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>
2018-09-30Add user and password into client settingliboNet1-3/+3
SDC will do authorization based on the input configuration. Change-Id: Ie4b3eca8d24a669e14e9752f7d7f67a222fdc3d1 Issue-ID: POLICY-1158 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-09-25Merge "AIOOBE when ApexPdpPolicyForwarder#forward"Pamela Dragosh1-2/+5
2018-09-25Merge "Add .casr suffix to downloaded csar file"Liam Fallon1-1/+1
2018-09-24AIOOBE when ApexPdpPolicyForwarder#forwardAlexis de Talhouët1-2/+5
Change-Id: Iebc19d2e734ead405ac398a1011dcd42990b20b8 Issue-ID: POLICY-1147 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2018-09-24Enable TRACE log for distributionAlexis de Talhouët1-1/+4
Change-Id: I2eceec9d4f015bd6ecd961d47ed0a8fbe41f40ab Issue-ID: POLICY-1147 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2018-09-22Add .casr suffix to downloaded csar fileAlexis de Talhouët1-1/+1
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>
2018-09-21Adding retry logic for SDC Client in Distributionramverma7-80/+187
* 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>
2018-09-19Merge "Fix sonar & add test cases for models"Liam Fallon4-2/+50
2018-09-19Fix sonar & add test cases for modelsramverma4-2/+50
* 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>
2018-09-18Enable passing config file to start scriptmmis1-1/+7
Issue-ID: POLICY-923 Change-Id: I8803b5a94e33d0175a84665dd3b253c7220451ea Signed-off-by: mmis <michael.morris@ericsson.com>
2018-09-17Fix sonar bug in distributionramverma1-30/+9
Change-Id: I6bcb6f6af1020ceb22dd92d6633717d2a183d5b8 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-15Fix sonar bugs in distributionramverma5-146/+240
Change-Id: I42e568cab649da74e2a179fe487c32feec9c88fa Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-14Merge "Enabling docker image push"Liam Fallon1-1/+1