aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/modules/commons/rest-lib/src
AgeCommit message (Collapse)AuthorFilesLines
2022-09-01Http 204 response results with exception in rest resolutionFrank Kimmlingen2-3/+92
Issue-ID: CCSDK-3746 Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de> Change-Id: I740c970de631e58902e6f92b9069aee8d3ae075b
2022-08-24Refactor rest clients and support timeoutsLukasz Rajewski6-312/+384
- Refactored rest clients to remove redundant code - Timeouts added to the configuration of rest clients Issue-ID: CCSDK-3716 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I706b8efd8447570455b8b65bd5b1a22da474f62b
2022-06-07Improve log format consistencyJozsef Csongvai1-0/+2
Logs related to request processing should include: requestId, subrequestId and originatorId. Each API (rest,grpc,kafka) would produce different outputs, due to MDC context not being passed properly between coroutine contexts or values not being populated. Issue-ID: CCSDK-3686 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: Ibafdffd3409b9724ad91633ca5840070f7e287f5
2022-05-19Override Request ID in MDC ContextJulien Fontaine1-2/+15
Issue-ID: CCSDK-3676 Signed-off-by: kuldipr <kuldip.rai@amdocs.com> Change-Id: I6b0a816fcb40e149be1818f9edc9d4839f1a4cf6
2021-07-28Revert "Renaming Files having BluePrint to have Blueprint"Jozsef Csongvai9-81/+81
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-04-07Remove trust all for BasicAuthRestClientServiceClaudio D. Gasparini1-18/+0
following global requirement expected in Istanbul, which forbids disabling host name verification Issue-ID: CCSDK-3245 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com> Change-Id: I89c37a94cb3999a8f1813d3fc33958421b183de1
2021-03-25Address some pendings items for SSLBasicAuthRestClientClaudio D. Gasparini5-27/+50
- FIXME under SSLBasicAuthRestClientProperties - TODO under SSLBasicAuthRestClientPropertiesBuilder Issue-ID: CCSDK-3235 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com> Change-Id: If00c7491573c69eb5d3f9192f54c7b384943abf7
2021-03-23Fix Certificate Exception when using BasicAuthRestClientServiceClaudio D. Gasparini1-0/+18
by using TrustAllStrategy Issue-ID: CCSDK-3234 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@intl.att.com> Change-Id: I7ee63739b4f1d7a4ddbc618ba660704aa058752a
2021-01-22Renaming Files having BluePrint to have BlueprintKAPIL SINGAL9-75/+75
Replacing BluePrint with Blueprint throughout Issue-ID: CCSDK-3098 Signed-off-by: KAPIL SINGAL <ks220y@att.com> Change-Id: Ibee8bad07ae7d9287073db2d4f2f2cd730fa8b96
2020-12-14Updating parent pom version to 2.1.1-SNAPSHOTSingal, Kapil (ks220y)1-1/+1
Comenting out testSampleAaiReq from RestClientServiceTest.kt as this is causing verify job timeout Issue-ID: CCSDK-3046 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I38d88814335b83167597c1a24162ad3c743355f3
2020-11-12Remove URI encoding in BlueprintWebClientServiceJozsef Csongvai2-22/+6
Malformed uri's should be handled by resource resolution in the cba Issue-ID: CCSDK-2980 Change-Id: I5c1cf97519a882ff5cf99e9850c65df9ba6d9c36 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2020-10-21Update AAI endpoints to /aai/v22 for HonoluluLasse Kaihlavirta1-11/+11
- Update all /aai/v21 references to /aai/v22 for Honolulu - note that the previous https://gerrit.onap.org/r/c/ccsdk/cds/+/114057 was for Guilin only Issue-ID: CCSDK-2914 Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> Change-Id: I8103b12610a9de7263789a0852140f2f0bb09393
2020-10-20Update AAI endpoints to /aai/v21Lasse Kaihlavirta1-11/+11
- Update all /aai/v14 references to /aai/v21 to resolve certificate problems in CDS when trying to resolve attribute values with aai-data source Issue-ID: CCSDK-2914 Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> Change-Id: I6b150348b66e93b3d08ceaa49fa997d531ddb0e4
2020-09-22Enabling Code FormatterSingal, Kapil (ks220y)11-206/+241
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-08-24Add request IDs in command-executor logJulien Fontaine1-0/+9
* 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-05-19Fix incorrect encoding for query paramsJozsef Csongvai2-1/+37
Issue-ID: CCSDK-2380 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I3a49f2c5a3a29383e43e2a4a3d6a9c13a9f933c2
2020-05-18Add Naming Service & IP Assign custom resource resolution capabilityPaira, Saurav(sp694w)1-3/+3
Issue-ID: CCSDK-2185 Signed-off-by: Paira, Saurav(sp694w) <sp694w@att.com> Change-Id: I70550fe9582b2db0a70c7b66591438b674173411
2020-02-26Merge SW Upgrade Blueprint into PNF_AAI and create one UAT BP for PNFgummar1-1/+3
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-01Expose rest API with non blocking call.Brinda Santh1-0/+28
Convert Mono and Flux to coroutines Convert reactor mdc to coroutine mdc Issue-ID: CCSDK-2052 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: Ic58c0b74866d28fd2d803b96626b08f8e8b2db56
2020-01-13Add uri-encoding to webclientJozsef Csongvai1-6/+9
Path params are not uri-encoded, which can cause failed rest calls if resolved params include characters such as whitespace Issue-ID: CCSDK-2024 Change-Id: Iac57219260ac94897e09e3cb9d1d5884d86b83ae Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
2019-12-31Flexible DSL Types and Templates definition.Brinda Santh2-7/+22
Easy search definitions Types and Templates inside ServiceTemplate DSL builder. Unit test modifications to support this change. Issue-ID: CCSDK-1054 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: Ie944ff5f75f80c852555306e1a4e0fa7f5b803d7
2019-12-30Relationship Type and Templates modelsBrinda Santh3-60/+124
Enrichment Support for Relationship Types and Templates. Relationship DSL support for ConnectTo connections ( RestClient, SshClient, MessageProducer, MessageConsume, Nats) Moved datatype map from collection to complex type Issue-ID: CCSDK-1054 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I0f18db2cb52e1e93dfab04498b8298587cba2540
2019-12-06Remote Script Executor ComponentBrinda Santh1-4/+3
Define and Implement component-remote-script-executor component and DSL. Get the timeout from model definitions fix the dat pattern issues Define API data extension functions. Issue-ID: CCSDK-1975 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I41a429eb21a050e5ab512a7a73a394b975543f31
2019-11-26Formatting Code base with ktlintSingal, Kapil (ks220y)14-254/+383
No Business logic change, just the code format. Competible with IntelliJ: https://github.com/pinterest/ktlint#option-3 To format run: mvn process-sources -P format Issue-ID: CCSDK-1947 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: Ic9e9209fb7023d77f434693ad5a01229f8d09331
2019-11-09Convert component functions IT to UT.Brinda Santh3-36/+36
Issue-ID: CCSDK-1735 Convert Netconf and Restconf Executor IT to UT. Remove duplicate BluePrintProperties. Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I2eafdbabb17a4df72541ab93c46e7fc9eb0fe8d7
2019-11-07Add rest client invocation log tracing.Brinda Santh2-1/+19
Issue-ID: CCSDK-1046 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: Ie44a1b2628132aa44bc923a4d622544db03b46b0
2019-11-07Merge "Refractor rest log tracing filter for reuse."Dan Timoney1-0/+38
2019-11-04Removing dead code... DME2 does nothing...Oleg Mitsura4-56/+3
Issue-ID: CCSDK-1897 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I5b9abb83f9c2e2a4329a393fb8c0fa10801a770c
2019-11-01Refractor rest log tracing filter for reuse.Brinda Santh1-0/+38
Issue-ID: CCSDK-1046 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I0ef0627851041b80f63c907c165c9eff5972a973
2019-10-31Merge "Add Message tracing logger service."Dan Timoney1-1/+3
2019-10-31Merge "Add GRPC log tracing service."Dan Timoney1-0/+124
2019-10-28Add Message tracing logger service.Brinda Santh1-1/+3
Issue-ID: CCSDK-1046 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I509df82ec558cd96934043a5b41ea53aa040cc81
2019-10-22Add GRPC log tracing service.Brinda Santh1-0/+124
Issue-ID: CCSDK-1046 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I4ba6ed11d8fb63c21b9c49774ed733cca05c5646
2019-10-07Implemented UAT runtime servicesebo1-7/+35
Issue-ID: CCSDK-1759 Change-Id: I9e3df315074bfcfa5e341feefdabd00671194dc3 Signed-off-by: ebo <eliezio.oliveira@est.tech>
2019-09-18Merge "Optimizing Imports and Formatting code"Brinda Santh Muthuramalingam3-21/+2
2019-09-18Merge "SSLRestClientProperties does not allow ignoring hostname ↵Dan Timoney2-3/+10
discrepancies with certificate, when doing SSL negotiation."
2019-09-18SSLRestClientProperties does not allow ignoring hostname discrepancies with ↵Serge Simard2-3/+10
certificate, when doing SSL negotiation. Issue-ID: CCSDK-1732 Signed-off-by: Serge Simard <serge@agilitae.com> Change-Id: I6e8d63b1f24abcd0098db471d18d2a55e45de3f9 Signed-off-by: Serge Simard <serge@agilitae.com>
2019-09-18Optimizing Imports and Formatting codeSingal, Kapil (ks220y)3-21/+2
No Business logic change, no code change.. just optimizing imports and reformatting code Issue-ID: CCSDK-1744 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I1fb2ed10525a6f392f3c0d963c2ed03cfe8dec7e
2019-09-16Changing line separator type to LFSINGAL, KAPIL (ks220y)2-51/+51
Changed Line Separator for all files using find . -type f -not -name .* -exec dos2unix {} \; Issue-ID: CCSDK-1733 Signed-off-by: SINGAL, KAPIL (ks220y) <ks220y@att.com> Change-Id: I2efa3276c35c0a0159c6d4debe21c0bd0b4a7b85
2019-09-08HTTP headers feature for BP REST endpoints def'nsOleg Mitsura7-201/+488
Issue-ID: CCSDK-1341 Change-Id: I2da6a19ddea137c0fb868a413f77a45c1def3877 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-08-09Add declarative acceptance testsEliezio Oliveira1-2/+2
First two UATs are for blueprints Echo and "PNF Configuration". The body of the ODL mount request was changed from XML to JSON, so it can be represented in a YAML file. Initial documentation about the UATs can be found at components/model-catalog/blueprint-model/uat-blueprints/README.md BluePrintArchiveUtils.recurseFiles() replaced by compressFolder() that uses native Java 7. Removed commons-compress as dependency since is no longer used. Change-Id: I96a584ae12ca009f90fe8fe9485eb57ce05e8add Issue-ID: CCSDK-1569 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-07-30Add rest client DSL propertiesBrinda Santh4-0/+199
Change-Id: Ibb52f1c6581b532aff49e7410d29e19c645f7d23 Issue-ID: CCSDK-1380 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-07-23Clean restconf duplicate models and Implementation.Brinda Santh1-42/+45
Change-Id: Id439ac5ded631aac0ee7fc69846ebe9bca650bb2 Issue-ID: CCSDK-1499 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-07-08Re-enabled RestClientServiceTestEliezio Oliveira1-57/+50
Secondary HTTP server switched from blocking Tomcat to reactive Netty Change-Id: I44ae3e4d1f4f1af1335a94032f236a1023dbdea0 Issue-ID: CCSDK-1447 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-06-25Refractor blueprint script dependencyBrinda Santh1-0/+20
Change-Id: I2e6b4dd278c1a4a3069a44f648129599365909d4 Issue-ID: CCSDK-1428 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-05-27Remote AWX ansible playbook executorSerge Simard1-0/+9
Issue-ID: CCSDK-1357 Change-Id: I794ce5450b341606829a1a37d9efed48abab32cc Signed-off-by: Serge Simard <serge@agilitae.com>
2019-05-15BlueprintWebClientService: added return statusOleg Mitsura2-137/+119
Issue-ID: CCSDK-1331 Change-Id: I8dab8ad4eaebf1863f11c4d38c52cf7f64b0a4d5 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-05-02UT for Rest libjanani b1-2/+20
Added the lib test cases which will not cause jenkins delay Issue-ID: CCSDK-1229 Change-Id: I1aff85ec3956fdcef806a9657ee3472a35b27f74 Signed-off-by: janani b <janani.b@huawei.com>
2019-04-24Multiples fixesAlexis de Talhouët2-1/+4
Change-Id: I83782006dc47a224e546b6877070d5e7e56dd2e6 Issue-ID: CCSDK-1215 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> Delete the deployed blueprint if overriten Change-Id: I7e4f3a5c98388a965ef756467497ed31d23bc047 Issue-ID: CCSDK-1215 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> Fix enhancement of workflow step for component Change-Id: I62c7904265495edb2b0a5bec0d64cfecd7573f97 Issue-ID: CCSDK-1168 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> Update golden package Change-Id: I969fe9cf9b563911ebe4500fe8f3211aedb84593 Issue-ID: CCSDK-1231 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> Do not fail to get execution property When prepareEnv fail, we should not fail by saying to property is not set. So set it as N/A until is get sets further done in the processing Change-Id: I06b9fcb9b1cf9e1605cef77864da9dbd18243800 Issue-ID: CCSDK-1215 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-04-02Updating Rest code for AAI resolutionjanani b11-181/+814
This commit includes, i) Updated the SSL based rest connection for different auth support ii) Checked the co-routines based rest connection Issue-ID: CCSDK-692 Change-Id: Ic2fe5e5292c9190670d2a573598d78e94f59efb0 Signed-off-by: janani b <janani.b@huawei.com>