aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/application/src/main
AgeCommit message (Collapse)AuthorFilesLines
2023-09-26Make UatServices.verify working for bigger cba'sFrank Kimmlingen1-5/+4
use awaitSingle to synchronize creation of the temp zip file and the access to this file. Issue-ID: CCSDK-3934 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Change-Id: I908a251be76e4abfee5986729ae84b7f27057280
2023-03-29Change dockerfiles to use ccsdk java17 base imageLukasz Rajewski1-2/+2
Issue-ID: CCSDK-3813 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I098eed2a911811c99473c0ac67fc34db8415c284
2023-03-29K8sPlugin: support UAT functionalityFrank Kimmlingen2-18/+76
K8sAbstractRestClientService and all derived classes K8sQueryRestClient K8sRbInstanceRestClient K8sDefinitionRestClient K8sUploadFileRestClientService does not support the spy / verify functionality of UatExecutor / UatServices Issue-ID: CCSDK-3872 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Change-Id: Iee30f48e9d86efd07a2ab6dde0d5743e4657934f
2023-03-17Enable JUnit tests and porting to java 17Frank Kimmlingen1-16/+15
JUnit tests are no more executed: spring-boot-starter-test does not execute any junit4 tests by default Fix enable tests and adopts the tests moslty to java 17 runtime Issue-ID: CCSDK-3859 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I02a8d25350ca62262bfc6e07c2865cd8d7b4e6b2
2022-10-25UatExecutor does not support complex test scenariosFrank Kimmlingen2-4/+33
Issue-ID: CCSDK-3793 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Change-Id: I6bb03a8e03a37aa9e87d381075bc5de8cadcc7f2
2022-09-09Make UatExecutor accessible inside a CBA JUnit testFrank Kimmlingen1-4/+4
Issue-ID: CCSDK-3748 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Change-Id: Icbc0a44d91fd08f2e06a12bcdf016655a2b2282d
2022-09-01SpyPostInterceptor in UatExecutor does not collect all responsesFrank Kimmlingen1-2/+6
For one mocked backend system (selector) only the last request/response pair is collected. With this fix all request/response pairs will be collected. Issue-ID: CCSDK-3747 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Change-Id: Iccebdb153752988e1644092a8786891bdb17d5e6
2022-05-19CCSDK-3671 add workflows list for grpcOleg Mitsura1-0/+1
Issue-ID: CCSDK-3671 1. added grpc 'getWorkflows' for BlueprintManagement 2. during CBA upload, the workflows get cached to BLUEPRINT_MODEL.workflows 3. reworked HTTP endpoint to use above "/workflows/blueprint-name/{name}/version/{version}" 4. If CDS is upgraded, with existing CBAs present, fallback by parsing the CBA instead of DB lookup Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I68bebfe23c0b16ea288512f1087bfe1ceef57686
2022-04-12Return errormessages in failing imperative workflowsJozsef Csongvai1-1/+2
Instead of discarding error messages after each node has executed, they are now kept until the workflow completes. If the workflow completes without exceptions, it means that all errors were handled and the error messages can be cleared. If the workflow does complete with exceptions, all error messages will be propagated in the response. Also update UatExecutor to enable expected status codes other than 200. Issue-ID: CCSDK-3630 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I94fd81c342ad2a798e64051c603beb62bf1aaacd
2021-11-29Change load configuration paths for modeltype and resourcedicitonaryfarida azmy1-3/+3
Issue-ID: CCSDK-3516 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: Ibebff38d43b6e2db6f8a0ec38483a691e3ea3449
2021-09-11Merge "CCSDK-3451 Prometheus Metrics for command-executor"KAPIL SINGAL1-0/+1
2021-09-08Merge "Use cert-initializer truststore instead of hard-coded ONAP Root CA"Dan Timoney1-2/+7
2021-09-08Use cert-initializer truststore instead of hard-coded ONAP Root CAwdgp04241-2/+7
Issue-ID: CCSDK-3356 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> Change-Id: I68582d2abae2a1e320ce243406fb5d932c34fb75
2021-09-01CCSDK-3451 Prometheus Metrics for command-executorKuldip Rai1-0/+1
Issue-ID: CCSDK-3451 Signed-off-by: Kuldip Rai <kuldip.rai@bell.ca> Change-Id: Ibd11257037ec6f1941b5dee08cc97177b2c798c9
2021-08-27CCSDK-3434 CBA workflow status storeKavitha P4-1/+53
Change-Id: Iaeac6fa534c569bbc152e6c8a78c2dd23b6c4b1a Signed-off-by: Kavitha P <pkavitha@aarnanetworks.com> Issue-ID: CCSDK-3434
2021-07-28Revert "Renaming Files having BluePrint to have Blueprint"Jozsef Csongvai9-25/+25
The renaming in CCSDK-3098 caused breaking changes to the grpc api and compile issues for kotlin scripts. Issue-ID: CCSDK-3385 Change-Id: I0d745cb858371678eabcb2284671c1fd76a1ab6d Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2021-03-29Fixing DockerFile to avoid IOExceptionSingal, Kapil (ks220y)1-8/+19
chown on /opt isn't enough as files/directory permissions needs change so that onap user can access to execute Even if chown onap:onap was done, it was failing to create/run script due to permission issues Adding noCache to docker-maven-plugin so that it won't pick cached layers Issue-ID: CCSDK-3224 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: Idf56465eff6fa42b523bccfca56f84e93496a8d2
2021-03-17Print process name with UAT assert error messageJozsef Csongvai1-8/+8
Issue-ID: CCSDK-3220 Change-Id: I6ea56454f777017d78bed0bd1755611dac5d5255 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2021-01-22Renaming Files having BluePrint to have BlueprintKAPIL SINGAL9-25/+25
Replacing BluePrint with Blueprint throughout Issue-ID: CCSDK-3098 Signed-off-by: KAPIL SINGAL <ks220y@att.com> Change-Id: Ibee8bad07ae7d9287073db2d4f2f2cd730fa8b96
2020-12-16Refactoring assembly.id and name.spaceSingal, Kapil (ks220y)1-1/+1
Upgrading base onap/ccsdk-alpine-j11-image to version 1.1.0 Issue-ID: CCSDK-3053 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I135893a4ab1d4d3f7c1297d6e66de133bd3c7150
2020-11-27CDS migrate to springfox 3.0.0JakobKrieg1-1/+0
Old dependencies and Annotations removed. Refer official documentation: https://springfox.github.io/springfox/docs/snapshot/#migrating-from-existing-2-x-version Issue-ID: CCSDK-3004 Change-Id: I3f4ce138dc83d74ea1b1e64b0ff4cf5badd3873b Signed-off-by: JakobKrieg <jakob.krieg@bcmsolutions.de>
2020-10-21Fix keytool invocationDan Timoney1-1/+1
Fixed 2 issues with keytool invocation in blueprints-processor start script: 1) removed duplicate '-import' 2) corrected path to cacerts file Issue-ID: CCSDK-2914 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Id454ebca87811bb9c229ca3145148a7c7a93950b
2020-09-22Enabling Code FormatterSingal, Kapil (ks220y)10-67/+92
Code Formatter was turned off due to java 11 migation Issue-ID: CCSDK-2852 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I3d02ed3cc7a93d7551fe25356512cfe8db1517d8
2020-09-18Fixing dockerFileSingal, Kapil (ks220y)1-1/+1
Fixing dockerFile and related items Refactoring pom properties Issue-ID: CCSDK-2794 Change-Id: Ib9d3cc38c2db65778cef2590ab774035305a16fa Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
2020-09-15Fixing DockerFilesSingal, Kapil (ks220y)1-13/+11
refactoring to use onap certified base image and combining run commands Issue-ID: CCSDK-2794 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: Id31d5a0018cbce14e54f4aa3e5caebb75dda2276
2020-09-15Fixing DockerFilesSingal, Kapil (ks220y)1-6/+7
Copying starting script to respective dir as root and then running as user onap Issue-ID: CCSDK-2794 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I2b3c27cc8e3a378f9ceeeb0de62f81de9fc38c6b
2020-09-10JDK11 upgradeOleg Mitsura2-9/+7
Issue-ID: CCSDK-1870 commit2: update surefire plugin to 3.0.0-M5. Need at least M3 for JDK11. S Still TODO: what to do about the spring-boot-parent. it may need a bump as well. commit3: update parent with surefire 3.0.0-M5 commit4: another surefire version update + failsafe version update. commit5: uncomment surefire def'n in parent pom. It may need to be redefined... commit6: update to parent 2.0.1-SNAPSHOT commits... rebasing/minorfixes commit14: disabling HealthCheckApplicationTests test commit19: Kapil bugfixes: Jsonfiles "isForce" replaces (incorrect) "force"; bumps kafka scala version to 2_13 commit20: fixe back kafka scala version to 2_11 commit25: reverted + applied patches for 2_13 (due to springboot parent update) + 'application' pom to use forCount=1 and reuseForks=false and reverted scanUatEmpoweredBlueprints modification in BluepritnsAcceptanceTest commit30: rebase commit31: SDCListener tests fixes. JMockit updated from 1.19 to 1.49. Since 1.42, need to do these changes https://jmockit.github.io/tutorial/Introduction.html#runningTests commit32: Dockerfiles cleanup. adduser/group params are different from Alpine. commit33: Dockerfile for SDClistener typo commit34: Addressed Dan's comments. commit35: Image was changed to 1.0.1 (which will be built soon), and the updated base image will already have 'onap' user and group, hence the adduser/group wouldn't be needed. commit36: rebase commit37: bumped up BP proc maven-surefire-plugin Xmx Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I3d864d500150e7d81bb2ce73333f2db67c004e93
2020-09-07Add k8s-upload-profile node type and logic.Marek Szwałkiewicz2-0/+10
Issue-ID: CCSDK-2630 Change-Id: Icd50ab98503a2c2259c56ced20976579afefd7fc Signed-off-by: Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
2020-08-24Add request IDs in command-executor logJulien Fontaine1-1/+2
* Update gRPC interface to handle SubRequestID and Originator ID * Update command-executor log format to handle request IDs in the log statement * Add SubRequest ID and Originator ID in BP log statement Issue-ID: CCSDK-2687 Change-Id: If261bb0912df5800ed2fc65371c5ee784d6a45fb Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca>
2020-07-24Change EventListener functions to non-blocking scopeJozsef Csongvai1-2/+3
BluePrintProcessingKafkaConsumer and BluePrintProcessorCluster were both defining EventListener functions which were executed with runBlocking. When both were enabled, kafkaconsumer would block and cluster would never run. Issue-ID: CCSDK-2609 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I91813208f0474869f174da6c99280b5159859232
2020-06-12add error-messages_en.properties to the blueprint processor docker imageAbdelmuhaimen Seaudi1-0/+1
Issue-ID: CCSDK-2444 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> Change-Id: Iccdd77676606fc3007568a76402ef0696e6a1653
2020-06-03Set explicit uid and gid in dockerfilesJozsef Csongvai1-1/+1
This fixes permission issues with shared nfs volumes caused by mismatch in dynamically assigned gid and uid between containers. Issue-ID: CCSDK-2398 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Ie47873c98211b280490ee7a6bcc60ceef49dd690
2020-05-19Merge "Add Naming Service & IP Assign custom resource resolution capability"Dan Timoney1-0/+12
2020-05-18Add Naming Service & IP Assign custom resource resolution capabilityPaira, Saurav(sp694w)1-0/+12
Issue-ID: CCSDK-2185 Signed-off-by: Paira, Saurav(sp694w) <sp694w@att.com> Change-Id: I70550fe9582b2db0a70c7b66591438b674173411
2020-05-06Merge "Truncate message published on Kafka / Spike: Define solution for logs ↵Dan Timoney1-4/+12
separation"
2020-05-05Truncate message published on Kafka / Spike: Define solution for logs separationJulien Fontaine1-4/+12
Refactoring of cmd-exec component - Improve display of error messages within the response - Fix gRPC buffer limitation (4Mb) by truncating error messages and cmd-exec logs if too heavy (>3Mb) Truncation of BP responses (<4Kb) before sending them in kafka audit topics. - Truncation if needed of error messages for every response - Truncation of cmd-exec logs in cmd-exec responses (Spike) Add a flag in the application.properties to enable/disable the display of cmd-exec responses on the BP side (Fix) Correction of BP processing with kafka regression (Fix) Changed default SSL Endpoint Algo Issue-ID: CCSDK-2326 Change-Id: If4d0e661117d1dd156cf19c95774824e754d870a Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca>
2020-04-28Merge "Making POD run as non-root"Dan Timoney1-1/+3
2020-04-24Merge "Secure Kafka Authentication"Dan Timoney2-14/+41
2020-04-23Making POD run as non-rootjananib1-1/+3
Non-root user addition Change-Id: Id110aebea3d3526aaf319d8994670644a7bab698 Issue-ID: CCSDK-2149 Signed-off-by: jananib <janani.b@huawei.com>
2020-04-21Secure Kafka AuthenticationJulien Fontaine2-14/+41
Implementation of kafka secure authentication : - SSL - SASL(SCRAM) & SSL Issue-ID: CCSDK-2313 Change-Id: I4b2fc7abab7478e360ebf461608a620d75708f54 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca>
2020-04-15Making POD run as non-rootjananib1-0/+5
Non-root user addition Change-Id: I82995b0c0a6eb815e0422c6072c111c889c8c84a Issue-ID: CCSDK-2149 Signed-off-by: jananib <janani.b@huawei.com>
2020-04-08Publish execution input/output into Kafka topicsJulien Fontaine1-5/+12
- Creation and implementation of PublishAudit services (NoAudit,Kafka) - Conceal of sensitive data (request input parameters) - Update ExecutionServiceHandler tests - Update application.properties file Issue-ID: CCSDK-2183 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Change-Id: Ifc28a91ce588f5ed0010acb4ed22b64429c6c1a0
2020-03-18Fix GroupId and package name in Error CatalogDan Timoney4-6/+6
Issue-ID: CCSDK-2180 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: Ibe00fc1f2a905821b7100ae4f221ea1e0b934894
2020-03-16Update application properties for ErrorCatalogSteve Siani3-9/+68
Issue-ID: CCSDK-2174 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I8d8de812bb560ef2c01bc3bee8dd17f9d6ed1099
2020-03-11Enable generation and exposure of git informationebo1-0/+1
Initially only the blueprintprocessor MS will expose these info. Issue-ID: CCSDK-2165 Change-Id: Id0b994e62a2992942ec1def40566a03615c9df3c Signed-off-by: ebo <eliezio.oliveira@est.tech>
2020-03-11Error Catalog Management Core Library.Brinda Santh6-6/+76
Issue-ID: CCSDK-2076 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I9e8e67bdee77fb359a791f4ef4c2963aa78ab93a Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>
2020-03-04Restored /spy and /verify UatServices endpointsebo10-0/+953
This is a partial reversal of the breaking change introduced by https://gerrit.onap.org/r/#/c/ccsdk/cds/+/100213/ Issue-ID: CCSDK-2155 Change-Id: Ie1e16b8b7d15bd4605cec37e9185419434d75f70 Signed-off-by: ebo <eliezio.oliveira@est.tech>
2020-02-26Merge SW Upgrade Blueprint into PNF_AAI and create one UAT BP for PNFgummar1-2/+2
UAT: Add support to multiple responses for a single request Set property IN_UAT=1 during UAT execution so blueprints can tune their settings to values more suitable for testing (like timeouts) Add 'times' field to specify expected number of invocations Add UAT blueprint script for PNF SW Upgrade UC Add current thread check for Hazelcast distributed lock Resolve URI before returning Issue-ID: CCSDK-2091 Change-Id: Id256bad043488f88f1b60015ebf9ade4be607fa2 Signed-off-by: gummar <raj.gumma@est.tech>
2020-02-17Removed manual shutdown hook for hazelcastSebastien Premont-Tendland4-13/+12
Shutdown hook for hazelcast are already working with spring boot. Just changed the policy to GRACEFUL (default is TERMINATE). This allow hazelcast to shutdown gracefully and recover from a rolling upgrade Also updated the Dockerfile to use multi stage to reduce by ~200Mb the docker image size. Issue-ID: CCSDK-2011 Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca> Change-Id: I0034145c7acefa88ed8d16f23a29249c7225ace3
2020-02-14Cluster CP member promotion as default.Brinda Santh2-1/+4
Issue-ID: CCSDK-2011 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I4df4b442c020fbf9da294a9b35739ca3acb8ee02