aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapters-rest-interface/src/test
AgeCommit message (Collapse)AuthorFilesLines
2019-06-06Merge remote-tracking branch 'origin/dublin' into 'origin/master'Steve Smokowski1-1/+2
Change-Id: I551ea3f29a76dc99532455ea4d7e84a316f9bf38 Issue-ID: SO-1980 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2019-05-27Fix sonar for MapEntryk.kazak2-2/+25
MapEntry bug: make entry private and provide accessors MapEntry codesmell: move comment 'Required by JAXB' into empty constructor MapElements codesmell: move explanatory comment inside empty constructor MapElements codesmell: log error stacktrace MapAdapter codesmell: use entry set instead of key set for iteration JAXBMarshallingTest: add test cases to cover 100% of MapElements & other cases Change-Id: If51f1f86b5ad44b3462424e4fd73cb0eff352124 Issue-ID: SO-1811 Signed-off-by: k.kazak <k.kazak@samsung.com>
2019-04-20always convert values toString for xml marshallingBenjamin, Max (mb388a)3-3/+37
always convert values toString for xml marshalling added in null check and object mapper call Change-Id: Ie91c313dce110d53586e6773e2223d63be799a54 Issue-ID: SO-1786 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-04-08Replaced all tabs with spaces in java and pom.xmlBenjamin, Max (mb388a)18-444/+434
Added in maven plugins to enforce coding style rules Added in eclipse java formatting xml Change-Id: I3727bbf4ce8dc66abfd8ad21b6cfd0890c5d3ff0 Issue-ID: SO-1765 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-03-19Add cloudOwner to VNF adapter callEric Multanen1-1/+2
The BPMN layer has the CloudRegion which includes the CloudOwner attribute, but this is not passed to the VNF adapter layer. Calls to the Multicloud infrastructure workload need the CloudOwner as well. This patch adds CloudOwner to the VNF adapter API. While the intended usage is primarily for the multicloud adapter, it touches a log of other files - though those do not make use of it at this point. Change-Id: I88028096fbd84fc3fe5d53786c70b3c8806bb711 Issue-ID: SO-1447 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-03-13Openstack adapter can't resolve HEAT parameterBenjamin, Max (mb388a)2-0/+257
only cast to Element if value is of that type added XmlAccessorType annotations to classes map of string, object now correctly maps with jaxb Null comma delimited lists can convert to null as well Handle null values all types in input parameters map. Change-Id: Ic46ed31c05b8f8551d39b2267ae731829abfc1f0 Issue-ID: SO-1617 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-01-24bugfixes jan 24thBenjamin, Max (mb388a)1-9/+0
Fix null pointer exception when no requestParameters are specified Add configurable timer in ActivateVfModuleBB to delay call to SDNC activate - Use raw slf4j logger - use {} formatting Add configurable timer in ActivateVfModuleBB to delay call to SDNC activate - Use raw slf4j logger Add configurable timer in ActivateVfModuleBB to delay call to SDNC activate - removed unused references in test class Add configurable timer in ActivateVfModuleBB to delay call to SDNC activate Update PortGroup objects separately from the parent VCE object - restore setVariable calls back into vce object - they might be needed later. Update PortGroup objects separately from the parent VCE object - updated test class extra call to get PortGroups Update PortGroup objects separately from the parent VCE object - use PortGroup.getInterfaceRole() getter method instead of accessing field directly. Update PortGroup objects separately from the parent VCE object Added back required headers for tenant isolation. removed workflow exception from outmapping in execute Fix possible null ptr exception, fix to add braces. Default networkTechnology in Update as done in Create Fix failing junits, mapper force upper case nwtech update exception builder to properly throw exception error message supporting assign service instance a la carte as well adding in proper exception handling in network rest v1 add the unassign action to R macro data file Change-Id: Ide420514f81b8083b4c76c762c064de199624cf7 Issue-ID: SO-1424 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-09-18Upgrade to openstack libs version 1.3.0Rob Daugherty1-7/+6
Version 1.3.0 uses fasterxml.jackson. Note: several unit tests were wrong and had to be fixed. They were using a fasterxml ObjectMapper to deserialize openstack library class objects compiled with codehaus JsonProperty annotations. Consequently, the ObjectMapper could not "see" the annotations. The tests "worked" because the json was constructed wrongly to match. I have now fixed the json so that they have the true property names defined by the annotations. Change-Id: I088137ee5dd5af9cffd426610a50ae6408c5b190 Issue-ID: SO-1025 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-07-31Containerization feature of SOBenjamin, Max (mb388a)36-1837/+832
Change-Id: I95381232eeefcd247a66a5cec370a8ce1c288e18 Issue-ID: SO-670 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-03-27UT Coverage for mso-adapter-rest-interfaceAnjali Walsatwar11-0/+283
UT Coverage for mso-adapter-rest-interface. Change-Id: Ib03912c9dbcec309be2cb04cfcea7cdb9c525bbd Issue-ID: SO-369 Signed-off-by: Anjali Walsatwar <anjali.walsatwar@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+179
Improve code coverage. Change-Id: I8745d26ec9e19aa72f19157c310504d87b139543 Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+141
Improve code coverage. Change-Id: Ibbe4428fb86c720f77d040b9293dac1f81bbfb02 Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+90
Improve code coverage. Change-Id: I5cf78487c9039c5ea2e87189ba212d3ed7bb7c43 Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+48
Improve code coverage. Change-Id: If3fcc5bba139516857529350af5fe9285a39ca1b Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+48
Improve code coverage. Change-Id: I0d4e78c218dd0196bdfe570012ce8e4923fc8a1d Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21mprove code coveragesubhash kumar singh1-0/+151
Improve code coverage. Change-Id: I4995561822abeb2c34f9fa23e34853496f63d9d4 Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+86
Improve code coverage. Change-Id: I01d31b469b7df56328ec3cc76023e15b617842da Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+60
Improve code coverage. Change-Id: I268ff4bb27dce57e49190259864e4912f88cc471 Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-21Improve code coveragesubhash kumar singh1-0/+48
Improve code coverage. Change-Id: I1ccea1b6d19fa0cbc22ef52d6613d4fed4b7cc58 Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
2018-03-14AT&T 1712 and 1802 release codeRob Daugherty1-2/+2
This is code from AT&T's 1712 and 1802 releases. Change-Id: Ie1e85851e94bc66c4d9514a0226c221939531a04 Issue-ID: SO-425 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-03-13Unit test coveragesanchitap2-0/+138
Unit test coverage for 1.RequestInformation.java 2.SDNCEvent.java Sonar link: https://sonar.onap.org/code?id=org.onap.so%3Aadapters&selected=org.onap.so.adapters%3Amso-adapters-rest-interface%3Asrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fmso%2Fadapters%2Fsdncrest Change-Id: I9ed76cac33bad1739df441c8f9e0ad77d738e1d6 Issue-ID: SO-467 Signed-off-by: sanchitap <sanchita@techmahindra.com>
2018-03-12Adding JunitAS004650594-0/+230
Junit for: 1.SDNCServiceError.java 2.SDNCServiceRequest.java 3.SDNCServiceResponse.java 4.ServiceInformation.java Sonar Link: https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so.adapters%3Amso-adapters-rest-interface%3Asrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fmso%2Fadapters%2Fsdncrest Change-Id: I2a4216c509cf0164ad669d391c9af0bbe6a80f25 Issue-ID: SO-470 Signed-off-by: AS00465059 <AS00465059@techmahindra.com>
2018-03-09Revert Reduce log noise/warningsRob Daugherty3-359/+356
This reverts commit 327b17ab250b4c17cf3f91f5e4cd9bffd89f3d1e. It is seriously impeding our ability complete the promised merge of AT&T 1802 code. While I'm all for coding standards, if we are serious about using spaces instead of tabs, then I think we need to (1) agree with the community when this will happen, (2) do consistently in all files, and (3) enforce it. Change-Id: Ib9b996f6b6c7d81ac9ac95d58b0c7d8cc39675ff Issue-ID: SO-368 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-03-08Reduce log noise/warnings format to conventionsMarcus G K Williams3-356/+359
Reduce build log warnings by formatting tests to ONAP code conventions (removing tabs etc.) Issue-ID: SO-368 Change-Id: I48c6d359b83617aebeb79db4e30c1d72d31f7eec Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
2018-03-07Swap indexOf with containsMunir Ahmad1-1/+1
Change-Id: I609d307acf504ea7ff25ed3327a3d4e0e4686755 Issue-ID: SO-437 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
2018-01-10refactoring - adding junitLukasz Muszkieta3-53/+57
Change-Id: I91ba9dafa40df25d1ca1aae5a7dce11e0afb71da Issue-ID: SO-360 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2017-12-28refactoring - adding junit coverageLukasz Muszkieta2-1042/+60
Change-Id: I712afd8ff4e403829ee51b87d76ed38dda027ace Issue-ID: SO-360 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2017-10-08For UT CoverageSeshu-Kumar-M2-33/+1072
SO-191 Change-Id: Iaa800bbe6bc65672c53adf3f432362c57b19e5d7 Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
2017-10-07Code coverage for SO adaptersSeshu-Kumar-M1-0/+504
IssueId: SO-191 Change-Id: I720e58a0ce058f4aec0b4c04b45ac88963a2c3b2 Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
2017-09-081710 Rebase - Second AttemptArthur Martella118-14320/+0
This commit rebases changes from openecomp-mso/internal-staging-1710 up to and including this codecloud commit: 54483fc6606ddb1591a2e9da61bff8712325f924 Wed Sep 6 18:12:56 2017 -0400 Rebasing was done on a branch on top of this commit in so/master in ONAP: 93fbdfbe46104f8859d4754040f979cb7997c157 Thu Sep 7 16:42:59 2017 +0000 Change-Id: I4ad9abf40da32bf5bdca43e868b8fa2dbcd9dc59 Issue-id: SO-107 Signed-off-by: Arthur Martella <amartell@research.att.com>
2017-05-03[MSO-8] Remove files that crash the commonBPMNDeterme, Sebastien (sd378r)8-1571/+0
Some files in commonBPMN have been removed as they prevent the war to be successfully deployed on Jboss + Remove rest interfaces files for catalog that should not be there anymore Change-Id: Iaf83f8b60610624e160feac8a96b7eaed7f161d1 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-04-11[MSO-8] Update the maven dependencyxg353y24-534/+3251
Update the maven depenency for sdc-distribution-client to cooperate with the sdc changes. Change-Id: I2da936e5c40cb68c7181bb78307192dd5655b5dc Signed-off-by: xg353y <xg353y@intl.att.com>
2017-01-31Initial OpenECOMP MSO commitChrisC106-0/+13174
Change-Id: Ia6a7574859480717402cc2f22534d9973a78fa6d Signed-off-by: ChrisC <cc697w@intl.att.com>