aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-10-06Merge "Make simulator parameters optional"Ajith Sreekumar10-24/+72
2020-10-05Make simulator parameters optionalJim Hahn10-24/+72
Modified the simulator to make the DMaaP and GRPC parameters optional so that a simulator can be started without them. Also added parameter validation, as that was not being performed on the DMaaP or GRPC parameters. Also modified the validation so-as not to require the rest server parameter field contained within the DMaaP parameter class. Issue-ID: POLICY-2858 Change-Id: I85dde93c7baf863eca2cb10eab37806f3e08a087 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-05Merge "Log simulator output at INFO level"Ram Krishna Verma2-0/+51
2020-10-02Log simulator output at INFO levelJim Hahn2-0/+51
The simulator is defaulting to DEBUG log level which generates too much output to wade through. Changing to INFO level and sending to stdout for easier use in docker & kubernetes environments. Issue-ID: POLICY-2742 Change-Id: I078a406d539068e25747a59955214c35fc31510e Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-02Fix eclipse/sonar warnings in modelsJim Hahn4-4/+4
Addressed the following eclipse/sonar warnings: - unused imports - unchanged type - unreachable "catch" block - reinterrupt Issue-ID: POLICY-2714 Change-Id: I2fe6011ec74b7fab8889050e5c83647ab034ea25 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-10-01Merge "Enhance gRPC Simulator:"Ajith Sreekumar25-10/+959
2020-09-30Remove Entity annotation from PfConceptContainerliamfallon1-1/+0
The PfConceptContainer class uses incompatible JPA anotations @MappedSuperClass and @Entity are incompatible as a MappedSuperClass cannot be an entity. Eclipselink silently tolerates this incompatibility but Hibernate (used in CLAMP) throws a build error on this class. Issue-ID: POLICY-2851 Change-Id: I2fd3d9217dc00717f8f2471e4848d254e7726b11 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-09-30Enhance gRPC Simulator:puthuparambil.aditya25-10/+959
1.Make gRPC Simulator respond to different actions by generating the response on the basis of received request. 2.Include CDS Simulator in policy-models-simulator 3.Introduce a packages module in models-sim to package the docker image of policy-models-simulator which includes all the simulators(pdp-simulator to be added in future) in models. 4.The Jenkins job changes to push this newly created Docker image may be taken in the next release. Issue-ID: POLICY-2828 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ic1663bbe8205c64a8133ea0b0c28152f21d0732a
2020-09-28Merge "Add DCAE policy types"Liam Fallon3-0/+307
2020-09-24update default keystoresjhh3-0/+0
Issue-ID: POLICY-2827 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I7622d382aec1bd4ba62405355854d1bad510a892
2020-09-24Add DCAE policy typesPamela Dragosh3-0/+307
These policy types were removed from SDC and added into policy. They are legacy and will be determined later if they should be permanently deleted or moved into use case code. The default fields need to be changed because our TOSCA code expects a string and does not recognize list. Issue-ID: SDC-3229 Change-Id: I36a03032134d6d320d1a459cfe1d56ce6a702d5d Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-09-16Use latest alpine base imageJim Hahn1-1/+1
Simulators are only used while testing, thus the version of the alpine image need not be specified. Removing the version from the Dockerfile eliminates the need to update the Dockerfile every time the version changes. Issue-ID: POLICY-2819 Change-Id: Ie81079f4734b369eaf865c58d319b8244427207a Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-16Remove base64 encoding of password from modelsRam Krishna Verma6-21/+12
Remove base64 encoding of db password from models. This will have impact on the defaultConfig of API & PAP component. Seperate reviews are raised for those repos. Issue-ID: POLICY-2550 Change-Id: I258f76d01c21893bb40b4095a82e56ed51bd1377 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-09-08Bump models to 2.3.2Jim Hahn41-41/+41
Issue-ID: POLICY-2789 Change-Id: I19b397ecb165bea30059142d9d4c5357ceba9825 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-08Release 2.3.1 modelsJim Hahn1-0/+4
Issue-ID: POLICY-2789 Change-Id: I2199abef6ff9e34f3bdcc0103c59e3d5a761df6c Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-08Use released versionsJim Hahn1-1/+1
Issue-ID: POLICY-2789 Change-Id: I94e3a329499365465db9e5c81461570506f86620 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-04Revert "point to 2.1.0 policy-alpine base - model-sim"Jim Hahn4-5/+13
This reverts commit e46f74d64fe69d33d5038704b64993aa9cab59fc. Reason for revert: some CSITs broken because the can't find the image Issue-ID: POLICY-2789 Change-Id: Id6355c21789281a3f25467b3bd6e2e48d22533f5 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-09-04point to 2.1.0 policy-alpine base - model-simTaka Cho4-13/+5
In G-rel, using 2.1.0 base. Issue-ID: POLICY-2789 Change-Id: I165debaf20267c0b1c3141bff805a29595f1eccf Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-09-02Add new method to retrieve vnf-idPamela Dragosh3-1/+20
For guard filters, once the vnf-id is found. Then this convenience method helps to retrieve the correct vnf information. Issue-ID: POLICY-2590 Change-Id: I0b55b15582ddc58bbc5b2c0c2c2b130f3cdc88c3 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> Signed-off-by: Jim Hahn <jrh3@att.com> Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-09-01Merge "Add Modify NSSI operation in SO actor"Jim Hahn17-16/+415
2020-09-01Add Modify NSSI operation in SO actorkrishnaa9617-16/+415
Issue-ID: POLICY-2586 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I6ac184a6e731767f06401a0ac984c6b448c5d82f
2020-08-28Default policies to usecases controllerJim Hahn9-9/+9
The example operation policies specify the "frankfurt" controller. Modified them to specify the "usecases" controller instead. Issue-ID: POLICY-2748 Change-Id: I468b43a80e09dd054ba3b8fa8dbc47c8d7efd548 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-28Merge "Remove commons-io dependency from models"Jim Hahn1-4/+0
2020-08-28Merge "Remove Target and TargetType"Jim Hahn48-330/+589
2020-08-27Remove commons-io dependency from modelsJim Hahn1-4/+0
Issue-ID: POLICY-2798-commons-io Change-Id: I2b2593b5f00aa73ea80fba6438c836e70f6ee45c Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-27Remove Target and TargetTypePamela Dragosh48-330/+589
The dependency should have been removed in the last review to remove SDC and policy-yaml legacy code. It was revealed that usage of TargetType and Type were spread out over the actor code. Those fields are represented differently in the new TOSCA Operational Policy Type, so fields were created to capture those values to be used by actor code. Issue-ID: POLICY-2428 Change-Id: Ib783526a518ca7942ae9e38019bd343639f4dd98 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-27Fix random failures in dmaap-simJim Hahn1-5/+53
Modified the code to use a separate topic for the format tests, as well as a separate consumer name for each test. Issue-ID: POLICY-2749 Change-Id: Ia93f17109b761e98a4f676066024b51dd9024dc0 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-26Merge "Address more sonar issues in policy-models"Pamela Dragosh27-92/+49
2020-08-25Merge "update keystore cert"Jorge Hernandez1-0/+0
2020-08-25update keystore certTaka Cho1-0/+0
new expiration date is 3/17/2021 Issue-ID: POLICY-2795 Change-Id: I6c4b636b48ca2aef8165c1f4fd19067b242aedb4 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-08-25Address more sonar issues in policy-modelsJim Hahn27-92/+49
Addressed sonar issues: - diamond operator Also removed a number of the "NOSONAR" comments now that we know how to address them without disabling sonar. Issue-ID: POLICY-2714 Change-Id: I440f4fa955968fd911616c2b6ee61b4b4d013821 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-25Merge "Add new match Policy Type"Ram Krishna Verma1-0/+7
2020-08-24Add new match Policy TypePamela Dragosh1-0/+7
Allows Policy Designers to design their own matchable Policy Type out-of-the-box with ONAP. Issue-ID: POLICY-2596 Change-Id: I632201f50b565d5a558f8a773bf658407bedbfe6 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-24Merge "Remove legacy operational policy from models"Jim Hahn23-1326/+14
2020-08-24Remove deprecated SDC and Model-yamlPamela Dragosh95-16663/+0
Deprecated as we now use TOSCA and the SDC catalog objects isn't useful for control loop design and implementation. Issue-ID: POLICY-2428 Change-Id: Ib4adfbf25ba70c3cad47a8494333a1f20a5c4e23 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-20Sonar Fixes policy/models, removing model-yamluj426b25-204/+222
Change-Id: Icd82ea1aef90e4d638b13958519aac5ed5a53f73 Issue-ID: POLICY-2714 Signed-off-by: uj426b <uj426b@att.com>
2020-08-19Merge "Upgrade new tcagen2 policy type"Jim Hahn17-36/+36
2020-08-19Upgrade new tcagen2 policy typePamela Dragosh17-36/+36
The old cdap policy type is deprecated by DCAE. Thus, we are simply replacing with the new tcagen2 policy type. Issue-ID: POLICY-2772 Change-Id: I1442340729b5f820f2e265b9b86f6f6f84f49bca Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-18Make targetEntity a propertyJim Hahn23-125/+194
The target entity is not always known when an Operation is first constructed, thus it should be treated as an Operation property instead of being included within the ControlLoopParams. Started the process of moving it from the Params to the properties. Also fixed a bug in custom query - it was setting the outcome response to the String response instead of setting it to the AaiCqResponse object. Also added logging when an Operation's properties are set. Issue-ID: POLICY-2746 Change-Id: I56c0cd90985f6140363548b0b8d031471b586e88 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-18Merge "Remove event context from Operation post processor"Ram Krishna Verma2-5/+8
2020-08-17Remove event context from Operation post processorJim Hahn2-5/+8
Some operations, notably A&AI, post-process data by putting it into the event context. However, with the new strategy, the event context may not be populated. Modified the code to see if the context exists before putting the data into it. Issue-ID: POLICY-2746 Change-Id: Ie3b1bd13b4ac5ee59629daaebc05a62e6ef3c804 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-17Add new guard filter policy typePamela Dragosh1-0/+65
New policy type for testing and preloading. Issue-ID: POLICY-2590 Change-Id: Ic542c61bd402387870306fce9a1977b169052ef9 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2020-08-14Remove legacy operational policy from modelsRam Krishna Verma23-1326/+14
Removing all the legacy operational policy related concepts, providers, examples etc from models repo. Issue-ID: POLICY-2764 Change-Id: Ie820271381674ccc4eaef0bd6379f673f67701e7 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2020-08-14Merge "Do not require context in ControlLoopOperationParams"Ram Krishna Verma2-13/+89
2020-08-14Remove annotations from dmaap common test classJim Hahn4-82/+43
Jenkins builds are randomly failing in the junits for the dmaap simulator. From the console output, it appears that the simulator is being shut down before all of the test methods have executed. Moved the code for managing the "Main" object from the common superclass to the only subclass that needed it. Issue-ID: POLICY-2749 Change-Id: I2615bbef9b790dbb633ed7f123aeb3f880826862 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-13Do not require context in ControlLoopOperationParamsJim Hahn2-13/+89
Modified ControlLoopOperationParams so that the request ID can be provided instead of the context. However, if the request ID is not provided, then it still requires a context. (This requirement should be lifted in a subsequent review). Issue-ID: POLICY-2746 Change-Id: Ib00f46f2fe56430d700ee2edfba12f2c1a106a3f Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-07Merge "Modify Actors to use properties when provided"Pamela Dragosh26-212/+999
2020-08-06Modify Actors to use properties when providedJim Hahn26-212/+999
Modified the Actors to use properties when the application provides them instead of going to the event context for the data. This sometimes entailed moving code out of the Operation subclass constructor that used or validated the context data. Combined some property names and renamed others. Changed VF Count from AtomicInteger to Integer. Issue-ID: POLICY-2746 Change-Id: Ib8730538309bb77d2f4f6161e9a20a49362d8972 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-06Exclude javaparser due to license issueJim Hahn1-0/+6
javaparser is included indirectly by aai-schema jar. Modified the pom to excluded javaparser when including aai-schema jar. Verified that models aai code still works and that drools-apps use case tests still work. Issue-ID: POLICY-2736 Change-Id: Iba137cf7ee4be6f2e35e3053413a4a9068860823 Signed-off-by: Jim Hahn <jrh3@att.com>
2020-08-04Skip preprocessor step in ActorsJim Hahn13-41/+110
Modified Actors to skip the preprocessor step if the "preprocessed" flag is set to true in the parameters. Did not add any error checking code to ensure the data was actually available to the operation - will add that once the properties are being set by the application code. Extracted common code in GrpcOperationTest into the setup method. Issue-ID: POLICY-2746 Change-Id: Id70c31a2c96a7aaa9d73cc70cdf4f55f8a4e087f Signed-off-by: Jim Hahn <jrh3@att.com>