summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-04-08Adds basic performance tests for Policy APIBilal A5-0/+428
Includes 1) Basic health and stats tests 2) Log analysis script Change-Id: I239ad1fbb4793873a82cd804da5408f968fce875 Issue-ID: POLICY-1458 Signed-off-by: Bilal A <bilal@research.att.com>
2019-04-05Incorporate filters in provider functionsChenfei Gao11-65/+403
Use filters to GET wildcard/latest/deployed policies and policy types. Junit tests for providers are coming in next patch/review. Issue-ID: POLICY-1441 Change-Id: Iccd02f395d612ba95728d1bc5808ad16c6f386fe Signed-off-by: Chenfei Gao <cgao@research.att.com> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-04-03Implement policy provider functionsChenfei Gao31-435/+1420
Includes: a) Implement policy provider functions b) Implement policy type provider functions c) Implement legacy guard policy provider functions d) Implement legacy operational policy provider functions e) Modify API endpoints to align with provider functions f) Hook up API statistics counter Junit tests for providers and new endpoints will be in next patch/review. Issue-ID: POLICY-1441 Change-Id: I113de95f6e0ea5f5436c072536f5e9a178988e5e Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-03-19added file to test ApiRunttimeException.javaSandeep J1-0/+43
to increase code coverage Issue-ID: POLICY-1606 Change-Id: I03b7680df972f3c809d57e6432e61c2422ecea60 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-03-18added test cases to TestApiParameterGroup.javaSandeep J1-20/+32
to increase code coverage Issue-ID: POLICY-1606 Change-Id: I23350df11457422eb6b56cb6e175dcea0ba2be14 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-03-17Add API endpoints for legacy policiesChenfei Gao7-44/+878
Includes: a) Added separate endpoints for legacy guard and ops policies b) Added legacy policy providers c) Added hotfix for models package name d) Added new REST controller to http server properties Issue-ID: POLICY-1515 Change-Id: Id69c88810efc8b76fccc62f386d6e189ba297b1e Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-03-17Add test policytype and policiesPamela Dragosh33-2/+1002
Some example policies for vDNS, vFW and vCPE use cases using DCAE TCA. The .input are the expected REST body from the calling client (eg. CLAMP). While the .output are the expected REST body for the return response from policy. The .tosca.yaml are what the DBAO will look like internally. Upgraded to support policy/model merge. Fixed missing tca_policy field in monitoring policies. Update for policy-id. Issue-ID: POLICY-1273 Change-Id: Ib087b184c3ac9a058fe600c6c8a28cca3a71fbea Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-03-17Manually add NSS libraries to images.Jorge Hernandez1-2/+2
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 other nice to have basic utilities for debugging to base image. Change-Id: Ia836c15b17836d46cd61d312f514bd6eb9a8c956 Issue-ID: POLICY-1604 Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
2019-03-15Update INFO.yaml fileJessica Wagantall1-2/+25
Update missing information blocks and indentation to pass verify job. Change-Id: Ice4e1d3979eb92b8f7e1e835622096e8b5a510ca Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2019-03-15Hotfix for compilation errorsChenfei Gao5-1069/+1082
Added hotfix for compilation errors due to model package name change. Issue-ID: POLICY-1515 Change-Id: Ia58671234bc5a5cfe201ee448d38adca870333b3 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-03-07Merge "Add code to follow ONAP API CVS guidelines"Pamela Dragosh4-82/+482
2019-03-07Add code to follow ONAP API CVS guidelinesChenfei Gao4-82/+482
Includes: a) Added custom headers of versioning info into API response. b) Added custom header of requestID into API response for fulfilling logging v1.2 requirements by copying from client's request header. If no requestID is contained in client's request header, API server will randomly generate one and include it in response header. c) Added extension annotations into swagger to comply with swagger 2.0 spec extension requirements posted in the table of ONAP API CVS guidelines wiki page. d) Updated the package name of TOSCA model POJOs. Issue-ID: POLICY-1270 Change-Id: Ia9e0f18c088604636008201fe5a149dc5fa21de3 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-03-06Use Alpine as base docker image in /policy/apishaoqiu2-19/+12
Issue-ID: POLICY-1549 Change-Id: I422ea3d70469dc6d2a840c5ce3aa70117f83864f Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-02-28Update INFO.yaml Liam's emailPamela Dragosh1-1/+1
est.tech Issue-ID: POLICY-1556 Change-Id: I5f762d215b59a0cb1246c3dd1144b5cba297676f Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-02-28Reference lombok from parentPamela Dragosh1-1/+0
Policy/parent now declares lombok dependency - remove the version so that we are consistent. Issue-ID: POLICY-1547 Change-Id: Ic283cceaed0d8f55530a6357d788d15a826d1b52 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-02-27Add more endpoints and swagger annotationsChenfei Gao14-1039/+1004
Includes: a) Organized swagger models into new rest.model package b) Organized provider classes into new rest.provider package c) Added policyType GET/POST/DELETE endpoints d) Added policy GET/POST/DELETE endpoints e) Added swagger annotations for the new endpoints Issue-ID: POLICY-1515 Change-Id: Ia159a4cfebdad36cb1b4a5cc6456d07d2fde09ee Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-02-22Merge "Adds basic stability tests for Policy API"Liam Fallon5-1/+448
2019-02-21Adds basic stability tests for Policy APIBilal A5-1/+448
Includes 1) Basic health check test 2) Statistics API test Change-Id: Iccf20bfc4aae7496a0fad1dcb0e9e8378d94b47a Issue-ID: POLICY-1458 Signed-off-by: Bilal A <bilal@research.att.com>
2019-02-12Change ubuntu version in DockerFileChenfei Gao1-1/+1
Changed ubuntu from 14.04 to 16.04 in DockerFile Issue-ID: POLICY-1270 Change-Id: I17a4ee632eb7fb10ddfb3cd2c0c8d57ff22347ff Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-02-07Add changes to basic structure of api componentChenfei Gao40-157/+2148
Includes: 1) Changed logging from FlexLogger to slf4j and used the logback.xml aligned with v1.2 logging requirements. 2) Added https as a configurable parameter of api rest server. 3) Added aaf as a condfigurable parameter of api rest server. 4) Added AafFilter classes for healthcheck and statistics. 5) Added api statistics REST entry point. 6) Created related junit tests. 7) Packaged docker Issue-ID: POLICY-1270 Change-Id: I638f61361bb052545e8597531ba3d58019bf1f24 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2018-11-23Add intellij file types to .gitignoreliamfallon1-0/+3
Issue-ID: POLICY-1264 Change-Id: I06369ecb1837f0c080ff2a47c502f4b0d5e5e51b Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-10-26Change to released common patchPamela Dragosh1-1/+1
Although this is pointing to released policy/parent v2.0.0, it points to policy/common 1.3.0 which points to the policy/parent SNAPSHOT. Issue-ID: POLICY-1213 Change-Id: I9d4a9faab981ba12fa687f33d0f8661f787dff12 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-10-24Fix refering to snapshot in policy/apiramverma1-2/+3
Issue-ID: POLICY-1213 Change-Id: Ia0a4adbb00507175df4f574da0699147fa430434 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-25Clean up checkstyle declarationPamela Dragosh11-47/+63
Fixed the path for finding the src files. Added eclipse lifecycle to ignore the oparent checkstyle bug. Cleaned up existing checkstyle issues. Added entries into .gitignore to ignore debug logging directories created. Issue-ID: POLICY-1136 Change-Id: I684038babcb9723cfc4bef2b2a713425ae077599 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-09-03Add basic main structure for policy-apiKrishnajinka30-25/+2129
Define main pom xml and update to include main. Add the main exception parameters rest startstop classes. Add test cases. Modify comments Issue-ID: POLICY-1066 Change-Id: I2e878a58eef4f021e3a9a991738194127edf4d16 Signed-off-by: krisjinka <kris.jinka@samsung.com> Signed-off-by: krishnajinka <kris.jinka@samsung.com>
2018-05-30Changing artifactId for consistencyramverma1-1/+1
Change-Id: Iae899d360f2e393150312472d025cd3c6412eebe Issue-ID: POLICY-806 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-05-24Change pom to refer policy parentramverma1-68/+4
Change-Id: Ib3232a12eaef1d1ba9fe00b2194680a18e489f17 Issue-ID: POLICY-806 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-05-01Update api repoPamela Dragosh4-8/+10
Add missing license and change version to 2.0.0. Remove ECOMP reference. Issue-ID: POLICY-771 Change-Id: If26d97d90df538a554308ef3bbf612a615f3da03 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-04-30Add INFO.yaml fileJessica Wagantall1-0/+37
Add INFO.yaml to list: - Project description - Properties - PTL information - Meeting information - Committer information Change-Id: If94f6b9015a1d9b0e6cfe024edd4feb49ea17704 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2018-03-14Update oparent version to 1.1.0liamfallon1-1/+1
Directive from ONAP project that all repos should be updated. Change vierified with a build with .m2 /org/onap cleared. Issue-ID: POLICY-693 Change-Id: Ib5d977cfb557bb41036e07971caba3a58cc2d4a7 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2017-09-08Cleanup project's name in SonarJessica Wagantall1-1/+1
The name parameter in the root pom.xml should match the project name in gerrit to reflect consistency in Sonar. Change-Id: I70551368bbe86a566926870888057d95d9abdcf1 Issue-id: CIMAN-65 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2017-09-08Removing duplicate version entriesPamela Dragosh1-3/+0
Eclipse generates warnings for these values which are set in oparent. Issue-ID: POLICY-216 Change-Id: Ifac11893ff74f06c8a167111207e0c46005135dd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-08-15Add distributionManagement for stage sitePamela Dragosh1-0/+7
The stage-site jenkins job fails because it is missing this entry. Issue-Id: POLICY-139 Change-Id: I0bd6755fe07e1c05f15acff17df2f819fda32561 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-08-15Missing nexusproxy propertyPamela Dragosh1-0/+1
Forgot to add this property for the deploy to work. Issue-Id: POLICY-139 Change-Id: I93fcc57c7a298edfe143ac39e8b4448a7e9d549a Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-08-11Add deploy staging configurationPamela Dragosh1-0/+56
Unfortunately the last release build went directly to release. It should go to staging. Change-Id: I7a6082f7de674dfc0a13ab90d0aefa6f65b70ea3 Issue-Id: POLICY-139 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-08-10Add stage site propertiesPamela Dragosh1-0/+4
Issue-ID: POLICY-139 Change-Id: I123320dd0625544043e008beb73ec042cb900b4f Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-08-09Include version.properties for release jobPamela Dragosh1-0/+13
The release job failed because it could not find the version.properties file when doing the mvn deploy command. Adding this file so the release job will succeed. Change-Id: I8753e3ba862faa2885948b988835d798b91a6860 Issue-ID: POLICY-139 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-08-08First commit, adding parent pomPamela Dragosh5-0/+79
Issue-ID: POLICY-139 Change-Id: I4599d855b0c5e44e002dac67f683278457fcde81 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2017-06-20Initial empty repositoryJessica Wagantall0-0/+0