aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
AgeCommit message (Collapse)AuthorFilesLines
2019-11-18Create Service objectxuegao10-18/+910
User Service object to store loop service and resource realted info. Issue-ID: CLAMP-545 Change-Id: I0df6f5d43d7e0575346e02a27bca5c0b5ecdb0a0 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-11-05Move to JDK 13sebdet4-65/+54
Do the required changes to move to JDK 13 Issue-ID: CLAMP-327 Change-Id: Ia7840851eeefc6c00e3e49eacb2e49cc27a0b2f0 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-17Merge "Improve unit test coverage of loop/log"Sébastien Determe1-0/+99
2019-10-17Merge "Improve unit test coverage of LoopController"Sébastien Determe1-0/+150
2019-10-17Merge "Improve unit test coverage of LoopService"Sébastien Determe1-0/+34
2019-10-17Add unit testsxuegao5-28/+612
Add unit tests for backend and frontend. Issue-ID: CLAMP-512 Change-Id: I713ba2dce3bd132e7e3e713f4e91e3662df7aafd Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-16Improve unit test coverage of loop/logVidyashree Rama1-0/+99
Improve unit test coverage of loop/log Change-Id: Id4deee79a3637396d210f14051fd345c9e7039e3 Issue-ID: CLAMP-510 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-10-16Improve unit test coverage of LoopControllerVidyashree Rama1-0/+150
Improve unit test coverage of LoopController Change-Id: I12145ba3542836dbc843b6c7f2383bff85f79e8f Issue-ID: CLAMP-510 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-10-15Improve unit test coverage of LoopServiceVidyashree Rama1-0/+34
Improve unit test coverage of LoopService Change-Id: I929d6c9fca8cbb1fa19b50bfee2c8523d94c41ce Issue-ID: CLAMP-510 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-10-10Rework the clamp cadi filtersebdet1-46/+0
Add test and rework the code for X509 certificate Issue-ID: CLAMP-519 Change-Id: I3c0aa05cd4bec24770243b86a4672ff3906afba5 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-09Fix policy status issuexuegao1-227/+0
Change the initial status of policy from SENT_AND_DEPLOYED to NOT_SENT. Issue-ID: CLAMP-533 Change-Id: If4fa22fc2e3fb33500502bab41e49de9000dd7e7 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-09Add policy model id in tosca parsersebdet2-147/+136
Add the parameter policy model id when converting the tosca to a Json schema for the UI so that it takes well what is provided in the blueprint Issue-ID: CLAMP-534 Change-Id: Ie5e9e0c495c3969f25cca36d8f3d74c82f1f63b6 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-08Clean up filessebdet2-86/+0
Delete useless files in test resource folder Issue-ID: CLAMP-487 Change-Id: I828d0cc93ff29fb0f8ae05988e28f2a0b415c194 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-08Merge "Fix policy status issue"Sébastien Determe1-0/+239
2019-10-08DCAE inventory calls in camelsebdet10-338/+1633
Move the HTTP/HTTPS calls to camel so that there is no issue with the previous code that does not support the config required for HTTP4 Camel Issue-ID: CLAMP-532 Change-Id: I83db0da5bbe6906890d0d6aa9b529c264e5f9b20 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-08Fix policy status issuexuegao1-0/+239
Change the initial status of policy from SENT_AND_DEPLOYED to NOT_SENT. Issue-ID: CLAMP-533 Change-Id: I5daec8e5d02c4db48005fbf25e642ec73df5a20c Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-01Merge "Improve unit test coverage of DcaeInventoryServices & clamp/clds/model"Sébastien Determe2-0/+127
2019-09-30Improve unit test coverage of DcaeInventoryServices & clamp/clds/modelVidyashree Rama2-0/+127
Improve unit test coverage of DcaeInventoryServices & clamp/clds/model Change-Id: I2a2d977473ceec95117eca9e5ab42d75371a6137 Issue-ID: CLAMP-510 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-09-25Improve unit test coverage of ToscaYamlToJsonConvertorVidyashree Rama5-2/+325
Improve unit test coverage of ToscaYamlToJsonConvertor Change-Id: Ia5dc07288b878ac62d74313032ba2b4ee69f9c2e Issue-ID: CLAMP-510 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-09-12Add scritp for DBsebdet1-1/+1
Add scripts to load/save the db + add autogeneration of the test data used by the CSIT Issue-ID: CLAMP-496 Change-Id: I90cc4d1860562c0325038e6b8e900d99b64d201a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-11Checkstyle fixessebdet6-108/+82
Checkstyle fixes done to solve the Unstable build Issue-ID: CLAMP-487 Change-Id: I694b13e03dd1e7220988fd0c08bfbf12a808f7f7 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-10Remove Dead codesebdet1-106/+0
Removal of useless code not used anymore in clamp because model are received from CSAR Issue-ID: CLAMP-487 Change-Id: Ifeb0411e7f7cd599cb5cf5d8f5b0e33d34bbf396 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-10Repair healthchecksebdet1-3/+1
HealthCheck was always returning 200 even if the db was not up and running Issue-ID: CLAMP-494 Change-Id: I85aa427a212c6cde568d3863d1ab1a1a11c71f16 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-10Remove dead codesebdet29-3044/+2
Removal of deprecated v1 interface code, sql cleaned up as well, old model removed from database Issue-ID: CLAMP-487 Change-Id: I4a9f14de9ea1c1b76c522581d75cf4b011c2aa01 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-09Remove dead codesebdet9-1044/+33
Removal of dead code not used anymore as part of the V1 interface + new swagger without old v1 interface Issue-ID: CLAMP-487 Change-Id: I56c80c26082b5119f14afc41e26bae1c52b1ba59 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-06Fix legacy policy payloadsebdet2-2/+1
Ensure payload attribute is well not present if defined as an empty string Issue-ID: CLAMP-484 Change-Id: If6d558c009dd695bfd5f83cf0d50800e12026121 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-06Removal of previous UIsebdet2-36/+32
Removal of Angular code not used anymore, it has been replaced by React Issue-ID: CLAMP-487 Change-Id: Ib5f20a2ede032e3288340b9884fa551dc0d5da03 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-08-28Fix frontend dockersebdet1-1/+1
Fix the frontend docker in Nginx with https for backend in https as well Issue-ID: CLAMP-486 Change-Id: I33fd89289618affa5e734c80991aaefece31309e Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-08-27Update the SQLsebdet1-14/+533
Update the SQL for the CSIT tests as it has been changed for El Alto Issue-ID: CLAMP-481 Change-Id: I27b9ab470ad9a12d76c1db5cfdf92e353181f510 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-08-23Fix the log statussebdet1-17/+17
Fix the way the code (camel) computes the global loop state + introduce level in component state for that Issue-ID: CLAMP-384 Change-Id: I83a9306eabacfc1f118df6b828e521ee59d19b5f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-08-19Draft of op policysebdet11-153/+851
First draft of the Operational policy based on JsonEditor, it's a wip code Issue-ID: CLAMP-430 Change-Id: I2c7970e94488f4020377fd9d4d00691a3590b13e Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-06-18Improve test for DictionaryService.k.kedron1-28/+44
Add new test for CldsDictionaryService. Refactor createOrUpdateDictionary method. Remove useless final from private method. Checkstyle issue. Change-Id: I26e782aeb4a7429d342f90d4231dd24cca2e152f Issue-ID: CLAMP-355 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-06-18Merge "Fixed Checkstyle issues"Xue Gao10-35/+68
2019-06-18Merge "New unit tests and sonar fixes"Xue Gao3-9/+159
2019-06-13Bring all fixessebdet1-6/+21
Bring all fixes from Dublin, but the code has slightly changed on master Issue-ID: CLAMP-410 Change-Id: Ieca7b8e9b180f46f2c30f848454405f3a504bfdd Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-06-05Merge "Improve test coverage in DcaeEvent"Sébastien Determe1-0/+74
2019-06-05Rework the loop statesebdet9-281/+164
Rework the state loop so there is no bug in the loop state anymore, now the components are scanned + upgrade to 4.0.4 Issue-ID: CLAMP-384 Change-Id: If7649238ee52864c84bfb9b6b8471d1738752e29 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-06-05Improve test coverage in DcaeEventm.kowalski32-1/+75
Change-Id: Iead99d97d7ad2a803ef67cdf8a7eebaca76c60bd Issue-ID: CLAMP-355 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
2019-06-04Fixed Checkstyle issuesk.kedron10-35/+68
Fixed checkstyle issues in the clamp project to achieve clean Jenkins build Change-Id: I92a05f948a5946c46b951058dc6f00b0b1c8e05b Issue-ID: CLAMP-328 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-06-04Fix imports in CsarInstallerItCase.k.kedron1-1/+1
After merged (86147) the necessary Rollback import was delete. Additionally the not used org.mockito.Matchers.any import was delete. Change-Id: I4c75bf3dd3cda5e1777cbd662672a80588d9b5cf Issue-ID: CLAMP-346 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-06-04Merge "Added unit tests for CldsEventDelegate"Sébastien Determe1-0/+83
2019-06-04Merge "Added unit tests for GuardPolicyDelegate"Sébastien Determe1-0/+108
2019-06-04Merge "Improve test coverage in SdcSingleController"Sébastien Determe1-6/+45
2019-06-04Merge "Added unit tests for TcaPolicyDelegate"Sébastien Determe1-0/+166
2019-06-04Merge "Added more unit tests and fix import"Sébastien Determe3-29/+191
2019-06-04Merge "Improve test coverage in FlowLogOperation"Sébastien Determe2-41/+99
2019-06-04Merge "Improve unit tests and sonar fixes"Sébastien Determe6-9/+54
2019-06-04Improve test coverage in FlowLogOperationm.kowalski32-41/+99
Change-Id: Ia76e2652ab99bf06def5fafca24de471d53e224e Issue-ID: CLAMP-355 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
2019-06-04New unit tests and sonar fixesk.kedron3-9/+159
Assertion arguments should be passed in the correct order in: - CldsReferencePropertiesItCase - LoggingUtils Remove of duplicate code in LoggingUtils. Typo in README file. Add LoggingUtilsTest unit test. Change-Id: Iddc61877659e9d4308479451a7eb4901b3fc5ea8 Issue-ID: CLAMP-355 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-06-04Merge "Improve test coverage Improve test coverage in CsarInstallerImpl"Adam Krysiak1-2/+11