summaryrefslogtreecommitdiffstats
path: root/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2018-03-27Add blueprint inputDeterme, Sebastien (sd378r)1-0/+23
Add blueprint json input support for DCAE call Issue-ID: CLAMP-142 Change-Id: I52657ff7ead38681eae2744a30271f0a1b825bb6 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-27Unit tests improvementDeterme, Sebastien (sd378r)1-4/+4
Add Id specified in the python third party script Issue-ID: CLAMP-142 Change-Id: Id804c83dbcb3dcdf485906f1b358554205e9e0e8 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-27Security FixDeterme, Sebastien (sd378r)3-0/+184
Introduce a centralized ObjectMapper for Resteasy and Clamp code so that the automatic Ser/deserialization of all classes is disabled. Issue-ID: CLAMP-135 Change-Id: I1fb11c8fc8e7a53ef832774fa8c06af1c70d3dad Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-23Rework the SDC testDeterme, Sebastien (sd378r)2-30/+75
Rework the uni tests so that SDC controller is more tested, also dcae code has been reworked for improving sonar report Issue-ID: CLAMP-81 Change-Id: Ia6ec272e1bf86e72d9d7294aeec0695b861f78af Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-22Add properties to modelDeterme, Sebastien (sd378r)1-7/+10
Add properties to model created in db + Auto start configuration for spring Issue-ID: CLAMP-81 Change-Id: I6598872c6b47963e97c63730a4b6499e2b1a2de2 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-22Rework of the csarinstallerDeterme, Sebastien (sd378r)1-1/+9
Csarinstaller rework to save Template and Model to database Issue-ID: CLAMP-81 Change-Id: I5edf9716146975ed3751a93b78f5c9b0b9ff2af9 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-16CsarInstaller introductionDeterme, Sebastien (sd378r)1-0/+102
This class is introduced to decode/deploy the dcae blueprint from SDC and save it to database. This is done based on json templates. Some unit tests added Issue-ID: CLAMP-81 Change-Id: I3fac5f7ef41d77aa244414407111b9cb602b50bd Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-16Rework the codeDeterme, Sebastien (sd378r)1-8/+1
Some reworking of different services classes Issue-ID: CLAMP-81 Change-Id: I7815e805f2a41954d633d3e3453af02d0de6b283 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-16CsarHandler reworkDeterme, Sebastien (sd378r)1-8/+9
Reworking of the csarHandler to support cache of dcae blueprint Issue-ID: CLAMP-81 Change-Id: Ic9c71d8f23ac75a6273781991f5ac7a60c4f328d Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-15Fix Checkstyle issuesDeterme, Sebastien (sd378r)7-27/+24
Fix the checkstyle issues reported by the build Issue-ID: CLAMP-74 Change-Id: Ia2b3e332808d59aefcc7140d9638c7a18ef24e65 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-12Add csar HandlerDeterme, Sebastien (sd378r)1-0/+104
Add a csar handler to save the Csar downloaded from SDC Issue-ID: CLAMP-81 Change-Id: I59d33ea3754e8e6acbe107c32fdcf83c1f236171 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-05Remove the clds-reference.propertiesDeterme, Sebastien (sd378r)5-10/+10
Remove clds-reference.properties and merge it into application.properties Issue-ID: CLAMP-136 Change-Id: I8dc6deffdca47dc50d1473ccbe9a94dc91d7d5d9 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-05Rework configurationDeterme, Sebastien (sd378r)1-1/+17
Move the JSON content from the properties file to json files for all configuration defined in clds-reference.properties Issue-ID: CLAMP-136 Change-Id: Idfb21be729d7260518756e5f585371de78d18944 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-01Add controller config codeDeterme, Sebastien (sd378r)1-0/+86
Add SDC config parser code for mutliple SDC client configurations + unit tests Issue-ID: CLAMP-81 Change-Id: Ia97007463c6baf40456f97d9627da8b0ed3f4e49 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-01Add SDC single configDeterme, Sebastien (sd378r)1-0/+86
Add SDC configuration JSON parser that is linked to SDC client API Issue-ID: CLAMP-81 Change-Id: I8c1c9e93813bf1444b1df455cafe0aab60236300 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-03-01Fix the testsDeterme, Sebastien (sd378r)13-87/+67
Fix the Integration tests that were broken due to refactoring. Issue-ID: CLAMP-85 Change-Id: I75cd5327ff40a3cf831b42d98febef1af120e975 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-15Code refactoringDeterme, Sebastien (sd378r)11-45/+54
Code refactoring, mainly Classes/Methods name renaming Issue-ID: CLAMP-85 Change-Id: I12bd190576e324ed33f057dc1a4ad32c16fcb6c2 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-14Remove Camunda and replace by CamelDeterme, Sebastien (sd378r)12-202/+144
The camunda has been replaced by Camel so that DB could be removed. Also the unit tests has been reworked and maven dependencies have been changed Issue-ID: CLAMP-85 Change-Id: I781c3c83cecbdae3535c7e036e62ae83c6b6852f Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-14Rework the SDC cache Determe, Sebastien (sd378r)3-5/+147
Rework the SDC cache that was broken and add unit tests to validate it Issue-ID: CLAMP-85 Change-Id: I43503702733d8f8f0ddbf391f94fb4e5416be98f Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-07Remove AJSC container.Determe, Sebastien (sd378r)1-3/+2
Remove AJSC container and adapt the dependencies & unit tests Issue-ID: CLAMP-85 Change-Id: I4289dd8a13645df238f35d2791718639b04a509f Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-07Improve code of unit tests.Determe, Sebastien (sd378r)1-3/+4
Improve code according to Sonar result Issue-ID: CLAMP-74 Change-Id: I73b06ce29ac58df160441b20129bd1a3574af9ef Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-07Improve Unit testsDeterme, Sebastien (sd378r)3-46/+59
Improve the unit tests on different cases. Issue-ID: CLAMP-74 Change-Id: If13558a540b22dc1156206111d1f33712249d1ac Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-01-09Merge "Code refactoring"Sébastien Determe2-7/+4
2017-12-19Cleanup of utils classes.biniek1-30/+9
Removed javadoc without any information; enforced util class won't be initialized; extracted constants. Change-Id: Ie30156472d929dfc95819a1d5affaaf867eed611 Issue-ID: CLAMP-96 Signed-off-by: biniek <lukasz.biniek@nokia.com>
2017-12-15Code refactoringLukasz Muszkieta2-7/+4
Change-Id: Iadcaf1006ccf400d41cfa5aa5674ce4af1376668 Issue-ID: CLAMP-93 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2017-12-15Code refactoringLukasz Muszkieta1-18/+18
Change-Id: Ic2737bf71f8b236939e9aa46ed619e6ad0e40b3a Issue-ID: CLAMP-93 Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
2017-11-20Add test cases for CldsTemplateService methodsxg353y1-0/+169
Change-Id: I4bad9a328e1f13c84ad70bff042a577dc2ad768e Issue-ID: CLAMP-74 Signed-off-by: xg353y <xg353y@intl.att.com>
2017-11-17Fix missing scopeDeterme, Sebastien (sd378r)1-2/+3
Fix the missing scope and bad one in the test Change-Id: I2545926055cf4f4460cb627575d5b90b15f9317c Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-17Fix for CheckstyleDeterme, Sebastien (sd378r)5-41/+40
Fix the checkstyle issues reported by the tool Change-Id: Ia330dcf6eead508b0c250d85617ea599c3ce42aa Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-16Refactor the java packagesDeterme, Sebastien (sd378r)10-54/+103
Refactor the java packages, moving classes to others packages Change-Id: I5cd2a6477876ce187502afff37a862029a081ab3 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-16Add a logger to Unit testDeterme, Sebastien (sd378r)1-20/+5
Add a logger to the unit test CldsModelTest Change-Id: I9631c250352d8fe2dbc8771682636aedc3231790 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-16Rework CryptoUtilsDeterme, Sebastien (sd378r)1-25/+29
CryptoUtils now takes the key from a file located in the resource not in spring file Change-Id: I002978d292550e6173efb4324cbb977f35d7e753 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-16Rework the CldsUserJsonDeterme, Sebastien (sd378r)1-17/+7
Rework the CldsUserJson and associated Unit tests Change-Id: I0be23ef8c6a44bc7cec7f7011b08a32d2662c56f Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-16Move SSL verification to testDeterme, Sebastien (sd378r)1-8/+54
Move the SSL verification to the unit test instead of having it in the main class Change-Id: I574a4ba380ef62171cc6ba0c23eb41dee8a8cc18 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-05Fix DCAE connection issueDeterme, Sebastien (sd378r)1-0/+94
Code has been added to support http/https protocols for DCAE Change-Id: Ib1259310b801a19cacd08c22292509156624ac9b Issue-ID: CLAMP-65 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-10-30Add encryption for passwordsDeterme, Sebastien (sd378r)3-20/+105
Add encrypted password on all values specified in the properties files, unit tests have been reworked. Change-Id: I619ff67fe1025f69af733b776f055914f949f26a Issue-ID: CLAMP-64 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-10-26Update TCA config json send to Policyxg353y1-2/+1
Update the format of the TCA configuration send to Policy Issue-ID: CLAMP-62 Change-Id: I53cbfcb1f8f8772856b645e8aec0db2a8a94d15e Signed-off-by: xg353y <xg353y@intl.att.com>
2017-10-06Fix the bad test Determe, Sebastien (sd378r)1-2/+2
This test fails when pnfType is set in the yaml Change-Id: I7ec3996ca0bbf40334063011d9d745155b1ba6e8 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-10-06Restoring try catch for policy requestDeterme, Sebastien (sd378r)1-1/+1
This exception log was not useful so it has been removed and replaced by an easier log to understand Change-Id: Ie25426d3b8b44b55a3fd2dd3807620d98fad5bbf Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-10-06Increase the test portabilityDeterme, Sebastien (sd378r)1-0/+6
This test was testing the class name provided in the yaml, if it changes the test is dead. So it's more generic now Change-Id: I72ba7ac087da137b0e43628c99b5d92a1696078a Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-10-06Update Holmes related featurexg353y2-1/+64
No blueprint need to be send to SDC; Add configuration policy name in holmes UI; Update the config body sent to Policy. Change-Id: I4bf5b0c32d64f4acf28ac6f24128e463e28e5779 Signed-off-by: xg353y <xg353y@intl.att.com> Issue-ID: CLAMP-27
2017-09-28Removal of useless testDeterme, Sebastien (sd378r)1-53/+0
This file is deleted as not used at all Change-Id: I257c7410d5864890ed4d0258baa90f3061e294b6 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-28Fix the Checkstyle issuesDeterme, Sebastien (sd378r)12-441/+71
Fix all checkstyle issues in all unit tests + rename all IT and remove useless tests Change-Id: I8d1244c26d4d2ca490ba8ffcf2236f484c783394 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-28Fix spelling mistakesDeterme, Sebastien (sd378r)1-9/+3
Spelling mistakes fixed with formater word Change-Id: I2e5e44e3de6ac1c8f2a5a6aee0ec7ec713cf139f Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-28Change the model to fix TCADeterme, Sebastien (sd378r)2-8/+138
Fix TCA model and JSON model for TCA + rework the JUNIT Change-Id: I35099633e89f9f95f1957afeffa915feda4045f3 Issue-ID: CLAMP-59 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-28new method for policy clientDeterme, Sebastien (sd378r)1-4/+2
A new method to send JSON in other type to policy Change-Id: I24b2d36464fa3c9786007ea3772c6a2c4b7c7b66 Issue-ID: CLAMP-59 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-28Removal of useless testsDeterme, Sebastien (sd378r)1-15/+1
These IT are not useful anymore as covered by others test classes Change-Id: I6691c944f3ec98d4685229ce4758ba79c6bfa0ae Issue-ID: CLAMP-59 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-27Code Improvementxg353y4-80/+1
Change-Id: I703aabf234cb656b1faea3b5c0776d034d8ec807 Signed-off-by: xg353y <xg353y@intl.att.com> Issue-ID: CLAMP-54
2017-09-22Fix bug at runtimeDeterme, Sebastien (sd378r)2-11/+2
There was a missing class due to policy dependency changed Change-Id: Id8d85a8925c1ac2164528333672a552cb55ca5ca Issue-ID: CLAMP-48 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-22Remove the Policy Dep SnapshotDeterme, Sebastien (sd378r)1-2/+2
The policy dependencies have been changed to refer to non snapshot packages. Some java packages have been updated too. Change-Id: Id70a0247b859368c642a73fa59bbda93bf9904ae Issue-ID: CLAMP-55 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>