summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-04-16Upgrade apex-pdp 2.0.5 version3.0.2-ONAPcasablancaPamela Dragosh88-88/+88
For Casablanca Maintenance Release 3.0.2 - keystore upgrade. Issue-ID: POLICY-1649 Change-Id: I1e260a9689477bc605acec4dfe4e29c97136efd0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-04-15One year cert with new component namesjhh1-0/+0
Change-Id: Ia3025f2a0eada4f53623bb45d5849ceddf368925 Issue-ID: POLICY-1580 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2019-01-10Fix context clearing on model upgrade3.0.1-ONAP2.0.52.0.4liamfallon5-84/+230
Existing context is cleared when a model upgrade is carried out on an Apex PDP. The clear() method is called in error on the Apex engine during the upgrade. This change also has some small updates to the DecisionMaker example, which is used to test this feature. Issue-ID: POLICY-1395 Change-Id: I547a3a60712d1572d9daadf5eab4afcae2a5c321 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit cff079a8dc3eeaf4e88c0e89a828fe4244a1b3c8)
2019-01-09Merge "Move to 2.0.4-SNAPSHOT version" into casablancaPamela Dragosh88-89/+89
2019-01-09Move to 2.0.4-SNAPSHOT versionJorge Hernandez88-89/+89
Change-Id: Ie771ffc542eb2938079efacc6b9c75cc3616b89d Issue-ID: POLICY-1390 Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
2019-01-08Merge "Add SSL keystore/truststore to Apex package" into casablancaJorge Hernandez8-2/+33
2019-01-08Merge "Add example policy for HTTPS" into casablancaJorge Hernandez9-23/+191
2019-01-08Add Java property parameters for HTTPSliamfallon14-51/+778
Issue-ID: POLICY-1222 Change-Id: I4a683cf2f52e7f1d28164954f84d0744b5ca7e9c Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit 11b9b225ed916b907445f662d60d95ca03e3d251) Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-01-07Add SSL keystore/truststore to Apex packageliamfallon8-2/+33
Issue-ID: POLICY-1222 Change-Id: I4409b88d1a9439492f9aac6c3b971bae7dc04b19 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit 9684e03a94d352240424c8ff3f620b7fcaba7d76)
2019-01-07Add example policy for HTTPSliamfallon9-23/+191
Added an example of how to configure HTTPS for an Apex policy. Issue-ID: POLICY-1222 Change-Id: Iea8a8accac32f6d25c64a8324e202ad5e6221c7a Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit 1dff5ebe27cbe79de8f9d798e256d41ecccdaa8c)
2019-01-07Merge "Support HTTP headers in REST Requestor" into casablancaPamela Dragosh15-19/+1670
2019-01-07Support HTTP headers in REST Clientliamfallon16-46/+2371
Fixed REST client plugin to supprot HTTP headers and add unit test to plugin. Change-Id: I6a71ab7f83ed2126b8600bb5e586f971dbdacdc0 Issue-ID: POLICY-1222 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit 5b97cd4470b9668ed31bf7663808c32087ba696c)
2019-01-07Support HTTP headers in REST Requestorliamfallon15-19/+1670
Change-Id: Iea4211e7d3324f5ea6244f45c91241a4067d8d33 Issue-ID: POLICY-1222 Signed-off-by: liamfallon <liam.fallon@est.tech> (cherry picked from commit c01eff1ee4aff0cc4b177a0bab5c6b96a9efb647)
2018-11-25Create label for architecture to refPamela Dragosh1-0/+2
Creating a label so other documentation in the architecture section can reference this PDP engine documentation. Issue-ID: POLICY-1163 Change-Id: Ida9caba405e36675f65843b1d49e79175634fa02 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> (cherry picked from commit 3688d3901ad241be26671e520da0e01e4c8089c0)
2018-11-08Merge "Refactor unit test data" into casablanca3.0.0-ONAP2.0.3Pamela Dragosh222-100492/+4270
2018-11-08Refactor unit test dataliamfallon222-100492/+4270
There were many copies of test policies and examples strewn through the Apex unit tests. This change cleans up the unit tests so that a single version of all example policies is used in all tests. Also added a new relative file root command line parameter to Apex to allow the root of relative paths in configuration files to be set. Apologies for the size of this review but unfortunately all of this must be done in one shot. Issue-ID: POLICY-1252 Change-Id: Ibbb18fbf18e3897a1c61301d0a65e62bc643a0e9 Signed-off-by: liamfallon <liam.fallon@ericsson.com> (cherry picked from commit 53d8916cc60d97e2ce7ae345f8cc25f5602567da)
2018-11-08Upgrade Jython for security, add doc warningliamfallon2-2/+8
Upgrading Jython to use a full release version. This will probably noit remove security problem but upgrades Jython to the most popular version. A warning is added telling developers to check extra pcakages in the Jython plugin documentation. Issue-ID: POLICY-1065 Change-Id: I83275204c1905bd48dd5ea58e98dcbbd9c47195f Signed-off-by: liamfallon <liam.fallon@ericsson.com> (cherry picked from commit 9dc414a0cabc9074e87a7c9cd5c3e5ceee733e5a)
2018-11-08Upgrade policy parent and commonPamela Dragosh88-90/+90
Pull in policy/parent 2.0.1 and common 1.3.3 so we can finish the license fix for dmaap 1.1.9 Upgrading to 2.0.3 version for release. Issue-ID: POLICY-1229 Change-Id: I7a196deadec2b92e4b3b58a9339e197d361accc0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-11-02Upgrade to policy/common 3.2.02.0.2Pamela Dragosh1-1/+1
Released version. Issue-ID: POLICY-1245 Change-Id: Ib04ab73d3b71255c30103bcd2628b2c406e4e556 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-10-31Step version for Casablanca supportliamfallon86-290/+189
Issue-ID: POLICY-1233 Change-Id: I8a4a124041df0bb9d38424c8491e5dff027f9b01 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-24Fix refering to snapshot in policy/apex-pdp2.0.1ramverma88-92/+91
Issue-ID: POLICY-1213 Change-Id: I9187462aa470cff6ca7adc750c8a666bf8e15429 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-10-23Adding stability test plan of apex-pdpramverma4-0/+363
Change-Id: I41e1237c350b9cceca2b80db3fc9dcccf1173a66 Issue-ID: POLICY-817 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-10-19Merge "Add utility packages to Apex docker image"Jorge Hernandez1-0/+1
2018-10-19Add utility packages to Apex docker imageliamfallon1-0/+1
Add zip/curl/ping/vi to the image for debugging Issue-ID: POLICY-812 Change-Id: I31b156aedd1500ef0ae50a45354f033b057dc7e4 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-19Fix bug to allow JSON arrays of eventsliamfallon2-3/+5
Apex should allow JSON arrays of events to be processed, processing the array of events as they come in. This review changes the Apex JSON array handling to allow arrays of JSON events to be processed. Arrays of events are required to perform Apex pewrformance tests. Change-Id: I08ddc9659414bd076fbaa250182335d6f38473e6 Issue-ID: POLICY-812 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-09Added documentation for readthedocsmmis38-0/+13650
Issue-ID: POLICY-1161 Change-Id: I8a3ac2b8fbfccacd04cfd5cb3bc649d9674ec59b Signed-off-by: mmis <michael.morris@ericsson.com>
2018-10-08Upgrade to release policy/common2.0.0Pamela Dragosh1-2/+2
1.3.0 is released. Change-Id: I2da787ab3203ef7eba5f50aa4bff30c76f1c6cd4 Issue-ID: POLICY-1189 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2018-10-08Remove Sonar Vulnerabilitliamfallon1-1/+1
The coverage review for teh Apex engine introduced a vulnerability flag in Sonar. This review fixes that vulnerability Change-Id: Ie90c61a22c79604513ff2393a768a22ec9542484 Issue-ID: POLICY-1034 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-08Merge "Unit test for Apex engine"Pamela Dragosh34-71/+3715
2018-10-07Unit test for Apex engineliamfallon34-71/+3715
Coverage for unit test of engie state and state machine handling. Added coverage of the facade and executor context classes Added coverage for executors Added coverage for the remainder of the core engine Issue-ID: POLICY-1034 Change-Id: I85c66005dfdffdf2b4ee5672473a3ae4823d0d9c Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-05JUnit for apex Admin Protocol listenerliamfallon9-13/+669
Added coverage for this package. i Issue-ID: POLICY-1034 Change-Id: I2e4b51983eec245eb9f105587d15f853656ce35a Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-05Fix sonar bugs in apex-pdpramverma2-2/+8
Change-Id: I1ab9b9d9b0b8d1655301959d7d6b9ab3cc87eba3 Issue-ID: POLICY-954 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-10-05Set pretty print on JSON creationliamfallon1-1/+1
Pretty printing was set off, making debugging of JSON messages more difficult. Issue-ID: POLICY-954 Change-Id: Ifcc32cdba822f2bfc105c99cc3dc85ee05a89f6f Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-04Fix creation of sub Avro itemsliamfallon7-30/+186
When an Avro object is created, nested sub avro objects are not created automatically. This change allows invocation of a method to create sub objects of Avro objects. Issue-ID: POLICY-954 Change-Id: Ie510867f2631ba6a8c6f5452c08aef5db67e8997 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-03Add unit test for core events and contextliamfallon12-24/+1287
This code is covered by feature testing but does not show up in Sonar. These unit tests give coverage on engine modules. Issue-ID: POLICY-1034 Change-Id: Ib7a288bcb9729ec88346cc8047e38f3a58f9a97c Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-03Add Unit Test for Admin Protocol messagesliamfallon19-111/+818
Issue-ID: POLICY-1034 Change-Id: Ie07d5036ab328ab51843694a3b2a6bac87920f2e Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-01Add JUnit for test conceptsliamfallon7-56/+984
JUnit test for test concepts. Issue-ID: POLICY-1034 Change-Id: Ia2cd896272d4278d842d19d21237edcdca54a1f8 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-10-01Refactor monitoring REST tests to remove PowerMockliamfallon4-43/+184
Removed PowerMock from tests becasue coverage of PowerMock is not counted by JaCoCO. It was easier to remove PowerMock than to try and hack the build get PowerMock coverage counted. Issue-ID: POLICY-1034 Change-Id: Ifc3e1ff93b2bfcb5619a5af6dec320d2de992f87 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-30Unit test for client monitoringliamfallon10-3/+759
Coverage for the client monitoring module. Issue-ID: POLICY-1034 Change-Id: I6bb6dab26ce0572923c3d451a3b5f4745d40d088 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-28Add JUnit for cli-codegenliamfallon4-0/+7269
The cli-codegen tool did not have any unit tests. Issue-ID: POLICY-1034 Change-Id: If9d3924adea703b165b360e314ea3cb417a91d21 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-28Add unit test for core distributionliamfallon11-134/+7673
JUnit for the batch deployer and deploy facade. Issue-ID: POLICY-1034 Change-Id: I3959578ba8666d64b48bbe4ee9aeab27b92d77ae Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-27Unit test for core deploymentliamfallon8-61/+476
This module was not covered by unit test. Issue-ID: POLICY-1034 Change-Id: I700d43c0bde58c2b236f46994f380e20116418d9 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-27Add JUnit for web service client toolliamfallon6-59/+283
JUnit, SOnar fixes, and some minor bug fixes. Issue-ID: POLICY-1034 Change-Id: I72f46e944051f7d65d6b106afe33c759975283af Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-27Add missing example policy models to installliamfallon2-2/+29
The policy models for the decision maker, periodic, and vCPE examples were not included in the install because the policy model json files are generated from CLI commands. THis review installs the generated policy models. Issue-ID: POLICY-954 Change-Id: Ie2076ddfb6199dac0c8b272de8d7c47f1652485e Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-27Add unit test for Apex command line toolsliamfallon21-128/+23036
THere was no unit test for the command line tools. This review adds unit test and also fixes a few small bugs that showed up when uit test was run. Issue-ID: POLICY-1034 Change-Id: Ic19aacdb168fb5a6faa0cd83ed22ccfcedaa51f5 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-26Allow custom JSON adapter specificationliamfallon13-95/+822
In order to decode and encode complex Java POJOs with GSON, type adapters must be specified. This change allows specification of GSON type adapters for decoding and encoding of JSON in apex. Issue-ID: POLICY-954 Change-Id: Ib402d4e82c4f22fa4d532c016f77fb8e7bb568d3 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-26Fix boolean constants in examplesliamfallon26-60/+60
When the checkstyle changes were made in the java code the .TRUE and .FALSE values were changed to .isTrue and .isFalse to comply with checkstyle. THis change needs to be propogated into example scripts. Issue-ID: POLICY-103 Change-Id: I419b5f398ef4f43b1b877d52bbe4ec638870f31d Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-26Add JUnit for engine serviceliamfallon14-812/+9267
Although the Apex engine service is called by the policy engine tests and the various interface tests, the test coverage on these classes is not showing up in Sonar. In any event it is better that specific JUint is done for them. Issue-ID: POLICY-1034 Change-Id: I0028c7e5e870c18649870536cf3691fce2ab689c Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-25JUnit for evaluation test model generatorliamfallon4-4/+177
Issue-ID: POLICY-1034 Change-Id: Ic8f9971d612dd5500c73f95e5cbbb786c5ad51f3 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-25Fix sonar issues in Command line editorliamfallon4-168/+258
THe Apex command line editor had issues in teh way its loops for processing commands were written. The loops are simplified in this review. Issue-ID: POLICY-1034 Change-Id: If684a57de79bd56211e1ca3e8c446bd9698666be Signed-off-by: liamfallon <liam.fallon@ericsson.com>