aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-openstack-adapters
AgeCommit message (Collapse)AuthorFilesLines
2018-11-05Springboot 2.0 upgradeBenjamin, Max (mb388a)19-430/+83
corrected typo in CloudConfiguration class removed files which should not have been merged updated gr api test cases with dynamic cloud owner updated groovy files to allow for dynamic cloud owner values moved VFModularity folder to mso-infrastructure bpmn updated GR API layer to include cloud owner added enum for default cloud owner - fixing junit test cases for using catalogDb client r2 - fixing junit test cases for using catalogDb client - Internal review comments incorporated for merging mocking into BaseTest - Internal review comments incorporated for removing direct repo calls - CLONE - Key Management Hardcoded encryption key | fixing junits - CLONE - Key Management Hardcoded encryption key Updated builder to use String.format Added exception specifically for issues interacting with requestdbadapter Updated exception message and added junit test case removed useless error handling test case from workflow changed method name and added junit coverage to errors added max retry and success status after completed bb Added case to handle when homing is not called during assign vnf. Fixing fortify issues | Implementing review comments - Key Management Hardcoded encryption key - fixing prop files - Key Management Hardcoded encryption key include network ID for completion handler Added exception handling for saving to requestdb - Adding a check on the predicate availability on the repository before firing the query with default conditions. This ensures that the api returns data only when there is an input against which it was able to form some conditions Modify UT to show that the API does not behave - adding negative test case for checkInstanceNameDuplicate added assertion that global count var was reset to 0 updated rollback to reset current sequence count var workflowaction calls rollback is complete before error workflowaction will set failure on successful rollback added check for isrollback to know which complete to call removed file which should not have been added add fabric check before running vf module a la carte Enhance UCPEMigrateService junits and add them to Jenkins build.. Added back removed test case for ManualTasks Added test case for response error Added rainy day test cases for ManualTasks revert the other change and fix the rollback logic instead fixed current sequence and updated rollback code added network cloud heat template parameters to mapper Generate a unique subRequestId for each request to APP-C. reverted conditional logic for determining fabric Fix Bean scanning so it picks up the resttemplate removed unnecessary RestTemplate Bean configurations removed file which should not have been added workflowaction calls rollback is complete before error workflowaction will set failure on successful rollback added check for isrollback to know which complete to call add fabric check before running vf module a la carte added assertion that global count var was reset to 0 updated rollback to reset current sequence count var include network ID for completion handler Revert Application.yaml change accidentally checked in Added exception handling for saving to requestdb Added case to handle when homing is not called during assign vnf. removed useless error handling test case from workflow changed method name and added junit coverage to errors ... add cloud owner variable to camunda in mapping Revert "Pass cloudOwner to subflow DoCreateVfModuleVolumeV2. Added juint test to verify variables are set in the execution. Set default cloudOwner in main module CreateVfModuleVolumeInfraV2" updated cloud configuration pojo to inlcude defaults Revert "Test to verify ServiceInstance object mapping" Test to verify ServiceInstance object mapping Pass cloudOwner to subflow DoCreateVfModuleVolumeV2. Added juint test to verify variables are set in the execution. Set default cloudOwner in main module CreateVfModuleVolumeInfraV2 Pass cloudOwner to subflow DoCreateVfModuleVolumeV2. Set default cloudOwner 'att-aic' if null per old requirements. removed references to att-aic from BBInputSetup Changes done in encryption decryption logic | used DelegateExecutionFake in Tests Changes done in encryption decryption logic | used DelegateExecutionFake in Tests Changes done in encryption decryption logic Changes done in encryption decryption logic | removed Default Auth Constant as per the comments Changes done in encryption decryption logic | Fixed UT Changes done in encryption decryption logic | Added XmlComparator assertion for verifying XML Changes done in encryption decryption logic | Reverted as per the review comment Changes done in encryption decryption logic | Fixed UTs Changes done in encryption decryption logic | Fixed UTs Changes done in encryption decryption logic | modified related encrypted properties in test yaml files Changes done in encryption decryption logic for fortify issue resolution | Fixed UTs Changes done in encryption decryption logic | modified related encrypted properties in yaml files Changes done in encryption decryption logic for fortify issue resolution. Fixed Property fetching issue in required file Added TasksBeansTest using openpojo Removed renamed test file from tasksbeans Updated imports on TasksBeansTest Added openpojo test to replace the individual tests Removed tests that provided no coverage script clean up -Update reference data to support distinct recreate and replace requests with their own sequences Update reference data to support distinct recreate and replace requests with their own sequences- Fix seq number Update reference data to support distinct recreate and replace requests with their own sequences added null check to mdc and interceptors to sdnc cxf validations can now match against multiple BBs reverted changes to BBInputSetup class added support for pre and post validation for BBs initial commit of generic building block validator converted test to no longer be a springboot test Remove cosmetic changes from BPMN files to be consistent. Remove minor changes that are not related to functionality. Rework to implement the functionality as part of Validator Combine the verification methods into one based on the flow's name; change the logging. Add verification of status of other VF Modules in the VNF for the delete/deactivate/unassign. added network-technology validation for CreateNetworkBB Sonar Issue Fix | Changes done in encryption decryption logic | Refactoring Changes done in encryption decryption logic| Used AES/GCM/NoPadding algorithm | fixed sonar issues added network-type and network-technology to mapper Continue the fight to make JUNITS work properly Update ASDC ATT to be springboot 2.0 compliant Continue to fix Unit tests for springboot 2.0 port removed autowired from workflowactionbbtaskstest fixed workflowactiontest and reduced size by 500 lines Update last of UT for mockito upgrade to 2.0 Fix more JUNITS due to mockito 2.0 upgrade Unit Test fixes to use proper mockito not spring Update Base Test to import proper packages for compile Additional Springboot 2.0 changes, for tests Additional springboot 2.0 fixes and upgrades Update Migration to be Flyway 5 Compliant Fix MSOBPMN Infrastructure common tests Fix Groovy Unit Tests in CommonBPMN Project Update MSO common BPMN to Springboot 2.0 Upgrade ASDC controller to SpringBoot 2.0 Port Openstack adapters to springboot 2.0 Fix VFC Adapter to be springboot 2 compatible Port CatalogDB adapter code to springboot 2 Port SDNC Adapter to Springboot 2.0 ... added update scripts to macro data instead of v12 sql added secondarypolicy to rainy day handling table confirm subnet map is not null in adapter response shallow copy subnet before AAI udpate update AAIObjectType to use uriTemplate extract subnet data from adapter response update correct AAIObjectType for subnet query update subnet(s) in AAI on network create completion confirm subnet map is not null in adapter response shallow copy subnet before AAI udpate update AAIObjectType to use uriTemplate extract subnet data from adapter response update correct AAIObjectType for subnet query update subnet(s) in AAI on network create completion fixed test http entity unit test to remove testing appid and transaction id added unit test for querySubsystemHealth method. also added resttemplate mock to implement healthcheck endpoint fixed unit test to use mock instead of actually goes out to health check endpoint added code to extend globalhealthcheck to include pinging other components and consolidate the responses converted test to no longer be a springboot test Remove cosmetic changes from BPMN files to be consistent. Remove minor changes that are not related to functionality. added update scripts to macro data instead of v12 sql Rework to implement the functionality as part of Validator added secondarypolicy to rainy day handling table added network-type and network-technology to mapper Combine the verification methods into one based on the flow's name; change the logging. Add verification of status of other VF Modules in the VNF for the delete/deactivate/unassign. updated how request db is set to failure in workflowA corrected code to match existing unit tests corrected tests after springboot 2 upgrade Added Required UTs in UpdateConfigurationStateTest and also fixed some UTs. added in missing parenthesis on method call added back execution variable for allotted uri addressed comments on pull request refactor AAI Rest calls from groovy files - Changes as per review comments checkin to refactor AAI rest | Fixing AAIResourceClient.update call refactor AAI Rest calls from groovy files - UpdateConfiguration refactor AAI Rest calls from groovy file - DeleteConfiguration refactor AAI Rest calls from groovy file - UpdateConfiguration refactor AAI Rest calls from groovy file - CreateConfiguration & ConfigurationUtils refactor AAI Rest calls from groovy files - Fix getARByID issue checkin to refactor AAI rest | Adding Junits checkin to refactor AAI rest | Adding few more classes checkin to refactor AAI rest of DoCreateVfModuleVolumeV2 checkin to refactor AAI rest | Update junit checkin to refactor AAI rest of DoCreateVfModuleVolumeV2 | Adding junits checkin to refactor AAI rest of DoCreateVfModuleVolumeV2 | Adding junits checkin to refactor AAI rest of DoCreateVfModuleVolumeV2.groovy ... updated in and out mapping to be generalBuildingBlock change source out mapping to generalBuildingBlock Change-Id: I122f1ebe3e15b77da0a55af201d89d47e326bf83 Issue-ID: SO-1098 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-10-19Update version to 1.4.0-SNAPSHOT for DublinRob Daugherty1-1/+1
Henceforth, the master branch will be for Dublin work. Change-Id: I269fd8f227e37afdab9c633f45488c643e5e765e Issue-ID: SO-1151 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-10-02Take generic VNF ID and vfModule ID from requestEric Multanen12-257/+290
In createVfModule (for multicloud adapter), take the generic VNF ID and vfModuleId from the Web service request. Change-Id: I092e081fef2ccc70c9b71dd6d75bb038c5663fef Issue-ID: SO-1082 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2018-10-01Fix up handling of multicloud return statusEric Multanen2-2/+7
Add calls to query vfmodule status to return when doing create and delete. Return status based on the query result and not the rest response. Put in the completion polling support on create. Change-Id: Ife50509e54e001b92f4a65ec6be2905aef99f9b5 Issue-ID: SO-1082 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2018-09-27Fix calls to multicloud adapterEric Multanen7-134/+196
Fix up the json body of the POST call to multicloud. Improve checkout of responses from multicloud calls. Change-Id: I1fb47460b54e9e5b478815d3b531d5bdbe1fe3dc Issue-ID: SO-1082 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2018-09-22Fix improper Licesnse scansseshukm1-1/+1
Change-Id: I701f1b9475e0a1f74e007c90757b70bc4502b6da Issue-ID: SO-915 Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
2018-09-20Add multicloud to VnfPluginAdapterEric Multanen5-92/+262
Adds new mode 'multicloud' to VnfPluginAdapter along with MsoMulticloudUtils and supporting code. Change-Id: I1cfdc9ba09c58315fb0bfc025854cf0122a32759 Issue-ID: SO-752 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2018-09-20Update LoggingSmokowski, Steve (ss835w)2-16/+25
Update logging to meet Casablanca Spec Change-Id: I029d6c63765992d6f091d96e2b4c34c60d30c484 Issue-ID: SO-947 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2018-09-19Removed unused import in CXFConfigurationezhil1-1/+1
Removed logger import Issue-ID: SO-1030 Change-Id: Ifd890e7319f963a3958b5d42c0e4505eacd2eb43 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-09-18Merge "fixed sonar issue in MsoNetworkAdapterAsyncImpl"Seshu Kumar M1-16/+16
2018-09-18Merge "NetworkAdapterRest.java: Fixed sonar issues"Seshu Kumar M1-10/+10
2018-09-17more stability fixesBenjamin, Max (mb388a)5-2/+125
Remove conditional to not check VNF topology add empty string verification for serviceName field Add junits for CNRCR and NtwkAdptr changes. Add search in new CollNtwkResCust tbl to get NtwkResource. - Updated test data files to include 'pre-load' flag in both VfModuleOperation and NetworkOperation json test data files. - MSO to not to send <preload>boolean</from-preload> to SDNC in network-topology-opertion and vf-module-topology-operation. Updated GeneralTopologyObjectMapper to set 'from-preload' to null so that elements with Nulls are not sent to SDNC. Updated buildNetworkInformation() and buildVfModuleInformation() methods. update flow stats to not cause bpmn flow to crash Fix headers so SDNC does not return XML Add implementation of deleteVolumeGroupResponse parsing; fix JUnits that worked by accident. Change-Id: Ia96d552d731e112505fcf739029a6fd4d0134546 Issue-ID: SO-1061 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-09-17add single transaction api to aaiclientBenjamin, Max (mb388a)1-1/+0
fixed marshalling when issuing a patch request added support for single transaction api in A&AI Change-Id: Icf755f547523cc7dbf931e198177847a5a1c6ea1 Issue-ID: SO-1060 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-09-17NetworkAdapterRest.java: Fixed sonar issuesArundathi Patil1-10/+10
Sonar Link: https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so%3Amso-openstack-adapters%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fso%2Fadapters%2Fnetwork%2FNetworkAdapterRest.java Issue-ID: SO-1049 Change-Id: I4256f09b0d89714eb2214215e7a2a2f1f1644a8b Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-17fixed sonar issue in MsoNetworkAdapterAsyncImplSandeep J1-16/+16
fixed sonar issue as detailed in SO-1050 Issue-ID: SO-1050 Change-Id: Ia93775d855c04bb5b955d17c002c55f619198298 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-16Merge "fix sonar isue in openstack adapters ObjectFactory"Byung-Woo Jun1-10/+13
2018-09-16Merge "fix sonar issue in ValetClient.java"Byung-Woo Jun1-1/+1
2018-09-16Merge "fixed sonar issue in ObjectFactory.java"Byung-Woo Jun1-21/+23
2018-09-16fix sonar isue in openstack adapters ObjectFactorySandeep J1-10/+13
fixed sonar issue as detailed in SO-1046 Issue-ID: SO-1046 Change-Id: I4064b7d7729f15afbfa07752cf5cc54e9847e861 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-16fix sonar issue in ValetClient.javaSandeep J1-1/+1
fixed sonar issue as detailed in SO-1045 Issue-ID: SO-145 Change-Id: I754a6699ea1be798cf68c08c6e5900007bf6350b Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-16fixed sonar issue in ObjectFactory.javaSandeep J1-21/+23
fixed sonar issue as detailed in SO-1043 Issue-ID: SO-1043 Change-Id: I529c1e8951b286c6f18d60aa810942d8db94df21 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-16fixed sonar issue in NetworkAdapterNotify_ServiceSandeep J1-3/+4
fixed sonae issue as detailed in SO-1042 Issue-ID: SO-1042 Change-Id: Iadb765acc0acd94c65281e212eed54d28e98ea91 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-14ObjectFactory.java: Fixed sonar issuesArundathi Patil1-20/+20
Sonar Link : https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so%3Amso-openstack-adapters%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fso%2Fadapters%2Fnetwork%2Fasync%2Fclient%2FObjectFactory.java Issue-ID: SO-1038 Change-Id: I88c7c76d266afabcbbe1ea26772b601a0238cde1 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-14Merge "Remove unused import"Chuanyu Chen1-1/+0
2018-09-11NexusIQ issue: jackson-databindRob Daugherty1-4/+0
Upgrade to fasterxml.jackson 2.8.10. This is the latest version that seems to work with our code on springboot 1.5.13.RELEASE. Change-Id: I734f84c18e53218f111fb08c959a67ee0a2e6014 Issue-ID: SO-856 Signed-off-by: Rob Daugherty <rd472p@att.com>
2018-09-11Merge "fixed sonar issue in VolumeAdapterRestV2.java"Byung-Woo Jun1-11/+16
2018-09-11Merge "fixed sonar issue in VnfAdapterRestV2.java"Byung-Woo Jun1-4/+7
2018-09-11fixed sonar issue in VolumeAdapterRestV2.javaSandeep J1-11/+16
fixed sonar issue as detailed in SO-1019 Issue-ID: SO-1019 Change-Id: I80452161d3be178fc0bc5aea3eae297ef4bc2c8c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-11fixed sonar issue in VnfAdapterRestV2.javaSandeep J1-4/+7
fixed sonar issue as detailed in SO-1018 Issue-ID: SO-1018 Change-Id: I26ed2b0184cce2670e51be7308ed2039905acf06 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-11fixed sonar issue in msoVnfCoudifyAdapterImplSandeep J1-34/+39
fixed sonar issue as detailed in SO-1017 Issue-ID: SO-1017 Change-Id: I2377cd860b583376d5f0c71b0ff244a77ee07422 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-11VfRollBack.java, CreateVnfNotification:Sonar issueArundathi Patil2-6/+1
Fixed sonar issues in vfRollBack.java and CreateVnfNotification.java Issue-ID: SO-1015 Change-Id: I8d2cc0b589fe4b4b6426c0907e5a4650303b6f9b Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-11Remove unused importSooriyaa1-1/+0
Remove unused import Issue-ID: SO-1014 Change-Id: Ieefd43d22aa9487d58cf7882fc61e12f2f9e85b4 Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
2018-09-10Merge "fixed sonar issue in MsoNetworkAdapterImpl"Byung-Woo Jun1-4/+4
2018-09-10Merge "ValetStatus.jsvs: Fixed sonar issue"Byung-Woo Jun1-5/+7
2018-09-10Merge "added generic fabric support to SO"Rob Daugherty4-0/+80
2018-09-10fixed sonar issue in MsoNetworkAdapterImplSandeep J1-4/+4
fixed sonar issue as detailed in SO-989 Issue-ID: SO-989 Change-Id: Ic4ec79847bbc5980cb6889d0ab2d766b3875faca Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-10Merge "fixed sonar issue in MsoNetworkAdapterAsyncImpl"Byung-Woo Jun1-4/+4
2018-09-10fixed sonar issue in MsoNetworkAdapterAsyncImplSandeep J1-4/+4
fixed sonar issue as detailed in SO-988 Issue-ID: SO-988 Change-Id: I66fcee5129fb749a887db2f6eab0f9fd2cdb1e36 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-10ValetStatus.jsvs: Fixed sonar issueArundathi Patil1-5/+7
Sonar-link: https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so%3Amso-openstack-adapters%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fso%2Fadapters%2Fvalet%2Fbeans%2FValetStatus.java Issue-ID: SO-1006 Change-Id: Ie7595dbc17f6e86590d153d25afe00fbae670a13 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-10GenericValeResponse.java: Fixed sonar issuesArundathi Patil1-5/+6
Sonar Link: https://sonar.onap.org/code?id=org.onap.so%3Aso&selected=org.onap.so%3Amso-openstack-adapters%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fso%2Fadapters%2Fvalet%2FGenericValetResponse.java Issue-ID: SO-1004 Change-Id: I0e17108693913302bc0485ac9e30d2c0bcaa68e6 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-09-10fixed sonar issue in VolumeAdapterRest.javaSandeep J1-12/+16
fixed sonar issue as detailed in SO-992 Issue-ID: SO-992 Change-Id: I4e222fd6b80a2dde199ad2d1e049357f64651e40 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-10Merge "fixed sonar issue in HeatRequest.java"Byung-Woo Jun1-3/+3
2018-09-10fixed sonar issue in HeatRequest.javaSandeep J1-3/+3
fixed sonar issue as detailed in SO-987 Issue-ID: SO-987 Change-Id: Ia397b3a3061c1654d59ccd154334193ccaf6d6e5 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-10fixed sonar issue in WebSecurityConfigImpl.javaSandeep J1-2/+4
fixed sonar issue as detailed in SO-986 Issue-ID: SO-986 Change-Id: Ia110b07c336c9bcf002f9dbf930042387ebc7abf Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2018-09-08added generic fabric support to SOBenjamin, Max (mb388a)4-0/+80
Fix Autoincrement of ID field in table Fix accidental removal of method Update usage of requestdb client removed unused imports in common tasks and test Fix broken branch, have unit tests pass references the Epic branch Fix broken branch from compiling committing classpath for vfc adapter cause its not going away added in the fail case for when there are no profiles removed second set of adapters in application test yml removed double adapters in request db application test added jpa repo dependency to the so bpmn folder pom add creation timestamp column to the table added in null checks for Config returned from policy switched to string in requestprocess with jenerate switched to string in requestprocess with jenerate updated aai version in common pom to 605 from 591 renamed the db scripts for flyway sync to register added endpoint to application test yml for failing test ... Change-Id: I800f837ea75d7cdff740dc3a387e4d7654cfd085 Issue-ID: SO-972 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2018-09-06Merge "Fixed Logger message in MsoNetworkAdapterAsyncImpl"Seshu Kumar M1-2/+2
2018-09-05Client LoggingSmokowski, Steve (ss835w)2-25/+24
Update Client Logging to use interceptor Move CXF to own project due to dependency hell Issue-ID: SO-947 Change-Id: I2597ff6d32231b8625b04ef63ab5e8f589e2545c Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2018-09-05Fixed Logger message in MsoNetworkAdapterAsyncImplEzhilarasi1-2/+2
Message string in the logger method has been replaced with the constant predefined already. Issue-ID: SO-976 Change-Id: I67f3da5d50ac582883249eb2ea221580a1b12576 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-09-05Merge "fixed sonar issue in TenantAdapterRest.java"Byung-Woo Jun1-12/+3
2018-09-05fixed sonar issue in ValetClient.javaSandeep J1-4/+4
fixed sonar issue as detailed in SO-980 Issue-ID: SO-980 Change-Id: If428c98c11d30b562313b97200650954fd733d82 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>