aboutsummaryrefslogtreecommitdiffstats
path: root/appc-adapters
AgeCommit message (Collapse)AuthorFilesLines
2018-06-05Update license header in REST and SSH adapter fileJohn McClung30-60/+30
Modify license header in appc-rest-adapter, appc-rest-healthcheck-adapter and appc-ssh-adapter files to reflect 2018 changes. Change-Id: Ie4cfe6984982eff27ce8aa44c8b1df4f3434bc5f Issue-ID: APPC-968 Signed-off-by: John McClung <jm1364@att.com>
2018-06-01Unit test for ChefApiClientImplTestMichal Kabaj1-3/+15
-Add new JUnits to ChefApiClientImplTest to check if body is properly set for put/post http requests. Change-Id: Ie9ea2de7a1c68fa12815586a4f85646b06ce69a9 Issue-ID: APPC-879 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-06-01junits for NetconfClientFactoryTomasz Gwozdecki1-0/+47
-Added new test class NetconfClientFactoryTest Change-Id: Ifb8fd7ab07ad1aa9bd2ea9c6d56e708748da3217 Issue-ID: APPC-913 Signed-off-by: Tomasz Gwozdecki <tomasz.gwozdecki@nokia.com>
2018-06-01Continue removing ECOMP trademark from lic header.John McClung21-48/+24
Remove ECOMP trademark license header in miscellaneous files. Change-Id: I76e386462402cb959de377b56997ecf7986ffd6b Issue-ID: APPC-931 Signed-off-by: John McClung <jm1364@att.com>
2018-06-01More iaas adapter license header changesJohn McClung41-87/+42
Remove ECOMP trademark license header in iaas adapter files. Change-Id: I697b33cefd85aab4496640d9dc1e2d685eb80e53 Issue-ID: APPC-930 Signed-off-by: John McClung <jm1364@att.com>
2018-06-01Update license header in appc-netconf-adapter fileJohn McClung30-59/+29
Modify license header in appc-netconf-adapter files to reflect 2018 updates. Change-Id: I9fb8827dd010ae0d21e04dd8cfacba4112d8115b Issue-ID: APPC-960 Signed-off-by: John McClung <jm1364@att.com>
2018-05-25Fix License Header IssuesJohn McClung2-0/+40
Add License Header to files without licenses. Change-Id: Iab51b7cb82ff4415deb9b06ef38f297b7cf28b3d Issue-ID: APPC-925 Signed-off-by: John McClung <jm1364@att.com>
2018-05-25Modify iaas adapter provider files license headersJohn McClung24-46/+22
Remove ECOMP trademark license header in iaas adapter provider files. Change-Id: I04de8480f1d04bf17c36eae876cb00d91379f3e3 Issue-ID: APPC-928 Signed-off-by: John McClung <jm1364@att.com>
2018-05-25Modify dmaap adapter license headers.John McClung25-52/+27
Remove ECOMP trademark license header in dmaap adapter files. Change-Id: I3f933b757d0cdcd4743ccfd350e1f88204959b86 Issue-ID: APPC-927 Signed-off-by: John McClung <jm1364@att.com>
2018-05-23Update missing License HeadersJohn McClung11-25/+9
Add missing License Header Change-Id: I844c474d68b4d4147d55b2660a075fa5592f31df Issue-ID: APPC-923 Signed-off-by: John McClung <jm1364@att.com>
2018-05-22Increment version for new branchPatrick Brady36-36/+36
Change from version 1.3.0-SNAPSHOT to 1.4.0-SNAPSHOT and update version file. Change-Id: I6b54c3e3b97c3ef0a554fb173d0dd261ca2107d3 Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-916
2018-04-27Fixes for Chef Adapter bundleWonnell, Skip (kw5258)9-62/+116
Programatically configure values for truststore and password when initializing the HttpClient. Update post and put methods to set entity Add organization into request URI Restore log messages to original values Issue-ID: APPC-868 Change-Id: Ia0fdf13fcb1e3ad91a4d2c5ce704523562191379 Signed-off-by: Wonnell, Skip (kw5258) <kw5258@att.com>
2018-04-25Possible fix for event listenerPatrick Brady5-51/+16
Change-Id: Ie2eaf7f3d02bdd0b8adae964d3abf905781f996f Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-859
2018-04-25ChefAdapterImpl junitsTomasz Gwozdecki2-8/+58
-Added junit tests for fetchResults method -Support for Michal Kabaj as part of APPC-437 Change-Id: I3219a5ec0ffd530338ce364f608a9706d5a92c03 Issue-ID: APPC-858 Signed-off-by: Tomasz Gwozdecki <tomasz.gwozdecki@nokia.com>
2018-04-11Add junit coverage to Constants classZihmin Hoover1-0/+61
Introduce junit-tests for Constants class Change-Id: Ic33aa704f0ca19d81f32a013cd0a98d52433172c Issue-ID: APPC-844 Signed-off-by: Zihmin Hoover <zh4590@att.com>
2018-04-11Replace deleted importPatrick Brady1-1/+1
Change-Id: Ie6a414af459943f84293d15a7c22813832b4ae53 Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-403
2018-04-11ODL Upgrade Method 2Patrick Brady18-111/+49
Changes necessary to support upgrade to ODL Nitrogen, while continuing to use Karaf 3 style features Change-Id: I2edf619e0b889420c32793b958c0926b0311e71d Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-403
2018-04-09Enhance DMaaP Adapter ConfigurationRyan Young11-102/+814
Change-Id: I5385cf2710fc33a85da9a67d5f4d31dce1e460aa Signed-off-by: Ryan Young <ry303t@att.com> Issue-ID: APPC-658
2018-04-09Unit test for EventMessage.javaamshegokar1-0/+68
Unit test for EventMessage.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-message-adapter-api%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Fmessage%2Fevent%2FEventMessage.java Change-Id: If6a84cb1de99e719c6b286559bf899da349b4a57 Issue-ID: APPC-823 Signed-off-by: amshegokar <AS00500801@techmahindra.com>
2018-04-06ChefAdapterImpl junitsMichal Kabaj1-0/+40
-Add new JUnits to ChefAdapterImplVNFCOperationsTest Change-Id: Idd4cd456d6409a499e569c7175d97642fc3607d2 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-04-04Unit test for ProviderOperationFactorykurczews1-0/+195
Change-Id: I239784f5acc6647e1ed4f2962de4504901b62108 Issue-ID: APPC-828 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
2018-04-03Fix junit-test robustness for RequestContext classIrwin Dunietz1-0/+6
Alter a junit test for a RequestContext class to succeed more reliably Change-Id: I93f3ffdb846aca1daaa690e4c6b4a822c514a88b Issue-ID: APPC-826 Signed-off-by: Irwin Dunietz <id1681@att.com>
2018-04-03Add junit tests RequestFailedExceptionTest classMei Su1-0/+123
Add junit-tests RequestFailedExceptionTest class Issue-ID: APPC-825 Change-Id: I54b46f6e3025f89bbd52017248c408641095fe46 Signed-off-by: Mei Su <ms6523@att.com>
2018-04-03Add junit coverage for 2 RequestContext classesIrwin Dunietz2-0/+357
Introduce junit-tests for 2 similar RequestContext classes Change-Id: If8a80e983c24214eccd16f8ad7432e98de61d528 Issue-ID: APPC-824 Signed-off-by: Irwin Dunietz <id1681@att.com>
2018-04-03Unit test for RequestFailedException.javaamshegokar1-0/+133
Unit test for RequestFailedException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-rest-healthcheck-adapter-bundle%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2FrestHealthcheck%2Fimpl%2FRequestFailedException.java Change-Id: I7626b968a757d2dd6c99500fbae7a6150a7a613e Issue-ID: APPC-818 Signed-off-by: amshegokar <AS00500801@techmahindra.com>
2018-03-29Unit test for RequestFailedException.javashubhada1-0/+132
Unit test for RequestFailedException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-rest-healthcheck-adapter-bundle%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2FrestHealthcheck%2Fimpl%2FRequestFailedException.java Change-Id: Ife89776181fe803d4d02feb7909bc450b6b0e9ed Issue-ID: APPC-810 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-28Add org.w3c.* to import-packageYOUNG1-1/+1
Adding org.w3c.* to import package to resolve exception caused by org.w3c.dom.Node not found Change-Id: If130d4310e67759c9257c7ced6f14a258376233d Issue-ID: APPC-431 Signed-off-by: Ryan Young <ry303t@att.com>
2018-03-27Test Coverage for MessageService.javaamshegokar1-0/+49
Test Coverage for MessageService.java Sonar Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-message-adapter-factory%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Ffactory%2FMessageService.java Change-Id: I3a7314dd1e4a35baa4430b5e90afa979014f95c4 Issue-ID: APPC-795 Signed-off-by: amshegokar <AS00500801@techmahindra.com>
2018-03-26ChefAdapterImpl junitsMichal Kabaj2-4/+77
-Add new JUnits to ChefAdapterImplVNFCOperationsTest -remove unused JSONException catch clause from ChefAdapterImpl, when there is no jackson lib used Change-Id: I96b8d6155ca13087b697a19e1fcbba2ee82a8291 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-26Coverage testamshegokar2-0/+156
Unit Test Coverage for: 1) NetconfConnectionDetails.java 2) NetconfClientType.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-netconf-adapter-bundle%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Fnetconf Change-Id: I161d7bfe5e780c7c686ae014d87208e3da36b3cd Issue-ID: APPC-780 Signed-off-by: amshegokar <AS00500801@techmahindra.com>
2018-03-26Test Coverageamshegokar2-0/+128
Unit test for:org/onap/appc/adapter/netconf/exception classes 1. DataAccessException.java 2. NetconfDAOException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-netconf-adapter-bundle%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Fnetconf%2Fexception Change-Id: I9b02c0ddc01b4327135ccc754a6466105b1e18ff Issue-ID: APPC-779 Signed-off-by: amshegokar <AS00500801@techmahindra.com>
2018-03-23ChefAdapterImpl cleanupMichal Kabaj2-301/+24
- Switched usage of RequestContext class for wrapping the SvcLogicContext to using the SvcLogicContext directly - Removed unused RequestContext class Change-Id: I7376e3d6f5602887cf5a25f1f90ff45805c620b2 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-23Unit test coverageamshegokar1-0/+34
Unit test coverage for Constants.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-iaas-adapter-bundle%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Futils%2FConstants.java Change-Id: Ied122a1838111897079243f0e444a9eef1b2f162 Issue-ID: APPC-778 Signed-off-by: amshegokar <AS00500801@techmahindra.com>
2018-03-23ChefAdapterImpl junitsMichal Kabaj1-7/+110
Add new JUnits to ChefAdapterImplVNFCOperationsTest Change-Id: I243b2f46fdb75ad3c689b7875361fb9a654eaf60 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-22Corrected condition to pick regionBalaji, Ramya (rb111y)1-1/+1
Fixed condition so that region can be determined correctly Issue-ID: APPC-776 Change-Id: Iaf57a4face50d99a56cd4b85c0a318d34632a1e8 Signed-off-by: Balaji, Ramya (rb111y) <rb111y@att.com>
2018-03-22ChefAdapterImpl junitsMichal Kabaj2-29/+209
- Added new Junit class ChefAdapterImplVNFCOperationsTest - Added unit tests for method vnfcEnvironment - Small refactor to for exception handling in vnfcEnvironment method to improve readability and avoid catching and rethrowing same exception Change-Id: I58a43390ff45598f6d17da48eed3620667008cb7 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-22Bugfixes for error handling while attaching volumeModaboina, Kusumakumari (km583p)1-29/+88
Change-Id: I103709186eff4fc9e42038b2e1113b010b822528 Issue-ID: APPC-761 Signed-off-by: Modaboina, Kusumakumari (km583p) <km583p@us.att.com>
2018-03-21bugfix for error handling while detaching volumesModaboina, Kusumakumari (km583p)3-487/+533
Change-Id: I96f7d017a63b0741d87666f4608356567932ff77 Issue-ID: APPC-762 Signed-off-by: Modaboina, Kusumakumari (km583p) <km583p@us.att.com>
2018-03-20ChefAdapterImpl JunitsMichal Kabaj2-20/+138
- Added new Unit tests for ChefAdapterImpl checkPushJob method to class ChefAdapterImplJobPusherTest - Added param check in implementation method - Small refactor of nested conditions for improved readability Change-Id: Id65b897535874eea6aafda66b7ac227832446cf4 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-20Unit test for MessageDestination.javashubhada1-0/+39
Unit test for MessageDestination.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-message-adapter-api%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Fmessage%2FMessageDestination.java Change-Id: I17032a622571ce6ed6e6454967edabc2f2ef2d33 Issue-ID: APPC-764 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-19Unit tests for appc-ssh-adapter-api classesshubhada2-0/+110
Unit Tests for: 1. SshDataAccessException.java 2. SshException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-ssh-adapter-api%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Fssh Change-Id: I7c927a5319143e5df051d008f8f5dbb546699b99 Issue-ID: APPC-759 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-16ChefAdapterImpl JunitsMichal Kabaj3-11/+135
-Added new Unit tests for ChefAdapterImpl pushJob method -Added new Junit class ChefAdapterImplJobPusher -Some minor construction refactor in other junits Change-Id: Id6fbcba2c5f5e11bfad2c7dccf6c06f777756a47 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-16ChefAdapterImpl- checkInfo junitsTomasz Gwozdecki1-1/+44
-Added junit tests for checkInfo method to verify if input params are present -Support for Michal Kabaj as part of APPC-437 Change-Id: I29758f29f32354439ea0471e1afa3df6bb8184b9 Issue-ID: APPC-437 Signed-off-by: Tomasz Gwozdecki <tomasz.gwozdecki@nokia.com>
2018-03-15Add Junit for ConnectionDetails classNeha Sood1-0/+47
Change-Id: Ie0c7348583d6e99397374602c0b2cb804cda8d85 Issue-ID: APPC-734 Signed-off-by: Neha Sood <ns189k@att.com>
2018-03-14Unit test for SshConnectionDetails.javaPatrick Brady2-42/+110
Unit test for SshConnectionDetails.java Sonar Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-ssh-adapter-api%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Fssh%2FSshConnectionDetails.java Change-Id: I0be7e83bac3be615a664f3c1089dae299c8d3858 Issue-ID: APPC-715 Signed-off-by: amshegokar <AS00500801@techmahindra.com> Signed-off-by: Patrick Brady <pb071s@att.com>
2018-03-13Coverage for org.onap.appc.adapter.ssh classesamshegokar3-14/+168
Coverage for org.onap.appc.adapter.ssh classes Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-ssh-adapter-tests%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Fssh Change-Id: Icd1dde27c8588f217b6cca83f1cde3a8b24a41c3 Issue-ID: APPC-725 Signed-off-by: amshegokar<AS00500801@techmahindra.com>
2018-03-13ChefAdapterImpl JunitsMichal Kabaj5-170/+85
-Added new Unit tests for ChefAdapterImpl#trigger method -Refactored ChefAdapterFactory to allow mock injection -Added new create() method to ChefApiClientFactory which does not set any Chef specific headers for the purpose of trigger method -Cleaned up the trigger method - simplified usage, removed useless doFailure method and inlined its logic and unified HttClient usage -> HttpClient is not used directly but through existing ChefApiClient -removed redundant TestChefAdapterImpl tests which have already been rewritten Change-Id: I830d203877224aa2c5e1b0dff39d1171f1f2f0ef Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-12Decouple ChefApiClientImpl from header creationMichal Kabaj4-21/+42
Introduce new FunctionalInterface HttpHeaderFactory to allow customization of http header providers when creating ChefApiClientImpl using ChefApiClientFactory This allows for better encapsulation of header specific values such as: userId,organizations,pemPath. Change-Id: Iec2c7cff8e664a18e15d7e973920152fdb158c98 Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-09ChefAdapterImpl JUnitsMichal Kabaj10-36/+316
-Added unit tests for chefXXX methods - extracted new test class -Moved privateKeyCheck method to new class PrivateKeyChecker + JUnits -New Factory class ChefAdapterFactory for ChefAdapterImpl construction -Fixed potential bug with wrong String being assigned in iniSvcLogic method Change-Id: I27badfd01bfaa807b8ecb9b4a4c13e7f026e34af Issue-ID: APPC-437 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
2018-03-08upgrade bcprov to 1.56Taka Cho2-4/+4
there are two versions: 1.55 and 1.47 to be upgraded to 1.56 Change-Id: Ib12c5798e4a53b2c75be448f0e855d61bf168a38 Issue-ID: APPC-708 Signed-off-by: Taka Cho <tc012c@att.com>