summaryrefslogtreecommitdiffstats
path: root/adapters/mso-openstack-adapters/src/test
AgeCommit message (Collapse)AuthorFilesLines
2021-03-01remove unused endpoints from source codeBOSLET, CORY5-430/+0
Removed unused endpoints from source code Removed unused jackson mapper configuration Issue-ID: SO-3557 Signed-off-by: AT&T Open Source <g22940@att.com> Change-Id: I32df4e49f5adf8cade8d963492495975fc0f11b2
2021-01-28force not null with default valuesBenjamin, Max (mb388a)1-4/+4
force not null with default values update JUnit test setting default value update NULL fields before altering column sync beans with flyway changes updating test schema.sql files Issue-ID: SO-3494 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I53f000531cfb653a20bfdfae274622553420cdc8
2021-01-06Changed the task to capture the outputs on pollingBenjamin, Max (mb388a)1-2/+3
Changed the task to capture the outputs on polling Issue-ID: SO-3465 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I7ccbd90cd560e1616d2b7d59a4681874ddf8a351
2021-01-05Use the timeout from the heat templates forBoslet, Cory1-7/+9
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-08added relationship from vserver to vnfKalkere Ramesh, Sharan1-3/+3
Issue-ID: SO-3414 Change-Id: I51caf2dfc182c3c03767ae35e0ada20af9cab47b Signed-off-by: Kalkere Ramesh, Sharan <sk720x@att.com>
2020-11-09Merge "do not throw an exception when no relationship exists"Steve Smokowski4-8/+20
2020-11-08do not throw an exception when no relationship existsKalkere Ramesh, Sharan (sk720x)4-8/+20
from vfmodule to vnfc Issue-ID: SO-3369 Change-Id: Ia137384cbaa04fa014f865dd0eba14a7eca9605e Signed-off-by: Kalkere Ramesh, Sharan (sk720x) <sk720x@att.com>
2020-11-07Merge "us mso workaround to skip shared vip ports"Seshu Kumar M1-0/+39
2020-11-06Remove unnecessary vserver--generic-vnf relation from SO-OpenStack-Adapter ↵marcinrzepeckiwroc1-3/+5
implementation Issue-ID: SO-3363 Signed-off-by: marcinrzepeckiwroc <marcin.rzepecki@nokia.com> Change-Id: I662eba1cafab6778247d491e8f4f45aefe800627
2020-11-03put back logic to create VNFC edgesSmokowski, Steven1-8/+80
put back logic to create VNFC edges Consolidated similiar sim scenrios into 1 and updated robots properties Support macro scerios for vnfc to vfmodule relationship. Issue-ID: SO-3361 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Idcb9bb179b4dc3c16bc97939c8260462dd27ca4e
2020-11-03us mso workaround to skip shared vip portsSmokowski, Steven1-0/+39
Update to filter out cases where ports have no server Issue-ID: SO-3359 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I7400abde420db754716906d7f3a6954734435495
2020-11-03Merge "verify port profile exists for multicast flag"Steve Smokowski1-0/+40
2020-10-22verify port profile exists for multicast flagMnushkin, Dmitry1-0/+40
verify port profile exists for multicast flag Issue-ID: SO-3335 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ic975b16dd9728dd731118c0e48697e550ed0eb5d
2020-10-22Update to not create VNFC relationshipSmokowski, Steven1-3/+3
Update to not create VNFC relationship remove VNFC edge, AAI will automatically create this Move edge creation to sim, as AAI other ms does it update to search to make edge to vserver Issue-ID: SO-3329 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I70e37f98c8c7b9e9859149f326cfde76fa408f7c
2020-10-21Removed audit codeBoslet, Cory6-1101/+4
Updated to error on inventory therefore no longer need audit Removed the audit UT test from source Removed the audit from the task services. Updated the BB unit test to not have audit anymore Changed robots to fix for create inventory. Delete the vnfc by id after each robot Create pserver in aai that ci is using Continue to fix robot test for heat bridge Continue to fix robots due to heatbridge enabled More changes to simulator to account for heatbridge for replace scenrios Added get resources scenrio for heatbridge Added header and added version to simulator Added correct response file and header for base module id Fixed the remaining failing service instance robots Changed to get tenant id else where when null Fixed the macro robots for heatbridge and getting resources Added scenrios that are still needed for heatbridge Added to connect when already exist and missing relationships Updated unit test to account for change to code. Issue-ID: SO-3316 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I8cefebd91261fcb8ff03d582afb48517dd34625a
2020-10-20Update code to filter null or empty imagesSmokowski, Steven1-0/+30
Update code to filter null or empty images Issue-ID: SO-3314 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I9b8ad005b96df0006f723bb54bbfe475e5892d2c
2020-10-01Reworked how we find the sriov pf related link.Boslet, Cory2-11/+37
Reworked how we find the sriov pf related link. Removed unneccessary line of code put in for test Issue-ID: SO-3282 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Idfa54f4c9b3332ba325b4cc9fd0fc974c4e76d4f
2020-10-01Merge "Only process ovs when its ovs and not sriov."Steve Smokowski1-0/+60
2020-09-29Only process ovs when its ovs and not sriov.Boslet, Cory1-0/+60
Only process ovs when its ovs and not sriov. Issue-ID: SO-3279 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I79c0becb118fd64ee520c3ba789748de08890984
2020-09-29Changed to use the physical network nameBoslet, Cory1-1/+1
Changed to use the physical network name and refactor/fixes WIP Fixed the failing junit test as a result of change Issue-ID: SO-3278 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I34c0d5978c914260ca6300948a697c0c7ab7fdfa
2020-09-23removed references to AAIObjectTypeBenjamin, Max3-48/+56
removed references to AAIObjectType and AAIObjectPlurals additional corrections for removal of aai object type corrected additional java files updated groovy files to match aai fluent builder style Issue-ID: SO-3259 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ifdf12fcacb34cc648548eb18b638afd06dad67a9
2020-09-20Heatbridge UpdatesSmokowski, Steven1-85/+15
Updated heatbridge to work with upcoming A&AI changes Issue-ID: SO-3257 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I6b58c8e2a920e715d303aeda5137952f667c3133
2020-09-03Added to set is floating to false in aai.Boslet, Cory1-0/+57
Added to set is floating to false in aai. Added to the existing junit test cases. Added a unit test to test the ip method. Issue-ID: SO-3217 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I342f8a5b04299330d9b90d0da4421017db3e5e0e
2020-08-19Need to create the ipv6 address which was missing.Boslet, Cory1-1/+14
Need to create the ipv6 address which was missing. forgot to remove not needed line of code Updated junits to pass on jenkins. Updated unit test to test ipv6 ips. Issue-ID: SO-3186 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I58c643c0a4680fead44f84cb6ba2eca95d04cb72
2020-08-04[SO] heatbridge implemention to populate AAI with openstack provider ↵Munir Ahmad1-0/+66
network/subnet Issue-ID: SO-3109 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca> Change-Id: Ibb8f5b994072b797783dba7ce412baecb9b64174
2020-07-16Updated code to create the child objectsBoslet, Cory1-2/+2
Updated code to create the child objects seperately Changed mockito arg matcher to look for optional classes Issue-ID: SO-3070 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I7645a9837a9f07e6c505a92219e7836d80e567ce
2020-07-14Create vserver if not existsSmokowski, Steven1-3/+2
Create vserver if not exists Fix broken unit tests on vserver Issue-ID: SO-3065 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I9ef64045443032083b49d71b38d35d30e85ae50a
2020-07-14Merge "Changed certain external task to use the long"Steve Smokowski1-2/+0
2020-07-10Changed certain external task to use the longBoslet, Cory1-2/+0
Changed certain external task to use the long lock time. Issue-ID: SO-3049 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: If074ee1467fe1bac79892a885c4efddf87415b8a
2020-07-10Began fixing issues with heat bridgeBoslet, Cory1-4/+6
Began fixing issues with heat bridge WIP. Removed duplicate method call from heat bridge Added to populate ipv4 prefix lendth with subnet prefix Fixed remaining issues with heat bridge code. Change sriov pf to be sriov vf in aai object. Issue-ID: SO-3035 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I05de776126b2442268d98d87176855f1080109bd
2020-07-07Added checks on the cloud owner to determine ifBoslet, Cory1-5/+57
Added checks on the cloud owner to determine if vlans should be done, added null pointer checks, fixed and add unit test. Removed autowiring of client and removed logging Changed the default value of the cloud owner. Updated unit test to mock the new env property call Removed to make HeatBridgeImpl a spring class. Issue-ID: SO-3033 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I31cfa83bc74fe9786f220d952a78e5bf4f04bb3e
2020-07-01Removed the declarations of thrown exceptions which were a subclass od ↵marcinrzepeckiwroc1-6/+17
java.io.IOException, Added one test to cover not covered usecase, Added constant field instead of multiple literal duplication. Issue-ID: SO-1841 Signed-off-by: marcinrzepeckiwroc <marcin.rzepecki@nokia.com> Change-Id: I686df90ecb463f036687b93069f8d1341ee4e597
2020-06-09Fix Heatbridge auth for Keystone-v3Boslet, Cory1-3/+6
Fix Heatbridge auth for Keystone-v3 Issue-ID: SO-2980 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Idacce2beebde14f43817ada59fb0d593504c6bdd
2020-06-02Merge "Sonar fixes"Lukasz Muszkieta2-9/+8
2020-06-02Merge "Sonar fixes"Lukasz Muszkieta1-0/+52
2020-06-01Sonar fixesMateusz Gołuchowski2-9/+8
Changed input parameter for didCreateAuditFail. Now clients must pass object without Optional wrapper. Issue-ID: SO-1841 Change-Id: I96f7793e7e4d7871908f8dbbc1e4cd3a028498d5 Signed-off-by: Mateusz Goluchowski <mateusz.goluchowski@nokia.com>
2020-05-28Sonar fixesMateusz Goluchowski1-0/+52
Issue-ID: SO-1841 Change-Id: I96f7793e7e4d7871908f8dbbc1e4cd3a028495d5 Signed-off-by: Mateusz Goluchowski <mateusz.goluchowski@nokia.com>
2020-05-27Merge "fixed some JUnits"Steve Smokowski2-0/+9
2020-05-26fixed some JUnitsRupinder2-0/+9
Issue-ID: SO-2804 Change-Id: I6589ea250ee95160febd40c55cbfbf1a81782b60 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
2020-05-22added assert statements in JUnitsRupinder3-0/+6
Issue-ID: SO-2804 Change-Id: Iddb9630af826b719a6e55a974005e9a520401d8e Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
2020-05-18add null check for server HostName/Name/FlavorMnushkin, Dmitry1-1/+86
add null check for server HostName/Name/Flavor maven format file after build failure include relationship empty string verification add unit test to verify null/empty string update empty string validation code Issue-ID: SO-2912 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: If308469cd4ec0008a6d1a480641da890d67b4259
2020-04-29rename package for external useBenjamin, Max6-20/+19
rename package for external use Issue-ID: SO-2852 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Id883f0c847c24a260dbf8c63ce5e1330c045d6de
2020-04-17openstack inventory captureSmokowski, Steven4-58/+5
Begin heatbridge refactor initial check in of heatbridge Additional commits of heatbridge Update Heat bridge to write more AAI data Update to utlize HeatBrdige to populate AAI Adjust simulator endpoints to work again Remove not needed BB Test case, fix tc Refactor how AAI relationships are being built Issue-ID: SO-2777 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Iffccc24e18b278188c3fe98bcb1ad9685229d0a2
2020-04-16move network adapter to an external client taskBoslet, Cory6-638/+4
Began impelenting new network external task. Made the vnfAdapterTask subflow an openstack subflow, refactored infra flows and BB to call it for network functions. Fixed bugs discovered through a robot dry run, added unit test, added support for rollback network request Updated junit test files for comparison due to not polling for response Removed the no longer used network adapter rest task from bpmn tasks Removed the unused network adapter async and its beans Removed network async client package from open pojo scan Issue-ID: SO-2813 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I4c25892012cc86659ab122448ed1aca5cab91671
2020-04-15remove vnfadapterrest flow and interfaceBoslet, Cory9-1941/+2
Removed unused soap vnf adapter apis and implements Removed unused apis and implements from vnf adapter Updates and removed dead code that is never used Add back override method to the healthcheck in vnf imp Removed the vnfadapter rest v2 interface and test. Removed references to v2 rest interfaces from CXF config. Reverted change to the cxf configuration file. Removed more unused code and updated unit test to account for removed apis and v2 being removed Updated the att openstack adapter cfx to remove v2 classes Initial commit of cleaning up the vnf adapter and removing the rest subflow. Issue-ID: SO-2812 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ia093a5ac2dffd21d27a1ba74a813198b806d0786
2020-04-10Removed neutron mode codeBoslet, Cory1-150/+0
Removed neutron mode code from the network adapter impl and updated unit test Updated variable names in network adapter impl Issue-ID: SO-2803 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Id1649333001ce5756dd5a0cdf47f953299307d27
2020-03-26convert openstack to external tasksBoslet, Cory10-13/+368
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-25Merge "Ingest and Process Service Function"Steve Smokowski1-0/+1
2020-03-24Ingest and Process Service FunctionSmokowski, Steven1-0/+1
Intial commit of writing service function to AAI Update schema.sql table to pass all unit tests Update local sql to setup CI server for test Update schema to work and fix passwords Issue-ID: SO-2763 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I8c517a485841574cde849e1c4e86c3bb7b7dcf89
2020-03-19mso to add support for creating the cloud regionSmokowski, Steven1-4/+30
mso to add support for creating the cloud region Updated tag name to msoRequest on deletes. Issue-ID: SO-2753 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I80e318ce34f5938a42896398eb1a38b5c5f6e831