aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
AgeCommit message (Collapse)AuthorFilesLines
2021-11-10Align ui-react file in policy-clamp and policy-guiliamfallon51-4627/+4732
When the ui-react code was transferred to policy-gui, the white space was cleaned up and reformatted. This makes it difficult to track the real functional changes if any between ui-react in policy-clamp and policy-gui. This review brings the white space changes into ui-react in policy-clamp to make file comparisons easier. Issue-ID: POLICY-3358 Change-Id: Ic303e71b341e5c0f7ca0de0ed4c4962ebf2f988a Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-14Bump policy/clamp to Jakarta 6.2.0-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3696 Change-Id: I4dfc0532e30106478c89182f7c2cd573c168a634 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-14Bump policy/clamp to 6.1.4-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3696 Change-Id: Icef72d76b53fa09c0f88d71431ae5a13d441c787 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-10-11Fix delete action in design statesebdet3-11/+11
It can still happen due to DCAE deployment, so this patch should fix it. + Fix test due to changes done in DCAE camel flows Issue-ID: POLICY-3707 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I0f439fc029354a0632b2b17a452b7811df90492a
2021-10-08Fix delete instance in Design statesebdet4-4/+14
The "delete" flow should not crash when policies have not been deployed yet. + Fix DCAE logs (set to DCAe component) + Fix the STDOUT that should contain the error logs as requested by OOM team Issue-ID: POLICY-3707 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I15951106280f4e781ee2f3140fa72a935d54f241
2021-10-01Suppress useless nginx error messages in clamp-fedanielhanrahan1-2/+2
Log only warnings and higher in nginx error log Issue-ID: POLICY-3683 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: If5d56ceb4d63381616c747d68e231566d7ecc03c
2021-09-29Add Instant Serializer/deserializersebdet2-7/+43
In order to decode the PdpGroup Json properly the instant serializer/deserializer must be added. Issue-ID: POLICY-3684 Issue-ID: POLICY-3682 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I25d96fa3293d8338a2cb6073083121c7663f19b4 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-09-15Bump policy-clamp snapshot version to 6.1.3-SNAPSHOTliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: Ie3e6aba3a2dd64f36fcf5cbd860fe9b63ee4e8aa Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-15Disable swagger pdf/html generationliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: I8a6ad2f18e8de71c03b6729c241c3c64a480c4f1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-14Fixed Maven Clean Issue with Node Dependenciesbrunomilitzer2-0/+63
Issue-ID: POLICY-3641 Change-Id: I55f8cb95b21690834dcb8fce29dadd809a944705 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-09-09Fixed Delete Instance Properties Endpointbrunomilitzer2-3/+158
Fixed issue regarding that control loops was not getting instantiated Fixed issue regarding state change that was not receiving paramaters Added appropriate Camel Endpoints Unit tests will be applied on POLICY-3568 and POLICY-3567 Issue-ID: POLICY-3558 Change-Id: I11a1093bdb16651fe1c0ad8e267ded5390267a30 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-09-02Fix eclipse warnings in clampJim Hahn11-117/+108
Fixed some of these warnings, just in policy-clamp-runtime: - equals() with wrong argument type in junit - remove unneeded "SuppressWarning" - unused fields - deprecated classes/methods Fixed some sonars, too: - use isEqualByComparingTo() - method complexity: used eclipse to auto-extract methods Fixed checkstyle issues: - indentation level Did not address all deprecation issues (e.g., SSLSocketFactory). Issue-ID: POLICY-3200 Change-Id: Ibd92e5326854002dc0ca2d7b3b777699cafb5e98 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-27clamp sonar fix on test code and the restTaka Cho48-155/+142
- rename files to "...ItTestCase" to comply SONAR and checkstyle - surefire plugin include *Test.java files - failsafe plugin include *ItTestCase.java files - use assertEquals etc. - replace to "var" - remove unused import Issue-ID: POLICY-3452 Change-Id: I2e6e829726c4585f5f8bc985f4e8f2b88d17aef1 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-24Merge "clamp sonar fix on runtime dir"Jorge Hernandez55-302/+328
2021-08-24Merge "Add Create Instance Rest Endpoint"Liam Fallon2-1/+69
2021-08-23clamp sonar fix on runtime dirTaka Cho55-302/+328
- most of fixes are changed to "var" - Exceptions should be either logged or rethrown but not both - Ternary operators should not be nested - "String#replace" should be preferred to "String#replaceAll" - Annotation repetitions should not be wrapped - "throws" declarations should not be superfluous Issue-ID: POLICY-3452 Change-Id: I8894539aa25a8271410fe79c8d898a45a7a4db31 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-23Add Create Instance Rest Endpointbrunomilitzer2-1/+69
Added Camel Endpoint Will Apply Unit Tests on POLICY-3537, since focus is to get the functionalities completed. Issue-ID: POLICY-3436 Change-Id: I8305896b24c30fc0403c57b3925af983065a5ec2 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-08-20sonar fix for clampTaka Cho2-4/+3
- bug: added InterruptedException for sleep - vulns: two false positve - removed some unused import - changed to use var for local variable Issue-ID: POLICY-3452 Change-Id: I8b4be1378a2aad8f68562b63f70853832673ce97 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-20ADD Change State Control Loop Definitionbrunomilitzer2-0/+61
Issue-ID: POLICY-3425 Change-Id: I0898feefd0d63802e90c1c191d1ac1f14f7df389 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-08-11refactor LoggerMarkerFilter to common repoTaka Cho1-3/+3
logback.xml should point to common repo instead Issue-ID: POLICY-3087 Change-Id: I5cdf1ea081274737870c6456e9fa0ee601ee741e Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-09Merge "Use slf4j instead of EELFLogger in Clamp"Ajith Sreekumar44-298/+219
2021-08-05Use slf4j instead of EELFLogger in ClampTaka Cho44-298/+219
replace EELF with slf4j logback using slf4j Marker from common repo Issue-ID: POLICY-3087 Change-Id: I56b43584b1603d9eba642c1cd6ef6190526d078b Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-07-29Added endpoint for common or instance propertiessaul.gill6-10/+175
Runtime-controlloop and Camel endpoionts added Flag common can be used - true common props - false - instance props Changed getServiceTemplate endpoint to return less Added creation of controlloop db to clamp scripts Issue-ID: POLICY-3439 Change-Id: I9d189ca030868b47b46a2e0bc5e731c23fba2a61 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-21Merge "Replace swagger doc gen with commmon approach"Liam Fallon2-91/+4
2021-07-20Merge "Added Camel Endpoints for decommissioning"Jim Hahn4-18/+271
2021-07-19Added Camel Endpoints for decommissioningsaul.gill4-18/+271
Added endpoint in camel for decommissioning Changed get tosca service template get endpoint to return snake case Added endpoints in camel to retrieve control loop definitions and element definitions Added integration tests Allowed error messages and status codes to come through from runtime-controlloop backend Small refactor of clamp python emulator Issue-ID: POLICY-3443 Change-Id: I2f6103ca0f2058651a43e7ae1e0974cb1d3e69a7 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-16Add Camel Endpoint Change State CL Instantiationbrunomilitzer2-0/+68
Issue-ID: POLICY-3425 Change-Id: Ie8c5a5c169e3b24b2b74590e13539167d59f9545 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-07-15Replace swagger doc gen with commmon approachliamfallon2-91/+4
The swagger documentation generation is moved to policy-parent. This commit removes the CLAMP swagger document generation and replaces it with the common handling. It also fixes the following bug: The current CLAMP build generates the swagger.json file using a unit test case. That file is used later in the build to generate a swagger.pdf and swagger.html file. If the tests are skipped, the swagger.json file is not generated and the build fails on the PDF/html generation step. This change adds a profile to the build that only does the PDF/html generation when the skipTests flag is off. Issue-ID: POLICY-3424 Change-Id: Id195fc600d8fca7bfa5d9003272520d57414d646 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-07-13Added get json schema endpointssaul.gill4-0/+91
Added runtime-controlloop endpoint to return Json Schema Schema returned can be for specified type within Tosca Service Template Added Camel in runtime endpoint to proxy the Schema endpoint Dependency added to pom for the json schema generation Issue-ID: POLICY-3439 Change-Id: I2a98ce16dfb3761a174c90f4b965d1a37a0d8576 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-12Merge "Add Camel Endpoint ControlLoop Instantiation"Jim Hahn2-0/+68
2021-07-08Add Camel Endpoint ControlLoop Instantiationbrunomilitzer2-0/+68
Added Camel Endpoint so that it connects with the ControlLoop Rest endpoint to create a new instantiation. Issue-ID: POLICY-3436 Change-Id: Idf3bda8a6226f57836d887f9d7a7b66327446858 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-07-07Add swagger models for swagger endpoint generationliamfallon1-7/+0
The swagger models dependency is required to generate the swagger for the Swagger endpoint in Springboot applications. Springboot needs Jackson annotations as well. Issue https://jira.onap.org/browse/POLICY-3465 opened for the general Swagger upgrade work. Issue-ID: POLICY-3424 Change-Id: Ie86db5652be26df085234f0699f0363081d06af0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-07-06Fixed failing camel endpoint testsaul.gill1-1/+1
Previously passed integration test failing Simple fix of the URL in the route Issue-ID: POLICY-3440 Change-Id: Icd1fcd3e27c3ec632ee07c2ae1bdb2126342cf16 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-05Merge "Added ITs for Commissioning Camel Endpoints"Liam Fallon10-144/+167
2021-07-02Added ITs for Commissioning Camel Endpointssaul.gill10-144/+167
Changed emulator to deal with new endpoint tests Added spring property to deal with camel endpoint issue Fixed lingering checkstyle violations Issue-ID: POLICY-3440 Change-Id: I5810913c4418e7893f3ad848618deec1b1a85a0f Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-01Restore swagger generation in CLAMPliamfallon5-69038/+21
THis patch restores the Swagger generation in CLAMP. It changes the target directory for the swagger generation to be the target directory rather than storing the generated Swagger files in the source repository. The reason for this is that it avolds the swagger.json, the swagger.html, and the swagger.pdf files being generated each time a build is done and being checked in multiple times. The swagger files will be produced as an artifact from the build in a later review when all the swagger documentation for CLAMP is consolidated. Issue-ID: POLICY-3209 Change-Id: I6ccb446d01509232bbd4230b76bd7950858e1437 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-30Update CLAMP: checkstyle 8.43/Spring dependenciesliamfallon11-651/+555
Updates are indentation changes on annotations and rationallization of the dependencies for Spring/Springboot Generation of swagger.json, swagger.html and swagger.pdf temporarily disabled due to a missing dependency in the generation toolchain. Issue-ID: POLICY-3209 Change-Id: Iff5881df45ef54b20fa30f63e2393cc1cdbf4bfe Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-22Added Camel Endpoint for Tosca Instantiationbrunomilitzer2-0/+58
Endpoint redirects GET to runtime instantiation Issue-ID: POLICY-3357 Change-Id: Idf733c2803be2f6ab5cc681d583c1c6b46b2ce96 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-06-22Merge "Re clean up clamp project properties and dependencies"Liam Fallon1-37/+15
2021-06-21Merge "Added Camel Endpoint for Tosca Template Upload"Jim Hahn6-3018/+4161
2021-06-20Merge "Clean up CLAMP Sonar and checkstyle issues"Liam Fallon35-329/+328
2021-06-18Re clean up clamp project properties and dependenciesryanSheehan1-37/+15
Remove version duplication from clamp projects runtime, dcae kubernetes, policy participant and simulator Issue-ID: POLICY-3308 Change-Id: I316b3b0313608c5d17c9692f44d653afabc2d596 Signed-off-by: ryanSheehan <ryansheehan.est@gmail.com>
2021-06-17Added Camel Endpoint for Tosca Template Uploadsaul.gill6-3018/+4161
Endpoint redirects a POST to runtime commissiong API Tosca Service Template is written to the database Issue-ID: POLICY-3222 Change-Id: I9ca6b0b3fdbef4bf9a182795112de5280ec7f9ff Signed-off-by: saul.gill <saul.gill@est.tech>
2021-06-17Clean up CLAMP Sonar and checkstyle issuesliamfallon35-329/+328
This commit cleans up sonar and checkstyle issues identified in the CLAMP repository. Issue-ID: POLICY-3206 Change-Id: I16b61bbe771cc17de15183a24b2a5e82a8d35872 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-17Prepare controlloop docker imagesSirisha_Manchikanti1-10/+0
Generate runtime, policy-participant and dcae-participant docker images. Issue-ID: POLICY-3320 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I310fd2a098aa48a6a50a9bf6bd2bcb55328f4973
2021-06-16Merge "Remove duplicate properties in clamp repo"Liam Fallon1-30/+8
2021-06-15Merge "Create camel endpoint to get tosca from runtime"Liam Fallon10-118/+63637
2021-06-11Create camel endpoint to get tosca from runtimesaul.gill10-118/+63637
Endpoint points to Runtime Tosca Service Template endpoint Added new authorization role for control loop Credentials in configuration file Issue-ID: POLICY-3222 Change-Id: I86f8cc5751547abfa15e10903d7e2fb2854f1ece Signed-off-by: saul.gill <saul.gill@est.tech>
2021-06-10Remove duplicate properties in clamp reporyanSheehan1-30/+8
Removes properties, dependency and plugin versioning duplication from dcae-participant and runtime, future reviews will handle other participants like kubernetes Issue-Id: POLICY-3308 Change-Id: I98f9a36e9f984766b469c862f3298ca9120657e4 Signed-off-by: ryanSheehan <ryansheehan.est@gmail.com>
2021-06-09Initial commit for kubernetes participant in CLAMPliamfallon1-1/+0
Spring application that exposes REST end points for installing, uninstalling, onboarding and deleting of helm charts to/from local directory. CL runtime can also trigger installation and uninstallation of helm charts from both local and configured helm repositories. Junits will be committed as a separate review. Issue-ID: POLICY-3240 Change-Id: I7633b6fd6ad41fc8fa55d3722e44f1b2ec132e50 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Signed-off-by: liamfallon <liam.fallon@est.tech>