aboutsummaryrefslogtreecommitdiffstats
path: root/rest-services
AgeCommit message (Collapse)AuthorFilesLines
2019-03-22Add JavaDoc to CBS streams APIPiotr Jaszczyk22-29/+250
Change-Id: Ia702750e0ec6bf54418eafb00523681429d86b22 Issue-ID: DCAEGEN2-1341 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-03-22Support other CBS endpointsPiotr Jaszczyk13-53/+427
Change-Id: I227a8edf6da8398ca58c47e864985dac47c5dfcd Issue-ID: DCAEGEN2-1363 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-03-22Merge "Create an evolution of HTTP Client"Piotr Wielebski17-173/+765
2019-03-22Create an evolution of HTTP ClientPiotr Jaszczyk17-173/+765
* simplify the API * use new http client in old one for compatibility * deprecate old one Issue-ID: DCAEGEN2-1010 Change-Id: Ief681ba536a37b29c10d133c61a1326a003ed308 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-03-21Correcting issues from Sonar (syntax)kjaniak11-31/+28
Change-Id: I569e1ff4ccafeae2278d275d848407070861296f Issue-ID: DCAEGEN2-1342 Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2019-03-20Merge "Kafka streams parsers - additions"Piotr Wielebski46-257/+853
2019-03-19Merge "Add logging to CLoud Http Client debug"Piotr Wielebski1-2/+4
2019-03-19Add logging to CLoud Http Client debugMarcin Migdal1-2/+4
Change-Id: Ibc6f96016a6f3df5682793911c228e3c5e6b0cd8 Issue-ID: DCAEGEN2-1310 Signed-off-by: mmigdal <marcin.migdal@nokia.com> Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-19Kafka streams parsers - additionsPiotr Jaszczyk46-257/+853
Change-Id: I98ca661682b41d76d3de668d6faeb6ebe02f92a8 Issue-ID: DCAEGEN2-1341 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-03-19Merge "Remove modification of Http Headers"Piotr Wielebski3-18/+0
2019-03-19Remove modification of Http HeadersMarcin Migdal3-18/+0
Change-Id: I62c6750995e8b88bbd65018e4532192cfc678d6b Issue-ID: DCAEGEN2-1310 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-19Implement StreamParserkjaniak32-34/+1029
Change-Id: I3ee50ad70bb107fa39f227af7dab67948b7dbe4b Issue-ID: DCAEGEN2-1342 Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2019-03-19Change CloudHttpClient API parse ArrayMarcin Migdal4-7/+14
Change-Id: I1127ab28ee4f0e482540829f26acfc1bc8f5667c Issue-ID: DCAEGEN2-1310 Signed-off-by: mmigdal <marcin.migdal@nokia.com> Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-14Implement Kafka stream definition parsersPiotr Jaszczyk25-57/+937
Change-Id: I43215c1c2494b6036deb004891fb76bfd2b74474 Issue-ID: DCAEGEN2-1341 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-03-12Merge "add post request test"Piotr Jaszczyk1-12/+43
2019-03-11Emit error on service discovery failureFilip Krzywka8-7/+72
- moved cbs-client exceptions to single API module Change-Id: I1b0d45f231d39b600beebb7fad1ef2dba941dbad Issue-ID: DCAEGEN2-1302 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
2019-03-11Merge "Merge MerkleTree and MTNode"Piotr Jaszczyk4-215/+116
2019-03-11add post request testmicdzied1-12/+43
Change-Id: I8d488a48b68d99d72439901616a5e3053aa836fd Issue-ID: DCAEGEN2-1315 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2019-03-08Change CloudHttpClient APIMarcin Migdal5-15/+23
Change-Id: Icbbe871e71c6bb46aba7411b9f9016af14c5eab9 Issue-ID: DCAEGEN2-1310 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-08Merge "DMaaP client remove Spring"Piotr Wielebski16-214/+247
2019-03-08DMaaP client remove SpringMarcin Migdal16-214/+247
Change-Id: I9e0206d4b3c737df8a80944f0050871c1ad307c6 Issue-ID: DCAEGEN2-1310 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-08add tests for patch requestmicdzied2-23/+79
Change-Id: I9af4698e80d6d7c840ae6eba0e08323e1e8ea852 Issue-ID: DCAEGEN2-1315 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2019-03-07add get request testmicdzied3-5/+64
Change-Id: I94a4337ca2a335587382c9965f6543af619e16ea Issue-ID: DCAEGEN2-1315 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2019-03-06Refactor of AAI HTTP ClientsMarcin Migdal4-97/+66
Change-Id: I020fb8342e70c159392aef913183bed94796a7ba Issue-ID: DCAEGEN2-1277 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-03-06Remove DefaultUriBuilderFactory from DMaaP ClientMarcin Migdal1-10/+15
Change-Id: Ia1e340455ebaf9db492670dbec56229af0425036 Issue-ID: DCAEGEN2-1310 Signed-off-by: mmigdal <marcin.migdal@nokia.com> Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-06Merge "Update patch version to 1.1.4"Piotr Wielebski5-5/+5
2019-03-06Update patch version to 1.1.4Marcin Migdal5-5/+5
Change-Id: I305408bae2b3adbc6d474b07f9142905056f3723 Issue-ID: DCAEGEN2-1310 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-06add plugin and dummy testsmicdzied1-0/+43
Change-Id: I37bf5ee0c0750b29c6deedf7ae77b6b7dc0f23bc Issue-ID: DCAEGEN2-1315 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2019-03-05add junit testsmicdzied3-1/+86
Change-Id: I6b7c80dbdd6043842777f950f215317ff063aeab Issue-ID: DCAEGEN2-1310 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2019-03-05Spring removalMarcin Migdal1-6/+41
Change-Id: I7f886d6817d3491f27b9f217d52ccaf3e421c530 Issue-ID: DCAEGEN2-1310 Signed-off-by: mmigdal <marcin.migdal@nokia.com> Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-05Merge MerkleTree and MTNodeIzabela Zawadzka4-215/+116
Change-Id: Iffe72a0f40a8e608fa7f0a6424eacc21f196e167 Issue-ID: DCAEGEN2-1303 Signed-off-by: Izabela Zawadzka <izabela.zawadzka@nokia.com>
2019-03-01Model streams1.1.3Piotr Jaszczyk28-27/+515
Issue-ID: DCAEGEN2-1255 Change-Id: I955e7eb3cfe20efd06f484b6c8d2c5cd6a7ee200 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-03-01Merge "Improve ListenableCbsConfig"Piotr Jaszczyk5-54/+116
2019-03-01Correct Consul port numberkjaniak1-1/+1
Change-Id: I118c60e662966ba5908c2312184183ecdb7aca40 Issue-ID: DCAEGEN2-1304 Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2019-02-28Improve ListenableCbsConfigJakub Dudycz5-54/+116
Change-Id: I6a3d7cbf78fef398b9b82080e6ce762dcfe24376 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com> Issue-ID: DCAEGEN2-1274
2019-02-28Merge "Remove Spring stuff from DMaaP"Piotr Jaszczyk13-148/+95
2019-02-28Remove Spring stuff from DMaaPMarcin Migdal13-148/+95
Change-Id: Id441d0dce89fcb24b5558af7bdf996a74eba78e6 Issue-ID: DCAEGEN2-1245 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-02-28Emit CBS config updates onlyPiotr Jaszczyk8-4/+111
Add an update method to CbsClient which emits an item only when the configuration has accentually changed. Change-Id: I6023fb1cc069b06bd2c4baf94406538965b6534c Issue-ID: DCAEGEN2-1233 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-02-27Merge "Add MDC support to CBS client"Piotr Wielebski14-63/+320
2019-02-27Add MDC support to CBS clientPiotr Jaszczyk14-63/+320
Change-Id: Id1f1f9016b03658eca0afd0bd3bd724afc0bea96 Issue-ID: DCAEGEN2-1233 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-02-27Remove Spring stuff from DMaaPMarcin Migdal2-6/+9
Change-Id: I68f4e1f398505b94053acb0999450b67906029b4 Issue-ID: DCAEGEN2-1245 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-02-27Implement CBS ClientPiotr Jaszczyk8-64/+344
Change-Id: I6736dd6ea7598beb8542274a91fcb3967fac9c89 Issue-ID: DCAEGEN2-1233 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-02-27CBS lookup algorithmPiotr Jaszczyk13-30/+319
Implement CBS lookup algorithm as docummented on https://wiki.onap.org/display/DW/MicroServices+Onboarding+in+ONAP#MicroServicesOnboardinginONAP-CodesnippettofetchconfigurationfromConfigbindingservice Change-Id: Ib465c5fd44b853ba46e152259744dbdd775872a0 Issue-ID: DCAEGEN2-1233 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-02-26Remove usage of Spring in SDK IIpwielebs10-780/+0
- AAI Http Clients Change-Id: Id83a72699e860d1d71f0bdcd2e977c6c0cfc113e Issue-ID: DCAEGEN2-1277 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-02-26Remove Spring stuff from CBSMarcin Migdal8-159/+57
Change-Id: I68f4e1f398505b94023acb0999450b67906029b4 Issue-ID: DCAEGEN2-1245 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-02-26Remove usage of Spring in SDKpwielebs7-2/+375
- AAI Http Clients Change-Id: I28c563508977162eacb35a09f2a6c3b932535cd2 Issue-ID: DCAEGEN2-1277 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-02-21move URI classmicdzied3-13/+23
Change-Id: I4e923f0426ecccda6de973400a022e4d86780d4f Issue-ID: DCAEGEN2-1267 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2019-02-20Parse JsonObject to MerkleTreeFilip Krzywka2-0/+288
Change-Id: I424eec2c4c47ddff1bff3ef612a7b31a62e1cf3e Issue-ID: DCAEGEN2-1254 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
2019-02-20PoC of change-based configuration using MerkleTreePiotr Jaszczyk8-5/+836
The goal of this MR is to check if storing application configuration fetched from CBS in Merkle Tree would be a good approach. CoS: - it should be possible to refetch configuration at some intervals - any new update should trigger changes in affected modules, ie. change of dmaap topics should trigger changes in dmaap client but not in aai client In order to satisfy this requirement a MerkleTree-based solution was proposed. The structure keeps track of hashes of each node and its subnodes. In case of a change in one branch the hash of other sibling branch will not change. Change-Id: I034be0f67d8522025a49a6ac8311b7efb8452765 Issue-ID: DCAEGEN2-884 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
2019-02-19Add http put AAI client for SDKpwielebs3-1/+236
Change-Id: I28c563508977162eacb35a09f2a6c3b932535b52 Issue-ID: DCAEGEN2-1246 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>