Pamela Dragosh [Thu, 4 Apr 2019 13:57:30 +0000 (13:57 +0000)]
Merge "Add ApiModelProperty annotation to authorative models"
Chenfei Gao [Thu, 4 Apr 2019 01:37:23 +0000 (21:37 -0400)]
Add ApiModelProperty annotation to authorative models
Add @ApiModelProperty to authorative models for the fields
that have different serialized names from their property names.
Issue-ID: POLICY-1515
Change-Id: Id6509afe5cc741a6253fc0d1f98ae6b22d31f0d9
Signed-off-by: Chenfei Gao <cgao@research.att.com>
ramverma [Wed, 3 Apr 2019 23:08:44 +0000 (23:08 +0000)]
Updating PdpStatistics model
Change-Id: Ic3ae28997dd1db14c16bdfd24a5d936393fa8da4
Issue-ID: POLICY-1443
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Jorge Hernandez [Wed, 3 Apr 2019 21:14:05 +0000 (21:14 +0000)]
Merge "Clean up models-pap based on updates to models-pdp"
Liam Fallon [Wed, 3 Apr 2019 20:11:58 +0000 (20:11 +0000)]
Merge "Add impl of more PDP persistence"
Jim Hahn [Wed, 3 Apr 2019 17:15:49 +0000 (13:15 -0400)]
Clean up models-pap based on updates to models-pdp
Change-Id: I5e55dd669200e4fc28f58379bbaa61e5d3331610
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
liamfallon [Wed, 3 Apr 2019 15:47:36 +0000 (15:47 +0000)]
Add impl of more PDP persistence
Add the implementation of more metods in the PDP provider.
Issue-ID: POLICY-1095
Change-Id: Ie02189cad7a262a453e1f731190525f838648401
Signed-off-by: liamfallon <liam.fallon@est.tech>
ramverma [Wed, 3 Apr 2019 14:58:57 +0000 (14:58 +0000)]
Changing PAP model as per discussion
1) Changing PAP models to use ToscaPolicyIdentifier instead of actual
ToscaPolicy itself.
2) Deleting unused PdpHealthCheck message. As we decided to return heath
check based on DB state.
3) Updating PdpStatus message to use ToscaPolicyIdentifier instead of actual
ToscaPolicy itself. Pdp don't need to send the whole ToscaPolicy
everytime in heartbeat to PAP. Instead the identifier is sufficient.
Change-Id: I50ead8d8b6af118fd1da08071a2b0fc50584d4aa
Issue-ID: POLICY-1443
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Jorge Hernandez [Wed, 3 Apr 2019 14:25:35 +0000 (14:25 +0000)]
Merge "Add DecisionException"
Pamela Dragosh [Tue, 2 Apr 2019 20:33:12 +0000 (13:33 -0700)]
Add DecisionException
Need this class to capture exceptions during decision and
setup the ErrorResponse object to return from REST API.
Issue-ID: POLICY-1440
Change-Id: I02cd4f93e671c0d543bf527f5de3cf6831f62c40
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
liamfallon [Tue, 2 Apr 2019 23:32:32 +0000 (23:32 +0000)]
Add persistence for PDP concepts
This review adds the JPA annotations to PDP group/subgroup and PDP for
persisting to the database.
It also updates the Provider API as requested by other team members.
Issue-ID: POLICY-1095
Change-Id: I8188afb763849ede9680f3751b464d9d76c27196
Signed-off-by: liamfallon <liam.fallon@est.tech>
ramverma [Tue, 2 Apr 2019 18:22:41 +0000 (18:22 +0000)]
Adding pdpHeartbeatIntervalMs to PdpUpdate message
Adding pdpHeartbeatIntervalMs to PdpUpdate message. The value of which
can be used by Pdp to override its own interval for sending PdpStatus
message as heartbeat to PAP.
Change-Id: I720713b9b569cf09bf393ac797da29e7f330f8bf
Issue-ID: POLICY-1443
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Liam Fallon [Tue, 2 Apr 2019 13:06:26 +0000 (13:06 +0000)]
Merge "Remove pdpType from PdpUpdate"
Pamela Dragosh [Tue, 2 Apr 2019 12:44:26 +0000 (12:44 +0000)]
Merge "move actors code in drools-applications to policy/models"
Pamela Dragosh [Tue, 2 Apr 2019 12:25:51 +0000 (12:25 +0000)]
Merge "Add extra methods to Provider interface"
Jim Hahn [Mon, 1 Apr 2019 23:08:10 +0000 (19:08 -0400)]
Remove PfConceptKey from models-pdp classes
PfConceptKey has different notions of "null", thus removing it
from models-pdp.
Change-Id: I3b0fc818a8283dcca0fb67ec6c3b6e2302d26196
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Mon, 1 Apr 2019 22:29:16 +0000 (18:29 -0400)]
Remove pdpType from PdpUpdate
The pdpType field is redundant; it has the same value as the pdpSubgroup
field.
Change-Id: Id5cd0c726ffcf73aa82d35eb8cdbf1d7e3c2abc8
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
liamfallon [Mon, 1 Apr 2019 21:03:34 +0000 (21:03 +0000)]
Add extra methods to Provider interface
This review provides the full specification of the Provider
interfce and stups the new implemented methods into the relevant
delegated providers.
Issue-ID: POLICY-1095
Change-Id: I5f297f8dbbe4131ce910fce95459425ac8b7c3f9
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Mon, 1 Apr 2019 18:31:22 +0000 (18:31 +0000)]
Merge "Fix policy-models-pdp dependency"
a.sreekumar [Mon, 1 Apr 2019 14:16:27 +0000 (14:16 +0000)]
Fix policy-models-pdp dependency
Change-Id: I97f33d295ef6871d6b4139e4f6c92d00e226c1e8
Issue-ID: POLICY-1443
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Jim Hahn [Mon, 1 Apr 2019 16:23:51 +0000 (12:23 -0400)]
Fix breakage from ToscaPolicy refactoring
A few tests in models-pdp broken when ToscaPolicy was moved
and refactored.
Change-Id: If8e17a140ebc4f8f83b1f5c7cb32a542dd6e5390
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Pamela Dragosh [Mon, 1 Apr 2019 16:07:07 +0000 (16:07 +0000)]
Merge "Refactor to authorative TOSCA serializtion"
Liam Fallon [Mon, 1 Apr 2019 15:36:19 +0000 (15:36 +0000)]
Merge "Add copy constructors to more models-pdp classes"
ning.xi [Mon, 1 Apr 2019 03:07:40 +0000 (03:07 +0000)]
move actors code in drools-applications to policy/models
remove white-space in policy/models
Issue-ID: POLICY-1264
Change-Id: I8856fc7cd2c2a57af0031637870ca33c684bacf5
Signed-off-by: ning.xi <ning.xi@est.tech>
liamfallon [Mon, 1 Apr 2019 00:34:34 +0000 (00:34 +0000)]
Refactor to authorative TOSCA serializtion
This review refactors the TOSCA support to use authorative
serialization and mapping.
It removes the JPA entities from the Proider interface
It brings the mapping support from and to authorative concepts out of
the JSON serialization classes directly into the JPA classes
It adapts the unit tests to work with the refactored structure.
Apologies for the review size but it all had to be done in a single block
of work.
Issue-ID: POLICY-1095
Change-Id: I4827d1dc67ef7aac98cba230ffcd79c6de71e805
Signed-off-by: liamfallon <liam.fallon@est.tech>
Liam Fallon [Sun, 31 Mar 2019 23:17:59 +0000 (23:17 +0000)]
Merge "Restructure for authorative models"
Jim Hahn [Sun, 31 Mar 2019 05:15:57 +0000 (01:15 -0400)]
Add copy constructors to more models-pdp classes
Change-Id: I9c6dc85b13e3e114f380dd9581f3f4c055889260
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Jorge Hernandez [Fri, 29 Mar 2019 19:59:46 +0000 (19:59 +0000)]
Merge "fix code smell in model-impl"
Jorge Hernandez [Fri, 29 Mar 2019 15:51:42 +0000 (15:51 +0000)]
Merge "Update comment in models-pap."
Hengye [Fri, 29 Mar 2019 15:07:38 +0000 (15:07 +0000)]
fix code smell in model-impl
Issue-ID: POLICY-1264
Change-Id: Idacb7151978373e48098790d9d86825410b65aa6
Signed-off-by: Hengye <yehui.wang@est.tech>
Jim Hahn [Thu, 28 Mar 2019 21:03:19 +0000 (17:03 -0400)]
Update comment in models-pap.
Change-Id: If51abf12cec951d82738ce7579b583fa97a1a26b
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Pamela Dragosh [Fri, 29 Mar 2019 11:25:33 +0000 (11:25 +0000)]
Merge "Add @NonNull to PolicyIdent"
liamfallon [Fri, 29 Mar 2019 10:31:22 +0000 (10:31 +0000)]
Restructure for authorative models
Use authorative models instead of the JPA stored models
as the venacular models in the Policy Framework.
The next step is to pass the authorative objects over the
provider interface rather than the JPA obejcts. This change will
be made in the next review.
Minor changes to pdp objects to remove JPA things from them. These
object will be the authorative in-memory obejcts on the PDP side and
new JPA entity object will be introduced in a future review to persist
them.
Issue-ID: POLICY-1095
Change-Id: I40e7b713903980cb41bb315417111b67a9b17307
Signed-off-by: liamfallon <liam.fallon@est.tech>
Jim Hahn [Thu, 28 Mar 2019 19:24:37 +0000 (15:24 -0400)]
Add @NonNull to PolicyIdent
Change-Id: Ib10c92addfe4803dc28f82a7f844920134336b8a
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
liamfallon [Wed, 27 Mar 2019 22:27:14 +0000 (22:27 +0000)]
Add support for legacy guard policies
Support for legacy guard policies added.
Support for translation of all legacy policies to
TOSCA format now complete.
Fix merge problems with dummy provider implementation.
Issue-ID: POLICY-1095
Change-Id: I3dd1775b78d39078a884e1834502b832ff40be18
Signed-off-by: liamfallon <liam.fallon@est.tech>
Jorge Hernandez [Wed, 27 Mar 2019 16:29:58 +0000 (16:29 +0000)]
Merge "Add PfConceptKey.isVersionNull()"
Jorge Hernandez [Wed, 27 Mar 2019 14:58:49 +0000 (14:58 +0000)]
Merge "Fix VF Module Create in guard"
Jorge Hernandez [Wed, 27 Mar 2019 14:58:33 +0000 (14:58 +0000)]
Merge "migrate model-impl from drools-applications"
Jim Hahn [Wed, 27 Mar 2019 14:41:44 +0000 (10:41 -0400)]
Add PfConceptKey.isVersionNull()
Change-Id: I4b2f69bb023a07930b9f418b88078d04a24b7303
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Pamela Dragosh [Wed, 27 Mar 2019 11:03:57 +0000 (11:03 +0000)]
Merge "Add Legacy Op Policy Persistence"
Liam Fallon [Wed, 27 Mar 2019 09:20:17 +0000 (09:20 +0000)]
Merge "Fix file access issue in DummyProviderImpl"
liamfallon [Tue, 26 Mar 2019 22:31:43 +0000 (22:31 +0000)]
Add Legacy Op Policy Persistence
Legacy operational policies now fully supported for
serialization and persistence from provider through to
database and back. Unit test coverage completed
also
Issue-ID: POLICY-1095
Change-Id: I65755859c94b50edee537d2685f51a7838c6541f
Signed-off-by: liamfallon <liam.fallon@est.tech>
Liam Fallon [Tue, 26 Mar 2019 22:02:45 +0000 (22:02 +0000)]
Merge "Add persistence test for all policy examples"
Chenfei Gao [Tue, 26 Mar 2019 18:46:31 +0000 (14:46 -0400)]
Fix file access issue in DummyProviderImpl
Changed to use ResourceUtils.getResourceAsString in policy/common project
to access dummy files.
Issue-ID: POLICY-1441
Change-Id: I42d7cb809a0eeedfc2a8a6b82edfe38ad7138548
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Pamela Dragosh [Tue, 26 Mar 2019 17:08:31 +0000 (17:08 +0000)]
Merge "Add ErrorResponse to policy framework exceptions"
liamfallon [Tue, 26 Mar 2019 15:42:42 +0000 (15:42 +0000)]
Add persistence test for all policy examples
The test checks the TOSCA policy examples and ensures they can be
persisted and read back from persistence.
Test against the expected outcome will be added in later reviews.
Tests for legacy and PDP-A policies willbe added in later reviews.
Issue-ID: POLICY-1095
Change-Id: Ie06bbd477ff63618f126b01c9ab49bfc45b19ae9
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Tue, 26 Mar 2019 15:07:34 +0000 (11:07 -0400)]
Fix VF Module Create in guard
The correct recipe is VF Module Create and fixed missing content
in one policy.
Issue-ID: POLICY-1273
Change-Id: I87e30d72c1bb966158754d27cbc5ea4ae465bf65
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Chenfei Gao [Tue, 26 Mar 2019 02:42:39 +0000 (22:42 -0400)]
Implement serialization/deserialization for TOSCA concepts
Includes:
a) Build serialization for tosca policy
b) Build serialization for tosca policy type
c) Build serialization for tosca data type
d) Build deserialization for tosca policy
e) Build deserialization for tosca policy type
f) Build deserialization for tosca data type
g) Build plain tosca pojos for API endpoints
h) Build plain tosca pojo mapper to map from/to internal tosca representation
i) Add relevant junit tests
Issue-ID: POLICY-1441
Change-Id: I30a4a1337c756f675fc7a5521e5f9e1a5e3eb97a
Signed-off-by: Chenfei Gao <cgao@research.att.com>
liamfallon [Tue, 26 Mar 2019 09:26:00 +0000 (09:26 +0000)]
Add ErrorResponse to policy framework exceptions
The ErrorResponse object is now contained in Policy Framework
exceptions.
Issue-ID: POLICY-1095
Change-Id: Ib0ce6cdbbead939afefc4afa3f507eb1a28c4a5c
Signed-off-by: liamfallon <liam.fallon@est.tech>
Jorge Hernandez [Tue, 26 Mar 2019 00:33:45 +0000 (00:33 +0000)]
Merge "Add internal classes to models-pdp"
Jorge Hernandez [Tue, 26 Mar 2019 00:32:17 +0000 (00:32 +0000)]
Merge "Add provider for Tosca Policies"
Jim Hahn [Mon, 25 Mar 2019 15:12:06 +0000 (11:12 -0400)]
Add internal classes to models-pdp
Added PdpGroup and other classes. These are the objects that will
will actually be stored in the DB. The DB Provider classes should
be updated to use these instead of the external classes found in
models-pap.
Note: These were copied from policy/pap.
Change-Id: I2e5518d28e79c26038d0a1600553ab058bcdda1a
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Pamela Dragosh [Mon, 25 Mar 2019 17:23:42 +0000 (17:23 +0000)]
Merge "Add PolicyIdentOptVersion"
Jorge Hernandez [Mon, 25 Mar 2019 15:38:16 +0000 (15:38 +0000)]
Merge "Add new policy types"
Jim Hahn [Fri, 22 Mar 2019 18:12:03 +0000 (14:12 -0400)]
Add PolicyIdentOptVersion
Added additional PolicyIdentXxx classes. Added PdpDeployPolicies, which
makes use of it, thus eliminating the need for PdpPolicies, which will be
deleted once the PAP has been modified to use the new code.
Added Validated class to facilitate field validation.
Added utility methods to Validated class.
Use new validator methods in PolicyIdentXxx classes.
Use addError() method in validator class.
Use parameter types instead of "?".
Use static Validator instead of local.
Get "result" from each call to a validateXxx() method.
Derived PolicyIdentOptVersion from PfConceptKey.
Moved PolicyIdent classes to models-pdp.
Added PolicyIdent classes to models-pap.
Also removed copy constructors from classes in models-pap, as those
are plain POJOs that will not be copied. Copy constructors will be
added to new classes that will be added to models-pdp in a separate
review.
Forgot to include the new Ident classes in models-pap.
Change-Id: I923132c464c7802ee3e9225685cde44f36c64620
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Hengye [Mon, 25 Mar 2019 14:32:21 +0000 (14:32 +0000)]
migrate model-impl from drools-applications
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>
Pamela Dragosh [Fri, 22 Mar 2019 17:33:19 +0000 (13:33 -0400)]
Add new policy types
These are the models from Optimization team. Please note
the new matchable field. I'm trying to get clarification
on what that field means.
Added also a single file for all the optimization policies.
Note, I think some of them may not be right. The hpa one
did not render correct. But I can fix that later.
Fixed capacity policy which had indentation wrong and
VNFPolicy missing type.
Added some guard examples.
Fixed Decision Response to support fields for all the
decisions.
Issue-ID: POLICY-1273
Change-Id: Ib0c06cb203f6355e3050f7d8a7a51a0c1437a8a4
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
liamfallon [Mon, 25 Mar 2019 08:09:14 +0000 (08:09 +0000)]
Add provider for Tosca Policies
Provider working from JAVA API call through to database and
back for TOSCA policies with full unit test.
Issue-ID: POLICY-1195
Change-Id: I82cf3b513b4921dcb2e6726856aa4fbeb7d0d816
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Sun, 24 Mar 2019 14:44:06 +0000 (14:44 +0000)]
Merge "Use enums from models-pdp in models-pap"
Pamela Dragosh [Sun, 24 Mar 2019 12:11:35 +0000 (12:11 +0000)]
Merge "Add input tosca examples for guard frequency"
Jim Hahn [Sun, 24 Mar 2019 03:42:34 +0000 (23:42 -0400)]
Use enums from models-pdp in models-pap
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>
Pamela Dragosh [Fri, 22 Mar 2019 23:09:06 +0000 (23:09 +0000)]
Merge "Add models-pdp to models repo"
Joshua Reich [Fri, 22 Mar 2019 07:50:29 +0000 (00:50 -0700)]
Add input tosca examples for guard frequency
Issue-ID: POLICY-1195
Change-Id: Ia73f8d1e21e2a37ada95727301031e9bb115aceb
Signed-off-by: Joshua Reich <jreich@research.att.com>
Jim Hahn [Thu, 21 Mar 2019 13:54:30 +0000 (09:54 -0400)]
Add models-pdp to models repo
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>
liamfallon [Fri, 22 Mar 2019 15:59:21 +0000 (15:59 +0000)]
Implement Database provider
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>
Jim Hahn [Thu, 21 Mar 2019 16:36:35 +0000 (12:36 -0400)]
Add copy constructors for models-pap
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>
Pamela Dragosh [Thu, 21 Mar 2019 13:58:52 +0000 (09:58 -0400)]
Add module for error responses
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>
liamfallon [Thu, 21 Mar 2019 11:06:07 +0000 (11:06 +0000)]
Add interface to get info from exceptions
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>
liamfallon [Wed, 20 Mar 2019 16:08:21 +0000 (16:08 +0000)]
Implement persistence test for policies
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>
ramverma [Wed, 20 Mar 2019 13:36:35 +0000 (13:36 +0000)]
Adding classes to models-pap
Change-Id: I59acfeeef5e2b93d7d16dbf5c26811a037e255c1
Issue-ID: POLICY-1541
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
liamfallon [Tue, 19 Mar 2019 16:29:56 +0000 (16:29 +0000)]
Move examples into separate module
Issue-ID: POLICY-1195
Change-Id: Id2dc5b5b490134648ca267e27b795f3f4c03bc7b
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Tue, 19 Mar 2019 11:39:53 +0000 (11:39 +0000)]
Merge "Add serialization/deserialization for tosca policy"
Chenfei Gao [Mon, 18 Mar 2019 21:05:55 +0000 (17:05 -0400)]
Add serialization/deserialization for tosca policy
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>
Pamela Dragosh [Sat, 16 Mar 2019 21:17:37 +0000 (17:17 -0400)]
Add decision models
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>
liamfallon [Sun, 17 Mar 2019 22:33:51 +0000 (22:33 +0000)]
Implement Legacy to TOSCA Mapping
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>
Jorge Hernandez [Sat, 16 Mar 2019 19:46:42 +0000 (19:46 +0000)]
Merge "Update monitoring policies with tcaPolicy"
Jessica Wagantall [Fri, 15 Mar 2019 20:54:03 +0000 (13:54 -0700)]
Update INFO.yaml file
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>
Pamela Dragosh [Fri, 15 Mar 2019 17:19:10 +0000 (13:19 -0400)]
Update monitoring policies with tcaPolicy
To match the model.
Issue-ID: POLICY-1195
Change-Id: I939d5080b31cf63cdf51602a9b7bdfa5ece716eb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Fri, 15 Mar 2019 18:31:18 +0000 (18:31 +0000)]
Merge "Adjust snakeyaml version"
Jorge Hernandez [Fri, 15 Mar 2019 18:01:19 +0000 (18:01 +0000)]
Merge "Adding PdpStatistics model to mdoels-pap"
Jim Hahn [Fri, 15 Mar 2019 17:00:54 +0000 (13:00 -0400)]
Adjust snakeyaml version
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>
ramverma [Fri, 15 Mar 2019 15:44:58 +0000 (15:44 +0000)]
Adding PdpStatistics model to mdoels-pap
Change-Id: Ie229b76fbd848811fe919d28eead19060a487157
Issue-ID: POLICY-1541
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Jim Hahn [Fri, 15 Mar 2019 15:36:16 +0000 (11:36 -0400)]
Add list of policy groups to API models
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>
Pamela Dragosh [Fri, 15 Mar 2019 14:27:24 +0000 (10:27 -0400)]
Fill in legacy JSON models
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>
Pamela Dragosh [Fri, 15 Mar 2019 13:45:21 +0000 (13:45 +0000)]
Merge "Add serialization for Tosca Model"
Pamela Dragosh [Fri, 15 Mar 2019 13:11:53 +0000 (13:11 +0000)]
Merge "Add classes for PDP "simple" REST APIs"
liamfallon [Fri, 15 Mar 2019 12:36:38 +0000 (12:36 +0000)]
Add serialization for Tosca Model
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>
Jim Hahn [Wed, 13 Mar 2019 21:28:56 +0000 (17:28 -0400)]
Add classes for PDP "simple" REST APIs
Change-Id: I81a624a9cfb93df488bbd447f3ee24d1880048d6
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
liamfallon [Thu, 14 Mar 2019 10:01:58 +0000 (10:01 +0000)]
Add DAO Enabled Tosca Model
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>
Jim Hahn [Wed, 13 Mar 2019 18:59:37 +0000 (14:59 -0400)]
Move PDP Group classes to concepts subdirectory
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>
jh7358 [Tue, 12 Mar 2019 17:11:15 +0000 (13:11 -0400)]
Added PDP Group model classes
Change-Id: I16298228f9e390362d4783750274703a4db57811
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
ramverma [Tue, 12 Mar 2019 22:15:38 +0000 (22:15 +0000)]
Adding models-pap module to policy/models
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>
liamfallon [Tue, 5 Mar 2019 09:35:16 +0000 (09:35 +0000)]
Add DAO module for Models
This patch set fixes some typos and license headers.
Issue-ID: POLICY-1195
Change-Id: I2d15b00fcb50ea92746ab7c5a87b57efa07196fe
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Fri, 1 Mar 2019 18:15:19 +0000 (13:15 -0500)]
Remove lombok version and override
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>
Pamela Dragosh [Thu, 28 Feb 2019 17:30:41 +0000 (17:30 +0000)]
Merge "Add basic model object concepts"
Pamela Dragosh [Thu, 28 Feb 2019 15:19:42 +0000 (10:19 -0500)]
Update INFO.yaml Liam's email
est.tech
Issue-ID: POLICY-1556
Change-Id: If16fea0ec12e83a71fc84cd17997075f3bb135d2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
liamfallon [Tue, 26 Feb 2019 13:57:39 +0000 (13:57 +0000)]
Add basic model object concepts
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>
Chenfei Gao [Tue, 26 Feb 2019 20:59:56 +0000 (15:59 -0500)]
Change the version of policy parent
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>
Chenfei Gao [Sat, 23 Feb 2019 01:10:11 +0000 (20:10 -0500)]
Add POJOs to support policy design API
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>
liamfallon [Tue, 5 Feb 2019 13:41:59 +0000 (13:41 +0000)]
Activate models component for Dublin
Issue-ID: POLICY-1264
Change-Id: I9952fcd0e7219bde77c70ad77a982cead4aa15d7
Signed-off-by: liamfallon <liam.fallon@est.tech>