aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/reception-plugins/src/test/resources
AgeCommit message (Collapse)AuthorFilesLines
2018-10-09Remove properietary license from CSARliboNet5-0/+0
Remove these license from the Artifacts/Information directory which will NOT impact the test Change-Id: I3280ca902616248313fe357cfa0cda9bc254b178 Issue-ID: POLICY-1185 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-10-01Update the schema parse based on newer versionliboNet3-0/+0
the schema format of HPA requirement has been modified so that the parse needs update too based on the wiki: https://wiki.onap.org/display/DW/Specifying+HPA+ Capability+Requirements+using+TOSCA-based+VNF+Descriptors Change-Id: I48b39797e70d686ed0b9b2e7001b9a00068e76fd Issue-ID: POLICY-1160 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-09-21Adding retry logic for SDC Client in Distributionramverma1-0/+1
* SdcReceptionHandler in distribution tries to initialize & start the SDC Client when distribution framework comes up. If by any chance the SDC service is not up then currently the SdcReceptionHandler throws an exception to the distribution activator and the distribution framework goes down. And the health check fails. * This review fixes it by adding a retry mechanism in SdcReceptionHandler for all lifecycle methods of SdcClient (init, start, stop). After failure the same operation is retried again with some delay. The delay is passed as parameter from configuration json file. The minimum default value for the delay is kept as 30 seconds. * Adding SdcClientHandler timer task for performing the retries asynchronously. Change-Id: Ibb6d936fcf4872c82f87e2cd04a00583b81c92ff Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-15Adding more hpa feature support for PolicesliboNet3-0/+0
* Add hugePage feature parse * Add SRIOV feature parse * Add pciePassthrough feature parse * Add more test cases and resources Change-Id: Ib45515a26e3fdac742a631b3a13d739fd1784d2f Issue-ID: POLICY-927 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-09-13Adding policy decoder to extract file from csarramverma1-0/+0
* Adding decoder configuration parameters infrastructure to support plugin based architecture. Adding a new policy decoder after this will be just creating a new decoder class and its corresponding parameter class. * Adding a new decoder which extracts policy file from given csar. It is written in a generic way to extract file for any pdp like apex, drools. * Adding configuration parameters for the new decoder. The policy file name and policy type is passed as parameter to the decoder. * Fixing few broken package declaration in pdpx decoder tests. * Adding test cases for all code changes. Change-Id: I95e68cebce0f9747ca63b090f9b9116ce8836939 Issue-ID: POLICY-1101 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-13Adding code for dynamically generate PolicesliboNet2-0/+0
* Update sdc tosca version to 1.4.1 * Define the objects to represents the policy used by OOF/Mutlicloud/AAI etc * Integration into the distribution framework to update PdpxPolicy and add new File PolicyDecoderCsarPdpx to do decoder from CSAR * Add two Test case including 2 VNFs, each VNF maps to 1 policy, so to generate 2 polices * use @SerializedName make the variable name different with that in the out json field Change-Id: Icc7175082063db8a245bbe576085cdf5a4b51adc Issue-ID: POLICY-927 Signed-off-by: liboNet <libo.zhu@intel.com>
2018-09-11Fix all sonar issues in distributionramverma1-1/+1
* Fixing all sonar issues in distribution * Adding more test cases to improve code coverage Change-Id: I296f96b66046e25c3c462632091f40565ff75478 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-09-07Parameter Group fields must have gettersliamfallon2-7/+7
Parameter handling is changed so that all fields must have a getter following normal naming conventions. This change brings that in. Issue-ID: POLICY-1095 Change-Id: Idc61960347a67c50f33fc272dcd00ceca7553d95 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
2018-09-04Adding code for managing life cycle of SDC Clientramverma1-3/+3
* Adding init/start/stop methods in SDCReceptionHandler for managing lifecycle of SDC Client. * Adding a handler status enum to hold all the possible status values. * Adding test cases to cover code changes fully. Change-Id: Ib6f370485ff330538bfada6030c592629ed3fd1c Issue-ID: POLICY-956 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
2018-08-14Initial moduel structure for SDC handlingliboNet2-0/+52
This submission defines the initial module structure for this handling and add the IConfiguration implementation and test code, use the json format as the configuration. rename the class name to sensible one with PSSD prefix. remove static variable to make it possible for more than one subscription to SDC. improve the validate func to validate each mandatory parameters and check the int parameter's value Change-Id: I3106ad9d4535b1251eae064e803805b92378f6f1 Issue-ID: POLICY-956 Signed-off-by: liboNet <libo.zhu@intel.com>