aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
AgeCommit message (Collapse)AuthorFilesLines
2019-05-08Merge "Improve test coverage in UserJsonDecoder"Sébastien Determe2-1/+13
2019-05-08Merge "Added unit tests for OperationalPolicyDeleteDelegate"Sébastien Determe1-0/+108
2019-05-08Merge "Fix model_type missing"Gervais-Martial Ngueko9-211/+320
2019-05-08Fix model_type missingsebdet9-211/+320
Fix model missing in some cases (new DCAE Blueprint), also removed useless fields in MicroService Object Issue-ID: CLAMP-370 Change-Id: Ia246b5d58309aceb3168107a4bf76b92b23add7a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-05-08Merge "Added unit tests for OperationalPolicyDelegate"Sébastien Determe1-0/+125
2019-05-08Add unit tests fot FlowLogOperationm.kowalski31-0/+41
Change-Id: I499ca3ffe5d5f9a6fca4f5b92fc3c5da6a424d37 Issue-ID: CLAMP-355 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
2019-05-07Added unit tests for OperationalPolicyDelegatep.borelowski1-0/+125
Added more unit tests for some of the Delegate classes in the clds/client package to reach the minimum threshold of 65 % coverage (5) Change-Id: I3de0d8580dabc6925c5c8c62ce6424231f20d192 Issue-ID: CLAMP-355 Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
2019-05-06Added unit tests for OperationalPolicyDeleteDelegatep.borelowski1-0/+108
Added more unit tests for some of the Delegate classes in the clds/client package to reach the minimum threshold of 65 % coverage (4) Change-Id: Ifd3936f78c33bc0d847191319591a0aab5168e72 Issue-ID: CLAMP-355 Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
2019-05-06Fix Guard policy payloadsebdet3-26/+26
Change the guard policy payload as some field were not correct Issue-ID: CLAMP-367 Change-Id: I3f6f200d736e8b3d890ec105849ff0e4506b1510 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-05-03Fix the bugs in loop state logicxg353y1-0/+250
Fix the bugs in the logic to get the loop state Issue-ID: CLAMP-362 Change-Id: I9d931f1a1ceed3d9e173b3ee742f8e349b7e653f Signed-off-by: xg353y <xg353y@intl.att.com>
2019-05-02Merge "Rework the Model Json"Christophe Closset5-98/+1076
2019-05-02Rework the Model Jsonsebdet5-98/+1076
Rework the model Json returned by the backend to the UI Issue-ID: CLAMP-365 Change-Id: I8b4e24292d62140b4b2e105d8b18042f84e1fd38 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-30Merge "Fix the get loop state logic"Sébastien Determe2-0/+17
2019-04-30Fix the get loop state logicxg353y2-0/+17
Fix the logic to get the loop state and update the CL deploy/undeploy flow accordingly Issue-ID: CLAMP-362 Change-Id: I34f83bd241b1029417453908bf932c0b69f9f5b2 Signed-off-by: xg353y <xg353y@intl.att.com>
2019-04-30Improve test coverage in UserJsonDecoderm.kowalski32-1/+13
Change-Id: I891e78720d47c015ab4f9e130f345797b0110d64 Issue-ID: CLAMP-348 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
2019-04-29Fix bad microservice windowsebdet1-3/+3
Fix the bug where operational policy window is opened in the UI instead of the right microservice one Issue-ID: CLAMP-364 Change-Id: I2fd64f0dd2de54e8498f4cdce2c55fd912fd5f21 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-26Fix policy Hostssebdet1-3/+7
Add support for PAP(for PDP group) and API host/creds (for policy create/delete) Issue-ID: CLAMP-359 Change-Id: I304193c4f1e77bd6676b32ca3d611da57106e655 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-26Merge "Change Yaml to Json payload"Xue Gao2-1/+7
2019-04-26Merge "Clamp uses new Loop implementation by default"Sébastien Determe3-1/+11
2019-04-26Change Yaml to Json payloadsebdet2-1/+7
Change the operational policy payload from Yaml to a JSon, yaml being embedded as URLEncoded Issue-ID: CLAMP-359 Change-Id: I8c97bb155e6136ce37c29a65a7d9d85e21fedd61 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-25Fix policy callssebdet1-1/+1
Fix policy calls so that the url is now right + update camel version to latest Issue-ID: CLAMP-357 Change-Id: Iffc83f53eb2361d7551b43b28c8e822fbf38c619 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-25Rework code for policy typesebdet9-10/+10
Rework unit tests + test resources and code for policy type renaming Issue-ID: CLAMP-356 Change-Id: Id64c620b42347d6f5535523f33a0a04a54a60fa2 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-24Clamp uses new Loop implementation by defaultKrysiak Adam3-1/+11
Change-Id: I274a946af91f6b06d3aa53b8127c94010274e353 Issue-ID: CLAMP-354 Signed-off-by: Krysiak Adam <adam.krysiak@nokia.com>
2019-04-24Added more unit tests to reach the minimum threshold of 65 % coveragep.borelowski1-0/+103
Added unit tests for the class TcaPolicyDeleteDelegate Change-Id: Iadd6e6f0600f3400f29ad21d7b84da09945b36cc Issue-ID: CLAMP-355 Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
2019-04-23Merge "Fixed generic Sonar issue in the clamp project"Sébastien Determe1-4/+4
2019-04-19Fixed generic Sonar issue in the clamp projectk.kedron1-4/+4
Fixed Sonar issue: - name convection for static field in AuthorizationController - optimize condition flow in AuthorizationController - remove not used import in BlueprintParserMappingConfiguration - remove not used field in AuthorizationController, SdcControllersConfiguration, CldsService - add private constructor to the AwtUtils - change redundant EnableAutoConfiguration annotation to SpringBootApplication annotation - remove duplications of code in the CldsDao Change-Id: I49d8be9ec44b5930f76bace0fc9d8cf61ee000f5 Issue-ID: CLAMP-346 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-04-19Merge "Improve test coverage in TcaRequestFormatter"Xue Gao1-0/+18
2019-04-18Improve test coverage in TcaRequestFormatterm.kowalski31-0/+18
Issue-ID: CLAMP-349 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I617261a1a71f0a0007286be9cf09024c71419c68
2019-04-18Removed unused fields from AbstractModelElementp.borelowski1-3/+4
Removed 3 unused private fields from the class org.onap.clamp.clds.model.properties.AbstractModelElement along with the following changes within 4 other classes and 1 test class Change-Id: Id4cc30964ca5478add446601f642c6c0ed190ab7 Issue-ID: CLAMP-347 Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
2019-04-10Add delete supportsebdet1-0/+43
Move delete code to Camel way so that it's more flexible + introduce removal of the loop + test Issue-ID: CLAMP-315 Change-Id: I7df87e1441d4511ad6b42d0d269c3b2c8c7d8eef Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-09PDP Group supportsebdet2-2/+38
Add support to push all policies to pdp group + log Issue-ID: CLAMP-303 Change-Id: Ie53b1dfd11ef8db9c2b5ccca0511e6f6343fb70a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-09Fix guard payloadsebdet2-3/+49
Fix guard payload nullpointerException when guard list is empty or null Issue-ID: CLAMP-303 Change-Id: I6f714a877036cbc531dd35505202dde227cc224a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-09Remove the license issuesebdet1-0/+0
Remove license issue in csar that was generated by SDC Issue-ID: CLAMP-338 Change-Id: Iad23cd23b7c5ad79d2443188f461614b169f8d85 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-09Update sql filessebdet2-62/+217
Update sql files to provision the new database and new loop model Issue-ID: CLAMP-276 Change-Id: Idfa005ff5eb431abea02a0ceea6c6a65f57b3f29 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-08Create submit routesebdet6-12/+34
Create required components for Submit route in camel + unit tests + Policy payload generation + emulator feature for new policy api Issue-ID: CLAMP-303 Change-Id: If9033cfa3f4e346e2cbd7f891baff1f2c04a40a2 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-08Fix dom4j issuesebdet1-38/+28
Upgrade Spring and Camel to latest version so that it fixes thesecurity issues Issue-ID: CLAMP-338 Change-Id: I214ac3520be3c388ec2f7e715b7d37e0db5d5a9c Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-08Fix config policysebdet4-2/+7
Fix saving of config policy due to refactoring + fix missing model type in config policy Issue-ID: CLAMP-303 Change-Id: I863f3bb6b2acef8ed7bf534e142c1730b1493b67 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-05Merge "Introduce Camel route"Xue Gao5-0/+198
2019-04-05Merge "LoopLog repository"Xue Gao6-108/+208
2019-04-05Merge "Update Csar handler"Sébastien Determe3-2/+2032
2019-04-05Introduce Camel routesebdet5-0/+198
Camel route for Submit operation using http4 component Issue-ID: CLAMP-303 Change-Id: I29804a7db6286dfa84f7eed63813f25299a385e6 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-05LoopLog repositorysebdet6-108/+208
Introduction of the loop log repo + refactoring Issue-ID: CLAMP-303 Change-Id: I3e806993d35f82fd9258e55592391a48eb7e199f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-03Update Csar handlerxg353y3-2/+2032
Update Csar handler, return the content of policies.yaml concatenateed with data.yaml while getting the policy model yaml. Issue-ID: CLAMP-261 Change-Id: I8ef7bcb9b2daaea37f13ca9d3ad9f38b889d6041 Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-29Refactoringsebdet3-12/+11
Small refactoring of the Http library Issue-ID: CLAMP-333 Change-Id: I90a5488241ab84636bc0cec5849e97c4f98f3a38 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-03-28Rework the submit operationxg353y12-51/+64
Rework the logic to create/delete ms config policies. Issue-ID: CLAMP-303 Change-Id: I317e262ab68280a7518a6e31e82e5fcb0a7f94ed Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-25Rework deploy/undeploy UIxg353y3-28/+29
Rework the deploy/undeploy Ui based on the new data model. Issue-ID: CLAMP-334 Change-Id: I03d591bea81cb050e12031782dfa383656f1a32c Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-19Merge "Fix tosca parser"Sébastien Determe1-1/+1
2019-03-19Fix tosca parsersebdet1-1/+1
Fix the parser so that we support the new tosca policy discussed Issue-ID: CLAMP-186 Change-Id: I3051dddf749f1969f8b1d12d726c65f6aad48d51 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-03-19Checkstyle improvementsChrisC1-2/+2
Aligning couple of files with dublin checkstyle rules Issue-ID: CLAMP-328 Change-Id: Id6d97adefaeb9ddd7f8dc3253de61aeda13d27bf Signed-off-by: ChrisC <christophe.closset@intl.att.com>
2019-03-15Merge "Fix policy Tosca converter"Eddy Hautot4-81/+351