aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapter-utils
AgeCommit message (Collapse)AuthorFilesLines
2019-06-27Update failsafe dependency to 2.0.1Benjamin, Max1-7/+4
Updated calls to failsafe 2.0.1 API Change-Id: I2c86ca02d56a07262e330ee5f8f088d1a1f5b4a7 Issue-ID: SO-2057 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-18Use Regex to find the name on failure scenarioSmokowski, Steven2-27/+10
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 Benjamin5-0/+100
2019-06-14Merge "adapter client will not retry on openstack failure"Max Benjamin8-26/+32
2019-06-14fix delete stack error not propogatingSmokowski, Steven2-30/+65
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, Max5-0/+100
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, Felix8-26/+32
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 Smokowski2-5/+5
2019-06-09Update stack save to only save the params objectSmokowski, Steven2-26/+20
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, Brittany2-5/+5
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 Smokowski2-2/+2
2019-06-06Updated to use the logicalResourceIdPlummer, Brittany2-2/+2
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, Sharan2-2/+2
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-06-06Merge remote-tracking branch 'origin/dublin' into 'origin/master'Steve Smokowski3-64/+37
Change-Id: I551ea3f29a76dc99532455ea4d7e84a316f9bf38 Issue-ID: SO-1980 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2019-05-31Fix issue where request was not being updatedSmokowski, Steven4-3/+136
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, Steven13-677/+928
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, Steven15-137/+869
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-05-03Merge "Merge remote-tracking branch 'origin/dublin'"Marcus Williams1-1/+1
2019-05-03Merge remote-tracking branch 'origin/dublin'Benjamin, Max (mb388a)1-1/+1
merged dublin into master branch Change-Id: Ifb78d405611b65764fd4f01558b0e703551ed663 Issue-ID: SO-1830 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com> Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2019-05-02Merge "Removal of unused local variables. Removal of unused local variables ↵Seshu Kumar M2-17/+16
as per guidelines. Issue-ID: SO-1490"
2019-05-01Fixup handling of multicloud post responseEric Multanen2-63/+36
Make the handling of the multicloud post response more flexible. Add additional parameters that may come back. Change-Id: I0a5c7016f11dbfe832c81e2fcafc398a998b622b Issue-ID: SO-1833 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-05-01build sndc and user directives in groovyEric Multanen1-1/+1
Fill out the sdnc_directives and user_directives used by the multicloud vnf plugin adapter when invoked via the groovy path. Change-Id: Ia11680be682b38756f188c71e3e000bc21c15aa9 Issue-ID: SO-1822 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-04-29Removal of unused local variables.h003974752-17/+16
Removal of unused local variables as per guidelines. Issue-ID: SO-1490 Change-Id: I2513b2b2751d31c94d7a0d8ba29c55139856d3a4 Signed-off-by: h00397475 <hena.choudhury@huawei.com>
2019-04-28Store Cloud Request in DatabaseSmokowski, Steven2-0/+31
Store Cloud Request in Database, add to request service Add query Param to Plural to include cloud data Change-Id: If906d28d0dc9c0c804e550e2074af3d75ba46d32 Issue-ID: SO-1807 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-04-26Fix multicloud query of non-existant stackEric Multanen1-1/+1
Fix handling of Not Found status for multicloud plugin query of a workload. Change-Id: Ie33b8728bf71fbcf0eaaa6496520351404928a36 Issue-ID: SO-1821 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-04-26Merge "Define constant in place of literals Constants are declared and used ↵Seshu Kumar M3-43/+45
in place of literals Issue-ID: SO-1490"
2019-04-26Merge "Removal of unused variables and replace type specification. Removal ↵Seshu Kumar M3-12/+12
of unused local variables. Replace type specifications with diamond operator as per guide lines. Issue-ID: SO-1490"
2019-04-25Merge "Reorder modifiers. Reorder modifiers to complt with Java code ↵Seshu Kumar M3-6/+7
specifications Issue-ID: SO-1490"
2019-04-25Merge "Reorder java modifiers. Reorder modifiers to complt with Java code ↵Seshu Kumar M4-4/+4
specifications Issue-ID: SO-1490"
2019-04-25Reorder java modifiers.h003974754-4/+4
Reorder modifiers to complt with Java code specifications Issue-ID: SO-1490 Change-Id: Idcd8c8dcd2a664310007d3e965700363672cbea3 Signed-off-by: h00397475 <hena.choudhury@huawei.com>
2019-04-25Reorder modifiers.h003974753-6/+7
Reorder modifiers to complt with Java code specifications Issue-ID: SO-1490 Change-Id: Ic8adde29c0bc8b3d039e3f0f1c8837f53dd10aee Signed-off-by: h00397475 <hena.choudhury@huawei.com>
2019-04-25Removal of unused variables and replace type specification.h003974753-12/+12
Removal of unused local variables. Replace type specifications with diamond operator as per guide lines. Issue-ID: SO-1490 Change-Id: I728287427c0f6f9e8289fb0dfa8e906856c774ff Signed-off-by: h00397475 <hena.choudhury@huawei.com>
2019-04-25Define constant in place of literalsh003974753-43/+45
Constants are declared and used in place of literals Issue-ID: SO-1490 Change-Id: I8891e3aad24b29b4c951d995df0192437304d06e Signed-off-by: h00397475 <hena.choudhury@huawei.com>
2019-04-25String literal to be on the left side of string compariosion.h003974753-13/+11
String literal should be on the left side of string comparision as per guidelines. Issue-ID: SO-1490 Change-Id: I294cbbb2fe7dae9c68b7b20e9b3a0d1d75824ba0 Signed-off-by: h00397475 <hena.choudhury@huawei.com>
2019-04-17Changed constants collections to immutableWitold Ficio Kopel1-4/+3
Fix to three Sonar vulnerabilites. Changed mutable collections of constants (exposed by utility class) to immutable. Change-Id: I3b301eac20b52df72a6d1318483b7b931e750313 Issue-ID: SO-1794 Signed-off-by: Witold Ficio Kopel <w.kopel@samsung.com>
2019-04-11corrected inlucde filter for formatterBenjamin, Max (mb388a)1-146/+146
all pom.xml files now have two spaces validation is on for pom.xml files Change-Id: I424ea2e4d6a549f468792e5f90a43f3a97e6c954 Issue-ID: SO-1781 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-04-11Update multicloud plugin GET handlingEric Multanen7-33/+206
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)77-6505/+5989
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-08Query param to pull back nested stack informationBenjamin, Max (mb388a)1-3/+3
Add Query param to pull back nested stack information Change-Id: Idf83291107e2ef7e86bb2de914469b0401eda0ac Issue-ID: SO-1760 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-04-08Fixed recent Sonar blocker issuesr.bogacki1-1/+3
Fixed blockers according to Sonar analysis. Change-Id: Ib068b586cd72c1634780220ac5498e1962dee434 Issue-ID: SO-1734 Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
2019-04-06Add tenantId to multicloud request headerEric Multanen1-6/+10
The multicloud API can take the tenantId as an item in the header. Add the tenantId to the request headers of the multicloud plugin. Change-Id: I7ff11cd52eea429e0c694092b006887f13de2fda Issue-ID: SO-1446 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2019-04-05Merge "Fixed Sonar blocker issues"Steve Smokowski2-8/+27
2019-04-05Fixed Sonar blocker issuesr.bogacki2-8/+28
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 Multanen2-9/+117
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-03if audit fails write sub interface data to a aiBenjamin, Max (mb388a)1-0/+2
added logic to write sub interface information from openstack to a&ai when audit fails to find it Change-Id: I24266812dc60eb69bfd90e3e5b34113e9fd8f4f4 Issue-ID: SO-1737 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-04-02Construct multicloud infra_workload endpointEric Multanen3-12/+25
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)8-99/+158
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 Muszkieta3-21/+25
Change-Id: I7a61470291e05286cce0aa4e35c2f4068c4319fb Issue-ID: SO-1490 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>