summaryrefslogtreecommitdiffstats
path: root/src/test
AgeCommit message (Collapse)AuthorFilesLines
2018-02-14Add an HTTP cache for SDC testsDeterme, Sebastien (sd378r)46-0/+205
Add a python script with SDC cached file from a test lab Issue-ID: CLAMP-85 Change-Id: Ib932d5c80a399b85ae093dabb76c214e9f54ca63 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2018-02-07Remove AJSC container.Determe, Sebastien (sd378r)4-75/+14
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-17Remove quotesDeterme, Sebastien (sd378r)1-2/+2
Remove the quotes in the properties file Change-Id: Id0f2c78dee291ab251fee41166645a0ede5298ec Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-17Change dcae addressesDeterme, Sebastien (sd378r)1-2/+2
Change https to http as it's http on the labs Change-Id: I0f177b71e988c5e303df3be798a4ee4fa4c9bb39 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@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)6-79/+78
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 the cldsUserDeterme, Sebastien (sd378r)3-48/+44
Reformat the JSON files and update the code in CldsUser Change-Id: If82e5e21695189532d7352912db4d4a7be504852 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-16Rework CryptoUtilsDeterme, Sebastien (sd378r)5-32/+37
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-06Disable camunda fo https testDeterme, Sebastien (sd378r)1-2/+6
Disable camunda for the HTTP/HTTPS test Change-Id: Ia33fe315670ac616562460d18f5041d4db49e048 Issue-ID: CLAMP-65 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-11-05Fix the blueprint for TCADeterme, Sebastien (sd378r)1-3/+0
FIx the blueprint for TCA, policy section removed + Locations changes to DatacenterX Change-Id: Ia438bbfaf1cdf25bdadb897c39b68934cf1f52a3 Issue-ID: CLAMP-66 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-11-03Update the policyName send to Policyxg353y3-3/+4
Change-Id: Ib8ef7feb2404b15f215a1a7967d3af7d6ac89da0 Issue-Id: CLAMP-62 Signed-off-by: xg353y <xg353y@intl.att.com>
2017-11-03Update the content send to Policyxg353y2-32/+34
Adding tca_policy tag under content section, while sending configBody to Policy. Change-Id: I184d366b0cda24ff6b95c4e8c29d0a90bde7ba06 Issue-ID: CLAMP-62 Signed-off-by: xg353y <xg353y@intl.att.com>
2017-10-30Add encryption for passwordsDeterme, Sebastien (sd378r)6-36/+1291
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 Policyxg353y5-12/+27
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-11Update the TCA blueprint formatxg353y1-0/+3
Change-Id: Ib5b6fe1b46a509bea6c40ebc8ec9058990e5f64d Signed-off-by: xg353y <xg353y@intl.att.com> Issue-ID: CLAMP-59
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)3-4/+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 featurexg353y4-4/+67
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)9-115/+448
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-28New Files added for future unit testsDeterme, Sebastien (sd378r)3-0/+164
New files that will uses by new junit on TCA code Change-Id: Icfd991da3210cc2a9534815ec5d1671fcd72a0d8 Issue-ID: CLAMP-59 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-27Code Improvementxg353y18-765/+60
Change-Id: I703aabf234cb656b1faea3b5c0776d034d8ec807 Signed-off-by: xg353y <xg353y@intl.att.com> Issue-ID: CLAMP-54
2017-09-22Fix bug at runtimeDeterme, Sebastien (sd378r)4-11/+4
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>
2017-09-22Add the target resource IDDeterme, Sebastien (sd378r)8-68/+382
Add target resource ID in operational policy code as requested. It changes the UI, the Policy code, the model and the tests. Change-Id: Ie72badde55e7f8b5c2e5234099a09b95958205cf Issue-ID: CLAMP-55 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-22Remove useless code in testDeterme, Sebastien (sd378r)1-3/+0
Some variables were created and not used, this has been removed Change-Id: I40f28f4a991989b3759b2adf8842cebcfd9ac207 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-22Rename a test classDeterme, Sebastien (sd378r)1-5/+3
Rename a test class by using the name of the class tested Change-Id: Ic2dc993ec874872b3acc9ef95fdfdb540ff61742 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-22Remove Camunda auto conf for JunitDeterme, Sebastien (sd378r)1-1/+1
Camunda autoconf classes removed for SPring junit IT tests Change-Id: Ia71574520bd88144efaf95c3a22fcb74d91e6fb9 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-19Removal of useless files & bugfixDeterme, Sebastien (sd378r)3-71/+9
Removal of DCAE useless files, and bugfixes SDC calls(+CldsDAO bug), and insertion of the search engine for Model Properties window in UI Change-Id: Ia68117bb917807eaf8e8e317f391f90b6d948135 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-18Reformat the JSON and fix checkstyle issueDeterme, Sebastien (sd378r)10-3425/+3398
All Json used in the tests have been reformatted. Also some checkstyle bugs have been fixed Change-Id: I48373d9d53d39244c62b9b88b1cf62c15c766cb3 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-18Add new tests to CLAMPDeterme, Sebastien (sd378r)4-1/+476
New tests added on ModelProperties, CldsModel and ITs (CldsService tests) Change-Id: I75a29c11ec66e0eef7c80f76cf90c30b2fc29972 Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
2017-09-14Merge "Add new tests for DAO"Eddy Hautot12-64/+999
2017-09-14Add new tests for DAODeterme, Sebastien (sd378r)12-64/+999
New test to validate some methods of the DAO and attempt to disable Camunda in IT when it was not required to have it Change-Id: I231230a7a4818f4bfd7887319a321625f66ffcae Issue-ID: CLAMP-54 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>