diff options
author | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2019-02-26 15:08:37 +0100 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2019-02-27 08:09:11 +0100 |
commit | 4b1062c01ea444f429ca7c51153c2cea5692ed80 (patch) | |
tree | e91d33a0550fec77ac219054dcdc4358f8c89376 /rest-services/cbs-client/src/test/resources | |
parent | ddfb652b619c7e42d84b11930d0453663df63d0b (diff) |
CBS lookup algorithm
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>
Diffstat (limited to 'rest-services/cbs-client/src/test/resources')
-rw-r--r-- | rest-services/cbs-client/src/test/resources/consul_cbs_service.json | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rest-services/cbs-client/src/test/resources/consul_cbs_service.json b/rest-services/cbs-client/src/test/resources/consul_cbs_service.json new file mode 100644 index 00000000..49b1df20 --- /dev/null +++ b/rest-services/cbs-client/src/test/resources/consul_cbs_service.json @@ -0,0 +1,23 @@ +[ + { + "Address": "10.42.102.75", + "CreateIndex": 1097, + "Datacenter": "dc1", + "ID": "2a69de1b-4c2d-a958-5058-639acc926fde", + "ModifyIndex": 1097, + "Node": "dcae-bootstrap", + "NodeMeta": { + "consul-network-segment": "" + }, + "ServiceAddress": "config-binding-service", + "ServiceEnableTagOverride": false, + "ServiceID": "dcae-cbs0", + "ServiceName": "config_binding_service", + "ServicePort": 10000, + "ServiceTags": [], + "TaggedAddresses": { + "lan": "10.42.102.75", + "wan": "10.42.102.75" + } + } +] |