summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-03-25migrate model-impl from drools-applicationsHengye275-8/+25221
migrate controlloop/common/model-impl from drools-applicaitons to policy/models Issue-ID: POLICY-1264 Change-Id: Ibe0bb5c49a7b1344f4104b30455f52834041e187 Signed-off-by: Hengye <yehui.wang@est.tech>
2019-03-24Merge "Use enums from models-pdp in models-pap"Pamela Dragosh5-9/+9
2019-03-24Merge "Add input tosca examples for guard frequency"Pamela Dragosh2-0/+46
2019-03-23Use enums from models-pdp in models-papJim Hahn5-9/+9
Modified models-pap to use enums from models-pdp instead of from pdp-common. Change-Id: I3bc296358c672dff9c218c734583a135e5503e4c Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-22Merge "Add models-pdp to models repo"Pamela Dragosh19-6/+817
2019-03-22Add input tosca examples for guard frequencyJoshua Reich2-0/+46
Issue-ID: POLICY-1195 Change-Id: Ia73f8d1e21e2a37ada95727301031e9bb115aceb Signed-off-by: Joshua Reich <jreich@research.att.com>
2019-03-22Add models-pdp to models repoJim Hahn19-6/+817
Also changed supportedPolicyTypes to PfConceptKey. Updated licenses. Removed trailing whitespace from pom. Provide default request id. Rebased to fix merge conflict. Added SupportedPolicyType class. Renamed SupportedPolicyType to PolicyTypeIdent, and moved it to models-base. Also updated models-pap to use it. Deleted models-pdp Policy and replaced it with ToscaPolicy. Updated test method name. Change-Id: Id65f769c2f308c6b56e79978bd50b84f2e0b3d02 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-22Implement Database providerliamfallon21-97/+2034
This review brings in the structure of the database provider with complete unit test coverage. The provider delegates the details of each database interactino to the appropriate package in the model. Resolved merge conflict. Issue-ID: POLICY-1195 Change-Id: I9d01146415531d18bc9648dcf232b425bc09578d Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-21Add copy constructors for models-papJim Hahn11-14/+393
Also added a method to PfUtils to simplify cloning lists. Change-Id: Iae667be02cced57b0b9578e0a96c5cda38111b97 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-21Add module for error responsesPamela Dragosh6-0/+213
Module will hold a common error message object used by API's to clients for returning an overall error message and list of detail messages and warnings. Added an example and finished a JUnit test. Changed to response code from HTTP Added assertj and used StandardCoder Issue-ID: POLICY-1195 Change-Id: Id0fcf4831b8d03223c590f8085f207dbbbe559b4 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-03-21Add interface to get info from exceptionsliamfallon4-4/+152
Interface allows uniform geting of information from checked and runtime model exceptions Issue-ID: POLICY-1195 Change-Id: I913b98a4d4b705ed256714392cafc72d6a71877f Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-20Implement persistence test for policiesliamfallon14-44/+275
The unit test MonitoringPolicySerializationTest tests persistence for policies and shows how persistence works. Issue-ID: POLICY-1195 Change-Id: I933eb538238f9ccd41ce69614e0c9afcac869c29 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-20Adding classes to models-papramverma6-5/+80
Change-Id: I59acfeeef5e2b93d7d16dbf5c26811a037e255c1 Issue-ID: POLICY-1541 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-03-19Move examples into separate moduleliamfallon40-18/+68
Issue-ID: POLICY-1195 Change-Id: Id2dc5b5b490134648ca267e27b795f3f4c03bc7b Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-19Merge "Add serialization/deserialization for tosca policy"Pamela Dragosh6-24/+130
2019-03-18Add serialization/deserialization for tosca policyChenfei Gao6-24/+130
Includes: a) Added serialization/deserialization for tosca policy b) Added serialization/deserialization for tosca topology template c) Added serialization/deserialization for tosca service template More junit tests for serialization/deserialization are being added, using the example input/output. Issue-ID: POLICY-1441 Change-Id: I5ef6b5ede35cfb1e88619e92535393cf8056987b Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-03-18Add decision modelsPamela Dragosh7-0/+272
Adding various decision models and their serialization handler classes Issue-ID: POLICY-1440 Change-Id: I35abfd9745a86b822f658ec3a512b7355cabf068 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-03-17Implement Legacy to TOSCA Mappingliamfallon59-227/+375
This first patch set is a rough first draft of how translation will work. Issue-ID: POLICY-1195 Change-Id: I4a57b049f5756dc6d1e2f4d458d9dd770f928eb2 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-16Merge "Update monitoring policies with tcaPolicy"Jorge Hernandez10-227/+275
2019-03-15Update INFO.yaml fileJessica Wagantall1-3/+26
Update missing information blocks and indentation to pass verify job. Change-Id: Ifeeca8d74f480abd56e011b8461dbb64c5fa0664 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2019-03-15Update monitoring policies with tcaPolicyPamela Dragosh10-227/+275
To match the model. Issue-ID: POLICY-1195 Change-Id: I939d5080b31cf63cdf51602a9b7bdfa5ece716eb Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-03-15Merge "Adjust snakeyaml version"Pamela Dragosh1-1/+1
2019-03-15Merge "Adding PdpStatistics model to mdoels-pap"Jorge Hernandez1-0/+44
2019-03-15Adjust snakeyaml versionJim Hahn1-1/+1
Version 1.21 of snakeyaml is breaking junits in policy/pap. Change-Id: Ic7716c49f7797b8461846f1c61717c620471a2b5 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-15Adding PdpStatistics model to mdoels-papramverma1-0/+44
Change-Id: Ie229b76fbd848811fe919d28eead19060a487157 Issue-ID: POLICY-1541 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-03-15Add list of policy groups to API modelsJim Hahn1-0/+37
The PDP Group Deploy REST API should take a list of PdpGroup, not a single PdpGroup. Change-Id: I0d626ce16793f5bcb3d34b697116f8545861d9f6 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-15Fill in legacy JSON modelsPamela Dragosh5-1/+119
Fill in the bodies of the guard and operational JSON models. Issue-ID: POLICY-1195 Change-Id: If15dd8fa89e7a2b9d823eab51ac0b0f8819dd9d4 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-03-15Merge "Add serialization for Tosca Model"Pamela Dragosh54-23/+2199
2019-03-15Merge "Add classes for PDP "simple" REST APIs"Pamela Dragosh4-10/+80
2019-03-15Add serialization for Tosca Modelliamfallon54-23/+2199
Added tests for Yaml policy monitoring Added provider interface calls in provider and structure for handling legacy APIs. Issue-ID: POLICY-1195 Change-Id: I4825272e0713b9e6a4b89753828de8905bcffbd1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-14Add classes for PDP "simple" REST APIsJim Hahn4-10/+80
Change-Id: I81a624a9cfb93df488bbd447f3ee24d1880048d6 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-14Add DAO Enabled Tosca Modelliamfallon90-892/+8246
Add DAO annotations to TOSCA model Add keying between concepts and define foreign keys in objects for translation to DB schema Added provider interface, factory, and stubbed implementation. Completed unit test for models-base Completed unit test for models-dao Completed unit test for models-tosca Issue-ID: POLICY-1195 Change-Id: I53a0ba8b7a679b6887b38bdab184b60315e0cf5b Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-13Move PDP Group classes to concepts subdirectoryJim Hahn2-2/+2
Had already done this, but apparently it didn't make it into a review. Change-Id: If4b8083ec0ea6286e6531b6f229405473a8d8430 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-13Added PDP Group model classesjh73582-0/+78
Change-Id: I16298228f9e390362d4783750274703a4db57811 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-12Adding models-pap module to policy/modelsramverma6-0/+230
1) Adding models-pap module to policy/models for storing models required by PAP REST API's. 2) Adding test cases. Change-Id: I4e8c38f1ebe96e7a50a188f19f4f4a5bed835f99 Issue-ID: POLICY-1541 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-03-05Add DAO module for Modelsliamfallon51-253/+3642
This patch set fixes some typos and license headers. Issue-ID: POLICY-1195 Change-Id: I2d15b00fcb50ea92746ab7c5a87b57efa07196fe Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-01Remove lombok version and overridePamela Dragosh1-2/+0
Don't need lombok version and the other version tag is overriding the root pom.xml. Which is the same anyway. Eclipse is good at flagging these. Issue-ID: POLICY-1547 Change-Id: I640b9e2e5abd6c88af6d1c63d491c5f2bd3e2ffa Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-02-28Merge "Add basic model object concepts"Pamela Dragosh16-2/+1616
2019-02-28Update INFO.yaml Liam's emailPamela Dragosh1-1/+1
est.tech Issue-ID: POLICY-1556 Change-Id: If16fea0ec12e83a71fc84cd17997075f3bb135d2 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-02-28Add basic model object conceptsliamfallon17-3/+1617
This review introduces the basic concepts that all model objects inherit from. Using this approach, all concepts that inherit from these types can use standardized DAO handling and marrshal/unmarshal handling This approach is a more generic version of the approach used in the APEX PDP for model handling. The APEX model handling will inherit this module. Issue-ID: POLICY-1264 Change-Id: I35b76659ab66cf3f33bee59a5528e49c7edf7796 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-02-26Change the version of policy parentChenfei Gao2-1/+4
Changed to use 2.1.0-SNAPSHOT for policy/parent while keeping 2.0.0-SNAPSHOT for policy/models. Issue-ID: POLICY-1515 Change-Id: Ia18a3bd5828540c0d9b6340a2493f84d5a27fa60 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-02-26Add POJOs to support policy design APIChenfei Gao14-0/+860
Includes: a) Added POJOs for TOSCA policy type b) Added POJOs for TOSCA policy c) Added POJOs for TOSCA custom data type d) Added junit tests for POJOs Issue-ID: POLICY-1515 Change-Id: I230b32339c60b7cd3c0b66adfc3f2b1bb38265c5 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-02-05Activate models component for Dublinliamfallon2-4/+4
Issue-ID: POLICY-1264 Change-Id: I9952fcd0e7219bde77c70ad77a982cead4aa15d7 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-11-22Add intellij file types to .gitignoreliamfallon1-0/+3
Issue-ID: POLICY-1264 Change-Id: I105fd8816cdeaf3901b3f53682431e77edb2c081 Signed-off-by: liamfallon <liam.fallon@est.tech>
2018-10-25Upgrade policy/parent 2.0.0Pamela Dragosh1-1/+2
Upgrade to released artifact. Issue-ID: POLICY-1213 Change-Id: Iac97ab8b1be6a4a46d30d85d02c8e902b5e0acae Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-09-25Setup checkstyle and coveragePamela Dragosh2-2/+147
Remove redundant version. Add checkstyle and code coverage declarations. Add ignore of idea and checkstyle. Change-Id: I136628900968cc8ddc0577eb24965d9a221dedf3 Issue-ID: POLICY-1136 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-05-25Rename Policy Modesl to policy-modelsPamela Dragosh1-2/+2
ONAP sonar requires this naming convention. Issue-ID: POLICY-805 Change-Id: I4d40fff79696ef4eeae0af0081862ce726e4c202 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-05-24Adding policy/models moduleeikrwaq2-0/+56
Change-Id: I5d1133fc82b3a61cda10813b15223859e6135dfa Issue-ID: POLICY-805 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
2018-05-01Initialize repoPamela Dragosh4-0/+35
Add the initialie .gitreview, .gitignore, README and License Change-Id: Ib99da18f940cac035014872ae5c83df6bd93a3f2 Issue-ID: POLICY-771 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: Id45818e846cea36bef34a4f9129f0a51b9b36642 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>