summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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-23Add Junit coverage for ActionIdentifier classNeha Sood1-0/+91
Introduce junit tests for ActionIdentifier class Change-Id: If14abe7b165d310d693d0d3ea04b563c0b68edd4 Issue-ID: APPC-777 Signed-off-by: Neha Sood <ns189k@att.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-22Change in DG for the Audit and the SyncSonali Das1-1124/+1211
Issue-ID: APPC-735 Change-Id: I4e07b07d476b1353388e51ce3b41d245b99c4bb7 Signed-off-by: Sonali Das <sd394g@att.com>
2018-03-22Split sequence generation to classesskurczews21-436/+1039
* Delegate original logic to separate clasess * Introduce InputParamsCollector * Introduce CapabilitiesDataExtractor * Add coverage for changes Change-Id: Ibb35dfb67306f789950c3b77362c5d79a3b6da63 Issue-ID: APPC-440 Signed-off-by: kurczews <krzysztof.kurczewski@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-22EventHandlerImpl unit testsJakub Dudycz1-30/+103
Improved code coverage. Change-Id: Iee626e206b1fc2ef1047fc4d50b030319afe0403 Issue-ID: APPC-753 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.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)3-32/+99
Change-Id: I103709186eff4fc9e42038b2e1113b010b822528 Issue-ID: APPC-761 Signed-off-by: Modaboina, Kusumakumari (km583p) <km583p@us.att.com>
2018-03-21LCM package test classes refactorJakub Dudycz10-154/+115
Extracted some methods and fields to util class Change-Id: If2f1f617b53ebfb0cad8e350447aff2177784319 Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-21missing a $ in appc-directed-graph pomTaka Cho1-1/+1
Change-Id: I51eaa20c5db47c50e7cc8ffc9f53d7f01bc54c33 Issue-ID: APPC-774 Signed-off-by: Taka Cho <tc012c@att.com>
2018-03-21Add junit coverage to request handler exceptionsLori Keighron7-0/+263
Introduce 7 more junit-test files: DGWorkflowNotFoundExceptionTest.java LCMOperationsDisabledExceptionTest.java MultipleRecordsRetrievedExceptionTest.java NoRecordsRetrievedExceptionTest.java RequestValidationExceptionTest.java VNFNotFoundExceptionTest.java WorkflowNotFoundExceptionTest.java Issue-ID: APPC-773 Change-Id: I2e962a9614e3b17d77d2685e1055322531d832a1 Signed-off-by: Lori Keighron <lk2924@att.com>
2018-03-21GenericProviderOperationsRequestFormatter junitsJakub Dudycz1-0/+99
Improved code coverage. Change-Id: I8914eae1327c15339034aa0d6905b36d7a252171 Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-21ProviderOperations unit testsJakub Dudycz3-66/+195
Improved code coverage. Change-Id: I04d0afe9799cc9bce5111173031ba8f9baa3e409 Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.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-21Unit test for YANGGenerationException.javashubhada1-0/+46
Unit test for YANGGenerationException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-yang-generator%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fyang%2Fexception%2FYANGGenerationException.java Change-Id: Ic23b9d863da6981090feeaad79cd1afa895b8e24 Issue-ID: APPC-772 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-21Unit Test Coverageshubhada2-0/+95
Unit Test Coverage for: 1.RequestHandlerInput.java 2.RequestHandlerOutput.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-request-handler-api Change-Id: I07e6be04fbe4958cd98cb0313e672e2a0098856e Issue-ID: APPC-771 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-21Unit Test Coverageshubhada5-0/+244
Unit Tests for: 1. Constants.java 2. DataReaderException.java 3. DgResolverException.java 4. FlowKey.java 5. VnfExecutionInternalException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-dg-common%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fdg%2Fcommon%2Fimpl Change-Id: Ib3839ce2eb44b6f2e8b530696f4e4354e61df3d4 Issue-ID: APPC-756 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-21Unit Test Coverageshubhada2-0/+127
Unit test Coverage for: 1. AppcClientBusinessException.java 2. AppcClientInternalException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc.client%3Aclient-kit%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fclient%2Flcm%2Fexceptions Change-Id: Ib06721b86b985400f521811ddd5c4f3278ee69c3 Issue-ID: APPC-768 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-20Add junits to request-handler-exception classesLori Keighron3-0/+119
Introduce junit-tests for 3 request-handler-excetion classses Issue-ID: APPC-769 Change-Id: I49f45ba50adccbfcc9725a7e458054e19f0c5efd Signed-off-by: Lori Keighron <lk2924@att.com>
2018-03-20Re-add public declarationPatrick Brady1-1/+1
The public declaration of setDbLibService was removed as part of this (https://gerrit.onap.org/r/#/c/35763/) commit. This caused a failure in karaf and the appc-common bundle failed to come up. This commit re-adds public. Change-Id: Ia6fa5d950b17e4f440a1243d071c90eedc9be818 Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: APPC-731
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-20Unit Test Coverageshubhada1-0/+35
Unit test coverage for InvalidRequestException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc.client%3Aclient-simulator%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fsimulator%2Fclient%2Fimpl%2FInvalidRequestException.java Change-Id: I282481303657a4ede2132d04ebe45ab9b18589d7 Issue-ID: APPC-765 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-20Unit Test Coverageshubhada1-0/+63
Unit Test Coverage for AppcClientException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc.client%3Aclient-kit%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fclient%2Flcm%2Fexceptions%2FAppcClientException.java Change-Id: I70eb5b92f6c15b8f67a5e179be58d6f4f2565c47 Issue-ID: APPC-767 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-19Added junit coverage to CoreException classLori Keighron1-0/+55
Introduce junit-tests for CoreException class Issue-ID: APPC-752 Change-Id: Ic5c8c2c83ce99d488e9e79a8fb72e7ad5fcf2ad3 Signed-off-by: Lori Keighron <lk2924@att.com>
2018-03-19Code changes to fix ExceptionBalaji, Ramya (rb111y)4-6/+94
Reverted changes to method name in Transaction.java to getuId() as this caused incorrect attributes to be added to the generated JSON. Added unit test to ensure this works as expected in the future. Issue-ID: APPC-760 Change-Id: I07adcda0b5f04bd00efc113b94c68f48af13ad78 Signed-off-by: Balaji, Ramya (rb111y) <rb111y@att.com>
2018-03-19Unit Test Coverageamshegokar6-1/+248
Unit Tests for APPC Dispatcher Common - Domain Model Lib classes Part:2 1.ActionLevel.java 2.RequestModes.java 3.RequestStatus.java 4.ExternalActionStatus.java 5.VNFOperation.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Adomain-model-lib%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fdomainmodel%2Flcm Change-Id: I8f870e43d6f847cd9800a6178e1020ba26f0e211 Issue-ID: APPC-749 Signed-off-by: amshegokar <AS00500801@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-19Unit test for DependencyTypes.javashubhada1-0/+50
Unit test for DependencyTypes.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-dg-dependency-model%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fdg%2Fobjects%2FDependencyTypes.java Change-Id: I163105492a11a8f9e9657562812e829f17fc149e Issue-ID: APPC-758 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-19Unit test for DependencyModelNotFound.javashubhada1-0/+36
Unit test for DependencyModelNotFound.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-dg-dependency-model%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fdg%2Fdependencymanager%2Fexception%2FDependencyModelNotFound.java Change-Id: I17f2b9bb34ad161ea0c4b9eb902b0c0437970e37 Issue-ID: APPC-757 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-19Unit Test Coverage for Constants.javashubhada1-0/+46
Unit test coverage for Constants.java Sonar Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-dg-aai%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fdg%2Faai%2Fimpl%2FConstants.java Change-Id: Ic44430e25c429f420c667e51c5d5eb7b6feb8fe5 Issue-ID: APPC-755 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-19Unit test for:org/onap/appc/dg/aai/objects classesshubhada2-0/+196
Unit test Coverage for: 1.AAIQueryResult.java 2.Relationship.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-dg-aai%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fdg%2Faai%2Fobjects Change-Id: Ia4bb63454b5150e99cc38b12f867450da7ceae54 Issue-ID: APPC-754 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-17ResponseStatus unit testsJakub Dudycz1-0/+57
Improved code coverage. Change-Id: I4f522d57b3e6e8d64d42c5e8b957db5a4a1bf07a Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-17InputBody and OutputBody unit testsJakub Dudycz5-36/+248
Improved code coverage. Change-Id: I8b083f3281f0057d14cdfa9ae3c47eb3da99614e Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-17DmaapMessage and its subclasses unit testsJakub Dudycz5-43/+278
Improved code coverage. Change-Id: Iaa8496ce5c7aa5a8fc7ca203baf07ab8b7e55e5d Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-17CommonHeader unit testsJakub Dudycz1-0/+92
Improved code coverage. Change-Id: Ic215cbd9ab6999f8e1d51c2f4d79d0d550057f04 Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-17ActionIdentifiers unit testsJakub Dudycz1-0/+71
Improved code coverage. Change-Id: I3d65411f5f746850a4e83c34f3ef349653e3bc3f Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-16WorkerImpl unit testsJakub Dudycz3-39/+130
Improved code coverage. Change-Id: I1a5170d16d64e95b759a576b56689164036370c1 Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-16Unit test for MDSALStoreException.javashubhada1-0/+77
Unit test for MDSALStoreException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-dg-mdsal-bundle%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fmdsal%2Fexception Change-Id: Ia8f8a1e35fd8426389b7e036574e0bddd3a17974 Issue-ID: APPC-751 Signed-off-by: shubhada <SV00449682@techmahindra.com>
2018-03-16Unit test coverage for domainmodel-lib classesshubhada4-0/+244
Unit test Coverage for: 1.Vnf.java 2.Vnfc.java 3.Vserver.java Sonar Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-dg-domain-model-lib%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fdomainmodel Change-Id: I7a77a992a1957020a066bcd5676c9a63cc7cd328 Issue-ID: APPC-720 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-15HexHelper unit testsJakub Dudycz3-62/+146
Improved code coverage. Change-Id: Ic3503ae79199767f3162c861f13ff1ecc889e1ec Issue-ID: APPC-742 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-15Add junit coverage to EncryptionTool classLori Keighron1-0/+75
Introduce junit-tests for EncryptionTool class Change-Id: Iced5222f99d4af8b8ae5d0a75885c075a7291190 Issue-ID: APPC-726 Signed-off-by: Lori Keighron <lk2924@att.com>
2018-03-15Converter unit testsJakub Dudycz4-118/+229
Improved code coverage. Change-Id: Ieff8e92f907a9c45e4c810754d6e3d86e2c5bd0c Issue-ID: APPC-745 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-15AbstractListener unit testsJakub Dudycz4-41/+88
Improved code coverage. Change-Id: I131f8bbbc72e0587572baa340d10fb56f6a1c5bc Issue-ID: APPC-747 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-15EncryptionTool unit testsJakub Dudycz1-10/+37
Improved code coverage. Change-Id: I8882a9fd274b4ce03ef784aac89cdfbb786af4fe Issue-ID: APPC-742 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
2018-03-15Unit Test for NoTransitionDefinedException.javashubhada1-0/+34
Test Coverage for NoTransitionDefinedException.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-lifecycle-management-api%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Flifecyclemanager%2Fobjects%2FNoTransitionDefinedException.java Change-Id: If5e9101a27473cfa7716669049518d4b5f04be2b Issue-ID: APPC-739 Signed-off-by: shubhada <SV00449682@techmahindra.com>