aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/provider/src/test/java/org/onap
AgeCommit message (Collapse)AuthorFilesLines
2022-08-05Changes to support ODL Sulfur updateDan Timoney20-695/+619
Changes to sdnc/northbound to conform to changes in OpenDaylight Sulfur release. Many of these changes are due to a change in yangtools, which no longer implements a common ancestor for its builder classes. This broke a utility method used in jUnit test cases (build()), which meant all jUnits using that method had to be updated to call each individual builder's build() method directly. Issue-ID: CCSDK-1728 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Ia82aa3decd82d873120dd643a6a0427928890f99
2021-02-04Upgrade to ODL AluminumDan Timoney14-98/+99
Updated code to conform to OpenDaylight Aluminum release. Change-Id: I3ef7daebc689a5d2e344fc7b96ce885bda77a7f8 Issue-ID: SDNC-1474 Signed-off-by: Dan Timoney <dtimoney@att.com>
2019-08-19Code changes for NeonTimoney, Dan (dt5972)1-2/+3
Code changes for Neon port Change-Id: I4dea521cabdf79e5dcefc7fa079516e2215337a4 Issue-ID: SDNC-850 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-08-13Test case added for code coverageprakash.e1-0/+16
Added test case with valid ServiceInstanceID in GetpathsegmentTopologyOperation Change-Id: I6e647d8b19ad986427ad3642926ee1d12de3ab25 Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-12Merge "New test case added for SDNC code coverage"Dan Timoney1-0/+16
2019-08-12Merge "New test case added for code coverage"Dan Timoney1-0/+12
2019-08-12Merge "New test case added for code coverage"Dan Timoney1-1/+14
2019-08-12Merge "Test case addition for sdnc code coverage"Dan Timoney1-0/+38
2019-08-12Merge "Test case addition for code coverage"Dan Timoney1-0/+36
2019-08-12New test case added for SDNC code coverageprakash.e1-0/+16
Added test case with ServiceInstanceID in GetpathsegmentTopologyOperation Change-Id: I8b612b255b1ad605ce3504e6a060247c7c08d80d Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-11New test case added for code coverageprakash.e1-0/+12
Added new test case with policyName and updateType in PolicyUpdateNotifyOperation Change-Id: Ib86dffc9d3e2c0633dcf151adf2b81c0adde3f6a Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-10Merge "Test case addition for code coverage"Dan Timoney1-0/+36
2019-08-11New test case added for code coverageprakash.e1-1/+14
Test case added in GenericConfigurationTopologyOperation with service-istance-id Change-Id: I16c104de7156b10022b6589f49625ab95b2412bf Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-10Test case addition for sdnc code coverageprakash.e1-0/+38
Test case added for GenericConfigurationTopologyOperation Change-Id: I9b7c8753bf1899a4933d69a417b475169dfa0f59 Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-10Test case addition for code coverageprakash.e1-0/+36
Added test case for PortMirrorTopologyOperation Change-Id: I36b7ecdb14d8fccaf8fcbdad79d16d0392cb81ba Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-10Test case addition for code coverageprakash.e1-0/+36
Added test case for PolicyUpdateNotifyOperation Change-Id: I1724869eee8219ab8b6f2cf7857fb2e35e74ceb3 Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-10Test case addition for code coverageprakash.e1-0/+37
Added test case for GetpathsegmentTopologyOperation Change-Id: I0dffcf5663aa14b63604a71e969b1f0aa7f9f1ce Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-09Merge "Added test case to increase SONAR coverage"Dan Timoney1-0/+79
2019-08-09Merge "Test case added for code coverage"Dan Timoney1-0/+28
2019-08-09Merge "Test case added for code coverage"Dan Timoney2-0/+61
2019-08-09Added test case to increase SONAR coverageprakash.e1-0/+79
Added new case for delete flow in ServiceTopologyOperationRPCTest Change-Id: Ic793c6ae1d67420f84445704952e8034c1df715b Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-09Test case added for code coverageprakash.e1-0/+28
Updated test MDSALUtil class by adding unused classes Issue-ID: SDNC-840 Signed-off-by: prakash.e <prakash.e@huawei.com> Change-Id: I238e9b05c2bc6169364e5f36ab6a7a59cf599deb
2019-08-09Test case added for code coverageprakash.e2-0/+61
Added new test case for GenericConfigurationTopologyOperation Change-Id: Ie660b70e109725618d2470c0af30d0f326c125b2 Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-08-09Test case addition for SONAR coverageprakash.e1-0/+39
Added new case for delete flow in PreloadVnfTopologyOperationRPCTest Change-Id: I6eac70c388523853e519626039bb6bfafc46bd77 Issue-ID: SDNC-840 Signed-off-by: Prakash.E <prakash.e@huawei.com>
2019-04-19GRA vf module id validation removedshashikanth.vh1-2/+2
vf module id validation is removed, its not mandatory to input vf module id in the requests.code is modified to return vf module id if present in the request, if not return from the DG response object. Change-Id: I077e41ab7734cc46eebe97bbcacf6d3bfc3973d1 Issue-ID: SDNC-653 Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
2019-03-11Dublin yang model updateCheung, Pat (kc1472)3-0/+235
PNF support in Dublin Change-Id: Icb2a00b37be11e1d0ac1b13940c0c8053a2a5b64 Issue-ID: SDNC-633 Signed-off-by: Cheung, Pat (kc1472) <kc1472@att.com>
2019-01-18Update sdnc/northbound to support FluorineTimoney, Dan (dt5972)1-1/+1
Update code to support OpenDaylight Fluorine changes. Change-Id: Iec7e5173076419b101d07e3321b1ca93178b6fa7 Issue-ID: SDNC-552 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2018-07-30Corrections for northboundgaurav1-1/+2
Changes includes: 1. Correcting connection-attachment topology container name. 2. Make the vnf-topology-operation implementation flexible to allow SDNC generate vnf-id for assign/create operation rather then mandating SO to provide it. Change-Id: I8958a72a4ca2064b781d246e9329436848f578ad Issue-ID: SDNC-384 Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
2018-07-26Generic resource API catch upBrandon, Bruce (bb2697)6-118/+184
Adding several Generic Resource API capabilities to Yang, provider, and tests Change-Id: I9d6a3e1494ba35b2e98370ca5b2c4ff8270981af Issue-ID: SDNC-271 Signed-off-by: Brandon, Bruce (bb2697) <bb2697@att.com>
2018-07-20Adding testcases for new allotted resourcegaurav2-0/+286
Addition of a testcase for new allotted resource "connectivity attachment" to generic-resource-api schema. Change-Id: Ibf4164132c187ce26ab253290f9f85b56d4633fd Issue-ID: SDNC-384 Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
2018-03-22GenericResourceApiProvider unit tests part 8.Jakub Dudycz3-0/+410
Added unit tests for preloadVnfTopologyOperation and preloadNetworkTopologyOperation methods Change-Id: Iae0d3cbbaf27ee351eaf556fe7ad1a1ca54fbe91 Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-22GenericResourceApiProvider unit tests part 7.Jakub Dudycz4-21/+371
Added unit tests for tunnelxconnTopologyOperation and brgTopologyOperation methods Change-Id: I2172a62bddb3f394caf93c56ed2078efc153f3ea Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-21GenericResourceApiProvider unit tests part 6.Jakub Dudycz7-122/+506
Added unit tests for securityZoneTopologyOperation method and did some fixes in other test classes. Change-Id: I61adeb21e4dca08b6cd668a6b0e70070d2f86730 Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-20GenericResourceApiProvider unit tests part 5.Jakub Dudycz2-0/+184
Added unit tests for contrailRouteTopologyOperation method Change-Id: I8519c5e1f3b8e076186f1965a8e316d0a35095ff Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-20GenericResourceApiProvider unit tests part 4.Jakub Dudycz2-0/+248
Created unit tests for vfModuleTopologyOperation method Change-Id: I3bbd576ab85e95489c3df71e369cfe061dc4c2c3 Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-20GenericResourceApiProvider unit tests part 3.Jakub Dudycz2-45/+167
Added some unit tests for networkTopologyOperation method Change-Id: Iad137467fa367c9c6fb0050be1fe07a9019b213d Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-19GenericResourceApiProvider unit tests part 2.Jakub Dudycz3-44/+259
Unit tests for vnfTopologyOperation method Change-Id: I60c73f31eb070cf554e55779d1d18631ce9b7147 Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-19GenericResourceApiProvider unit tests part 1.Jakub Dudycz3-103/+211
Unit tests for serviceTopologyOperation method Change-Id: I9a6f43fb6892b9b1d8f92544f7a90e203b0c9229 Issue-ID: SDNC-275 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2017-10-23Create a Junit test for NetworkTopologyOperationJoey Sullivan6-92/+361
This test verifies NetworkTopologyOperation RPC executes a DG then produces the expected NetworkTopologyOperationOutput and persisted the expected Service in the DataBroker. In addition util classes were updated to make it easier to write additional MDSAL test in the future. Change-Id: Icf099c0dbf4445fb5d3e5b009a8cb6e8ca7200cb Issue-ID: SDNC-101 Signed-off-by: Joey Sullivan <joey.sullivan@amdocs.com>
2017-10-19Create a Junit test for ServiceTopologyOperationJoey Sullivan7-71/+626
This test verifies ServiceTopologyOperation RPC executes a DG then produces the expected ServiceTopologyOperationOutput and persisted the expected Service in the DataBroker. In addition util classes were written to make it easier to write additional MDSAL test in the future. Change-Id: I2281099df767397b628ec2caff06f3dd49962b8b Issue-ID: SDNC-101 Signed-off-by: Joey Sullivan <joey.sullivan@amdocs.com>
2017-10-13Sonar coverage - GenericResourceApi providerbeili.zhou1-0/+205
Add Junit test case for GenericResourceApiSvcLogicServiceClient In GenericResourceApiSvcLogicServiceClient: - Fix sonarlint issues (remove un-used import and etc) - Changed tab to 4 spaces as per ONAP Java code style Issue-Id: SDNC-101 Change-Id: I789d20a749f8daa4d6b626fedef6a9bb904bae2e Signed-off-by: beili.zhou <beili.zhou@amdocs.com>
2017-10-13Fix installation issues with generic-resource-apiDan Timoney1-3/+3
Updated generic-resource-api to use Aries blueprint to install and resolved issues preventing it from installing properly in karaf. Change-Id: Iaef8bdb7a9e6aaf149a8e8a0d847197cf3f704a9 Issue-ID: SDNC-109 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-10-10Convert swagger docs to v 2Dan Timoney1-1/+7
Generate updated swagger specs and convert from swagger 1.2 to 2.0 format. Change-Id: I2d357b903596b3f2341ed5d024465e967fdaa76c Issue-ID: SDNC-72 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-09-25Improve SDNC Sonar coverageramu.n1-0/+129
Added initial test cases for GENERIC-RESOURCE-APIs Change-Id: I84a0d44210f97b9378ad75cc55919d5d404be6a2 Issue-Id: SDNC-101 Signed-off-by: Ramu N <ramu.n@huawei.com>