summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-08-16Point to parent 3.3.3 and common 1.8.3Ram Krishna Verma1-2/+2
Issue-ID: POLICY-4295 Change-Id: Id7118485a553ddc652a36e9702a9cb5dab87b6af Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2022-08-03Upgrade to oparent 3.2.1pdragosh12-31/+26
Use commons and parent Issue-ID: POLICY-4211 Change-Id: I553a2d7531e0e91266a833e5b655e4d0fb42f079 Signed-off-by: pdragosh <pd1248@att.com>
2022-07-13Change scripts to sh rather than bashliamfallon3-3/+6
The models simulator in Honolulu uses bash for running scripts but bash is not available in the alpine base image. This commit replaces bash with sh Issue-ID: POLICY-4233 Change-Id: I2cdab931257d6686c693d307c5eb742a896b0d08 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-07-11update policy models referencesliamfallon1-1/+1
updated policy models references *** This commit is generated by a PF release script *** Issue-ID: POLICY-4233 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: If422638de955b177a07a8804b2f63cfe599cc30f
2022-07-07Update snapshot and/or references of policy/models to latest snapshotsliamfallon44-46/+46
policy/models updated to its latest own and reference snapshots *** This commit is generated by a PF release script *** Issue-ID: POLICY-4233 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I327d07981fe249f0a3fa851eb4774700111ed18d
2022-07-07Release docker images for policy/models: 2.4.5liamfallon1-0/+8
This commit releases docker images for repo policy/models. *** This commit is generated by a PF release script *** Issue-ID: POLICY-4233 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I452794432e5c4a295ec59405cc1f427db02b5e9b
2022-07-07Release policy/models: 2.4.5liamfallon1-0/+4
This commit releases repo policy/models. *** This commit is generated by a PF release script *** Issue-ID: POLICY-4233 Signed-off-by: liamfallon <liam.fallon@est.tech> Change-Id: I84917f874c580a7669bdb3ff391bcdfa6dd5ffc8
2021-08-04Bump models to 2.4.5-SNAPSHOTRam Krishna Verma44-44/+44
Issue-ID: POLICY-3329 Change-Id: I50fc59d9d9d605f3c979c71dc0fd17351036089a Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-04Release models 2.4.4 versionRam Krishna Verma1-0/+4
Issue-ID: POLICY-3329 Change-Id: Idc768b60ce920df6b11b2e2290de5df40bb7fccd Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-04Point to parent 3.3.2 common 1.8.2Ram Krishna Verma1-2/+2
Issue-ID: POLICY-3329 Change-Id: I246a591a9b5dece931c46f4ec4da42a529efa425 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-03Upgrade to cds 1.1.5-SNAPSHOTRam Krishna Verma5-15/+15
Upgrading policy components to cds 1.1.5-SNAPSHOT to verify the contract and fixes coming up in the next released version. Issue-ID: POLICY-3516 Change-Id: I93602c392a5f917e68a7a1a74eaf0f188f520c39 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca> (cherry picked from commit 35dff8f8bd31fd71e7f5e6c9aa39fe096e35d98a)
2021-07-21Upgrade CDS dependencyk.kedron7-23/+23
- New CDS client libraries. - Update code to use new CDS BlueprintProcessingService Change-Id: I00fb044908774a48755ff8d9ebb32e055a74c819 Issue-ID: POLICY-3507 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-25Add example for pnf policy chainingRam Krishna Verma2-2/+83
Adding example for policy chaining in drools-pdp for PNF. This will be later referenced in the documents in upcoming review. Issue-ID: POLICY-3382 Change-Id: Ifce5cf17e869566725a8e15fd391fb130c115e0f Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca> (cherry picked from commit 6554ad87e8f3c760d5d6fc1692d112fa5dd2f8cd)
2021-06-25Add example for policy chainingRam Krishna Verma1-0/+81
Adding example for policy chaining in drools-pdp. This will be later referenced in the documents in upcoming review. Issue-ID: POLICY-3382 Change-Id: If2189422cb7e9ac35fb93e0fd9ae44f1cd412686 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca> (cherry picked from commit 46af75bda81e5dfc5f885f3d735e51b57662bcc0)
2021-06-23Bump models to 2.4.4-SNAPSHOTRam Krishna Verma44-44/+44
Issue-ID: POLICY-3329 Change-Id: I815ebb553c84664e175e252fb89f43f0c017a438 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-22Release models 2.4.3 maven artifactsRam Krishna Verma1-0/+4
Issue-ID: POLICY-3329 Change-Id: I2091b30d902a2ac56a566b7ba7060cdaae11e3cc Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-22Point to released dependenciesRam Krishna Verma1-2/+2
Issue-ID: POLICY-3329 Change-Id: I3b06b1cf12569ed42ef9ceef81454a4484754ca8 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-06-04Upgrade CDS dependencyRashmi Pujar2-53/+6
CDS client libraries are exposed by a different maven module making is much more cleaner to use. The only drawback is we need to go back to older version of grpc-testing artifact due to conflicts. Issue-ID: POLICY-3338 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: I98c79de7f12feefbae7c42c4c8f26357801b44f9 (cherry picked from commit d8b5454e5d389332f4f624c291fa46690cf177ef) Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-03-23Bump to 2.4.3 in modelsJim Hahn44-44/+44
Issue-ID: POLICY-3150 Change-Id: Ie55f2fda2e890efdfed602e2f6030199400645c0 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-23Release 2.4.2 artifacts for models8.0.0-ONAPJim Hahn1-0/+4
Issue-ID: POLICY-3150 Change-Id: I3337133a01981a7b8ad6309e52cbd7ae33ee4e4f Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-22Fix write failure on PDP statisticsliamfallon16-34/+169
Due to the precision of time stamps being saved to the nearest second, a millisecond precision timestamp was being compared to a second precision timestamp, causing the write to fail. This change fixes that. A unit test is also added to test for this on the provider. In addition, a USE-MARIADB flag is being introduced, which allows unit tests to be run against a locally installed MariaDB instance so that the unit tests can be verified against MariaDB locally rather than H2, the default in Gerrit. Issue-ID: POLICY-3146 Change-Id: I878f160956e89506743dc074679ee81ac1c48216 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit d6db5582b6705c11abbf8b507aa423aa00bcd7ae)
2021-03-16Update policy-keystore with newer certificatesjhh4-0/+0
Issue-ID: POLICY-3139 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Id4a882b40ef142d0414518c5d5ab90367f0bbb73
2021-03-10Default to honolulu branchJim Hahn1-1/+1
Issue-ID: POLICY-3105 Change-Id: I651d1f67275979d95888695091e0699ac0adad52 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-09Bump models to 2.4.2-SNAPSHOTJim Hahn44-44/+44
Issue-ID: POLICY-3127 Change-Id: Ie37871c54dc5e7eab0ee7d553c6b38ea0e720a29 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-09Release models 2.4.1 artifactsJim Hahn1-0/+4
Issue-ID: POLICY-3127 Change-Id: I2350bed3a5679ac5edb87544c732c4c094b7c028 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-08Merge "Use Date instead of Timestamp"Jim Hahn4-29/+37
2021-03-08Use Date instead of TimestampJim Hahn4-29/+37
Use of Timestamp in JPA classes appears to cause EntityNotFoundException. Changed from Timestamp back to Date. Issue-ID: POLICY-3125 Change-Id: I3ee29675849e3feda2641e9b240207c96fd975d4 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-05Fix 4 newly added Sonar bugslapentafd2-4/+4
Added casting for 4 asserts in policy/models/base Issue-ID: POLICY-3094 Change-Id: Ibc97be3eca366a7e9b8b9611bc284f2473acff6e Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-03-04Merge "Refactor models for common type handling"Liam Fallon16-180/+247
2021-03-04Merge "Fix sonar issues on policy-models"Jim Hahn8-152/+251
2021-03-03Refactor models for common type handlingliamfallon16-180/+247
Currently we have handling for "type" and "type_version" on TOSCA Policy class. However, the concept of a "type" and "type_version" also exists on the ToscaCapabilityAssignment, the ToscaNodeTemplate, and the ToscaRequriement classes. This review makes the type handling on Policy generic, thus extending it to the other three types. Issue-ID: POLICY-2983 Change-Id: Ia20e3a8c485f4841257075df08e0784eac415770 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-03-03Fix sonar issues on policy-modelslapentafd8-152/+251
Tests refactoring to reduce number of assertions to less then 25 Issue-ID: POLICY-3094 Change-Id: Icd3d83c7f8168dd81df13a584229eab36c646f37 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2021-03-03Fix Reference Key columns persistence issue in dbrameshiyer274-64/+181
Problem: When PfReferenceTimestamp Key is persisted in db, the parent class fields are ignored which causes inconsistent data while saving and fetching in db. Fix: JPA is not supporting inheritance in @Embeddable classes. Hence included the super class as @Embedded property in PfReferenceTimestamp key. @Embedded properties are unable to be queried directly. Slightly modified Dao methods to support querying @embedded fields. Issue-ID: POLICY-3049 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I5c2e03a5ae98525764a64dd6cce1a1298c5f9816
2021-02-25Merge "Fix Null key issue in PfReferenceTimestampKey"Liam Fallon2-3/+8
2021-02-25Fix Null key issue in PfReferenceTimestampKeyrameshiyer272-3/+8
isNUllKey check for PfReferenceTimestamp key is always returning false as the parent class is validating the child object in its method which has additional parameters (timestamp). Fixing the issue by validating only the fields of parent class. Issue-ID: POLICY-3069 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ie22d09552c9d0cedb7535bda359df0d70e1ebe77
2021-02-24Update info.yaml in modelsRam Krishna Verma1-2/+2
Issue-ID: POLICY-3028 Change-Id: I9e3038fed7b4322cbf050fa56ffe77ee01e50a20 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Bump models to 2.4.1-SNAPSHOTRam Krishna Verma44-44/+44
Issue-ID: POLICY-3088 Change-Id: I7f6cc0ab5299200315c78f6e6c79c79349d2608c Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Release models 2.4.0 versionRam Krishna Verma1-0/+4
Issue-ID: POLICY-3088 Change-Id: I19c9020011dc4145894f726c1327670d409a7d78 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23Point to non-snapshots in modelsJim Hahn1-2/+2
Issue-ID: POLICY-3088 Change-Id: I2789f3435514de5ef2be3f07f8419434bda89d6d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-19Refactor timestamp property in policy models to use Instantrameshiyer2723-219/+244
Updated JPA classes to use java.sql.TImestamp rather than Instant. Issue-ID: POLICY-3069 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: If5b874ec96931d4b8dd142d46a9980e83a4708fc
2021-02-18Merge "Remove more duplicate code from models"Ram Krishna Verma6-182/+214
2021-02-18Merge "Use new version of A&AI APIs"Ram Krishna Verma4-195/+11
2021-02-17Add time and date attributes to DecisionRequestPamela Dragosh1-1/+21
These are optional for clients, but may be necessary in configurations where the application enforcing a guard is running in a different time zone. Allows some flexibility instead of always using the time zone that the xacml pdp is running in. Issue-ID: POLICY-2810 Change-Id: I4057e5956e59803cc9505fae0ee4e2f67eaf0358 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-02-17Remove more duplicate code from modelsJim Hahn6-182/+214
Addressed sonar "duplicate code" issue by extracting a common ToscaNameVersion class from the XxxIdentifier classes. Also removed junit test for class that no longer exists and renamed another junit to match the renaming of the class being tested. Issue-ID: POLICY-2905 Change-Id: I4a28cd7de2478f2771a864439c0b440ad8310299 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-17Use new version of A&AI APIsJim Hahn4-195/+11
Just changed the version numbers; the APIs appear to be the same otherwise. Also removed unused APIs from the A&AI simulator. Issue-ID: POLICY-2788 Change-Id: I8c0ae11c1e42f487b34286d5dfd4ca536bb2c07b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-17Fix sonars from removal of duplicate codeJim Hahn5-13/+347
The work to remove duplicate code from models introduced as many new sonars as it eliminated. :-( Addressed the following new issues: - visibility of constructor - use of more specific assertThat() calls Also added two junit test file that were somehow previously left out. Issue-ID: POLICY-2905 Change-Id: I7a0206bd157412d3c6d98bfe21797f106b37ac65 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-17PAP Deployment API changes - change url to uria.sreekumar2-10/+17
Change-Id: I6fa4b001a0c4573a34e1cefe0d32ca969ca5096e Issue-ID: POLICY-2526 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-02-16Merge "Fix duplicate code in Jpa classes"Pamela Dragosh25-766/+870
2021-02-16Add PfReference Timestamp key in policy-models-base to support timestamprameshiyer272-0/+375
property Issue-ID: POLICY-3011 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I7a9db3a4fb0345e0979952e5c086523cc1d960f9
2021-02-16Merge "Updating PAP deployment API to reflect actual status"Liam Fallon2-0/+70