aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapter-utils/src/test
AgeCommit message (Collapse)AuthorFilesLines
2024-07-08Upgrade SO to Java_17Sreeja Gattagouni7-12/+2
-Removal of aff and logging-filter-base dependencies. -CI build java17 branch-jdk17 version:https://gerrit.onap.org/r/c/ci-management/+/138252 Issue-ID: SO-4125 Change-ID: I58f07f888a814b999f92f8d89909b0666d0b9699 Signed-off-by: Sreeja Gattagouni <SG00744975@techmahindra.com>
2022-07-20Remove this useless eq(...) invocationGanesh2-4/+4
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: I0bf810edff3d058d5d29f2b84b7e6ae76e682ef2 Issue-ID: SO-3966
2022-07-15sonar issue, MsoMulticloudUtilsTest Use assertSame insteadGanesh1-6/+6
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: Ic931821356c77ca07b4a03a23593d3c767288520 Issue-ID: Issue-ID: SO-3966
2022-07-15sonar issue, AuthenticationMethodTest use assertNotEquals insteadGanesh1-5/+6
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: I737a0cfe04bcb2018120d897267c4fc8fb695fd2 Issue-ID: SO-3966
2022-07-12sonar issue, Use assertNotEquals insteadGanesh1-4/+3
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: If257a5d048e0305112f66b2ee1be76714eadabf2 Issue-ID: SO-3966
2022-07-12sonar issue, Use assertEquals insteadGanesh1-12/+14
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: I0729dc6a28e2da7613e014dcd1609fc6b3ef445b Issue-ID: SO-3966
2021-06-30Reducing org.reflections package loggingwaqas.ikram1-27/+27
Change-Id: I05c95912a2f7ed5fef7d76728b8a4c0a6cecca10 Issue-ID: SO-3702 Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
2021-02-16update camunda and spring to latest versionsBenjamin, Max (mb388a)3-6/+4
Updated camunda to 7.14 and updated spring boot camunda to 3.4 Started to clean up duplicate maven dependencies Issue-ID: SO-3521 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ic65b04772b91dd989e41d6b6b93872978bc4e4e2
2021-01-05Use the timeout from the heat templates forBoslet, Cory1-0/+43
Use the timeout from the heat templates for polling Removed unused imports and code from base Added to get timeout from the rest client Fixed unit test for polling to account for changes Issue-ID: SO-3397 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: If633f4f49d88eb797020b7d72c6edd0fbee0926c
2020-12-11Address openstack adapter requestdb update exceptionRamesh Parthasarathy2-12/+31
When openstack adapter updates requestdb it fails with an exception. It is being addressed here. Issue-ID: SO-3400 Signed-off-by: Ramesh Parthasarathy(rp6768)<ramesh.parthasarathy@att.com> Change-Id: I803b8a80459f04cc2c1375e12d927e404cb241cb
2020-10-01use timeout interval in minutes for poll durationMnushkin, Dmitry1-6/+19
use timeout interval in minutes for poll duration do not ignore retry test with 1 min delay rename variable and debug info for clarity Issue-ID: SO-3264 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ia3c6d789b0e93df909476e92764ccbb32d7472e7
2020-08-31deleted all cloudify support from soBenjamin, Max6-623/+0
deleted all cloudify support from so unmaintained client causing dependency issues Issue-ID: SO-3209 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I6e15ac0b9d031e13a13e0053bbe61855d725c773
2020-05-22added assert statements in JUnitsRupinder5-0/+7
Issue-ID: SO-2804 Change-Id: Iddb9630af826b719a6e55a974005e9a520401d8e Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
2020-03-26convert openstack to external tasksBoslet, Cory1-6/+4
Use external tasks to communicate with openstack adapter Will be more resilient to failures Refactored all flows to use external tasks not REST calls Rollback is now an external task Ensured backwards compatibility Issue-ID: SO-2767 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I8afdb89c688d756aed0f25f7d9a7fb898142554d
2020-03-01Add ability to build https endpoint to multicloudEric Multanen1-0/+1
Add parameter to allow https endpoint to be used for endpoint to multicloud (via msb). Change-Id: Ia3a296cab8e8676e7b39c0f56c03e18e18a0a777 Issue-ID: SO-1450 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2020-01-30- Include stack Status Reason when rollback isMerkel, Jeff1-2/+3
- Include stack Status Reason when rollback is suppressed. - Updated to format code to pass the build. Issue-ID: SO-2620 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Id9789930eaf7c47666a9401f8e3c57156c931b74
2019-10-01Improve fall out case handlingSmokowski, Steven4-23/+29
Update Openstack adapter to handle fall out cases with greater stability Issue-ID: SO-2376 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I20116cbd3b63bb29c9bf4ed99e92bd5f2b691da5
2019-08-09fix sonar issuesarada prasad sahoo1-2/+2
fix sonar issues Issue-ID: SO-1811 Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com> Change-Id: I51a9106ad99e7bb101c3d6c9a33603ac202d7cb6
2019-07-25store heat env file sent to heatGamboa, Gilbert1-1/+15
Initial commit, include heat environment info in cloud-api_requests. Updated MSOHeatUtilsTest.saveStackTest unit test to assert cloudApiRequests requestBody Issue-ID: SO-2158 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I333cae7746459917ba5e64feb07db4f710b8d99b
2019-06-18Use Regex to find the name on failure scenarioSmokowski, Steven1-15/+1
Use Regex to find the keypair name on failure scenario Change-Id: Ibf2167283d90407def7750fab4538f5443e57092 Issue-ID: SO-2037 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-15Merge "update multi stage code to accurately skip bbs"Max Benjamin1-0/+20
2019-06-14Merge "adapter client will not retry on openstack failure"Max Benjamin1-1/+3
2019-06-14fix delete stack error not propogatingSmokowski, Steven1-2/+27
Update logic to properly format rollback error messages Change-Id: I66ad4fd78758661be297810f393e6da759daa17b Issue-ID: SO-2014 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-14update multi stage code to accurately skip bbsBenjamin, Max1-0/+20
moved around classes to packages that make more sense updated license headers in java files converted MultiStage logic to FlowManipulator moved tests to new package location and fixed issues allow for custom listeners before flowsToExecute moved validation classes to listener.validation Change-Id: Ic5416812ef9c5611fe19bf9b6aa316373b110ec6 Issue-ID: SO-2021 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-14adapter client will not retry on openstack failureSangalang, Felix1-1/+3
Utilized the original util method with boolean argument. inventory audit: adapter client should not retry on openstack failures. Change-Id: Ibdcec58c662f54ccef887e74f17634baa9df2457 Issue-ID: SO-2016 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-09Merge "Switched name and id, and updated tests"Steve Smokowski1-3/+3
2019-06-09Update stack save to only save the params objectSmokowski, Steven1-23/+17
use get parameters not store entire request of stack Update stack save to only save off the params object Change-Id: I41e0e03b412e37f12d348c84a1512c9bf4403748 Issue-ID: SO-2002 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-09Switched name and id, and updated testsPlummer, Brittany1-3/+3
Switched name and id, and updated tests Change-Id: Ica8251be71d2fd9362e4f209755d80bc36ccbf66 Issue-ID: SO-2000 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-07Merge "Updated to use the logicalResourceId"Steve Smokowski1-1/+1
2019-06-06Updated to use the logicalResourceIdPlummer, Brittany1-1/+1
Updated to use the logicalResourceId instead of physicalResourceId Change-Id: I2ebc800cf7ce4b5794bece7c304ebd7d1ac92088 Issue-ID: SO-1979 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-06change the update line to update the latest stackKalkere Ramesh, Sharan1-1/+1
fix the unit test for latest stack update change the update line to update the latest stack Change-Id: I8b7f903c9f7bbae1163f1363a19f18b2803f558c Issue-ID: SO-1977 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-05-31Fix issue where request was not being updatedSmokowski, Steven2-0/+124
Fix issue where request was not being updated Change-Id: Ib4b3809797449224ac417facfaa4bf48d91a1ecb Issue-ID: SO-1966 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-05-31fix keypair conflict issue in openstack adapterSmokowski, Steven4-168/+615
Fix wiremock stubs to return proper data and url Fix copyright header issue on unit test file Fix keypair issue, clean up unit tests and logging Fix issues found in unit testing, update data Fix broken Unit tests that used invalid data Continue Refactor to support keypair failure scenario Update logic for when to auto delete a stuck keypair Change-Id: Ice5256cf0381a3b46d1c442907c0f321a1c0d006 Issue-ID: SO-1897 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-05-15store openstack request status in requestdbSmokowski, Steven1-1/+1
Openstack request status now stored in request db Change-Id: Ida8f4f613d406c2b834ab190e01d5aaf2f16dd3d Issue-ID: SO-1867 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-04-11Update multicloud plugin GET handlingEric Multanen5-14/+113
Supports multicloud API query by workload name or id. Gets workload details e.g. stack outputs, etc. To be used to fill in inputs for vfmodule that has a volume group or base module. Change-Id: If45783e82c2a209d3385be1b689a02a05baf9922 Issue-ID: SO-1445 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-04-08Replaced all tabs with spaces in java and pom.xmlBenjamin, Max (mb388a)35-1657/+1526
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-04-05Merge "Fixed Sonar blocker issues"Steve Smokowski1-2/+13
2019-04-05Fixed Sonar blocker issuesr.bogacki1-2/+14
Fixed blockers according to Sonar analysis. Added tests for fixed issues. Change-Id: I8e259147082d722961048454fae9484cc0d8b0a8 Issue-ID: SO-1734 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
2019-04-04Call multicloud aai update from mc vnf pluginEric Multanen1-6/+33
After successful vfmodule create, invoke the multicloud api to trigger update in aai. Change-Id: I3f6ceee7a8ea5f907fefcbe1a57ba35b9a666cb1 Issue-ID: SO-1444 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-04-02Construct multicloud infra_workload endpointEric Multanen2-9/+14
Use the cloudOwner and cloudRegion to construct the multicloud endpoint for the multicloud VNF plugin adapter. Use configuration to obtain the MSB IP and port number. Stop using the cloud sites catalog DB since there is only a single endpoint required talking to multicloud. Change-Id: I0e9b45a51b6e36f4782226f851e7d01de7f1b133 Issue-ID: SO-1447 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-04-01Merge "JUnit tests for MsoMulticloudUtils"Steve Smokowski1-0/+35
2019-04-01replace all fixed wiremock portsBenjamin, Max (mb388a)7-99/+140
trying to get the tests that can be threaded to pass started to remove fixed port references Change-Id: I7bfe067a8f36c908039700646571681321e9a6f5 Issue-ID: SO-1676 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-04-01JUnit tests for MsoMulticloudUtilsr.bogacki1-0/+35
Increased junit tests coverage according to Sonar analyses. Added missing tests to deleteStack, queryStack, updateVdu and deleteVdu. Change-Id: I529725cfbe9be7cbdae9a197d39cd6a426ddb688 Issue-ID: SO-1692 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
2019-03-28sonar blocker fixesLukasz Muszkieta1-0/+6
Change-Id: I7a61470291e05286cce0aa4e35c2f4068c4319fb Issue-ID: SO-1490 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2019-03-22Multicloud VNF adapter use updated multicloud APIEric Multanen2-9/+10
Update the Multicloud plugin adapter to use the the enhanced multicloud infra_workload API. Mainly involves adding the user_directives and the vf-module model IDs to the call. Change-Id: I7ab78a8a304dbd61a5743ec67bb839037861ef9d Issue-ID: SO-1446 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-03-19Add cloudOwner to VNF adapter callEric Multanen4-12/+17
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/+137
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-03-13Merge changes Id0369478,I82d8306fSteve Smokowski1-1/+1
* changes: Minior Change - Licence Statement Junit Class added for ObjectFactory.java
2019-03-08only convert object type json when StringBenjamin, Max (mb388a)2-4/+25
only convert object type json when input is a String Change-Id: I465dfe905f5d85de583b6232640dc4dc13a09c7a Issue-ID: SO-1610 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-03-07Minior Change - Licence StatementSudarshan Kumar1-1/+1
Minior Change - Licence Statement Issue-ID: SO-1576 Change-Id: Id03694789d6aa22d6e656204f875f4b5d8cd1700 Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>