From 1474cbb0aec7a0636d4d53ad09eba501d9c75458 Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Mon, 24 Jun 2019 15:52:59 +0000 Subject: Add CBS https/tls support Issue-ID: DCAEGEN2-1551 Change-Id: I657d13ec87e051bd4836bd4c42385a580eaebe01 Signed-off-by: Tommy Carpenter --- onap-dcae-cbs-docker-client/README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'onap-dcae-cbs-docker-client/README.md') diff --git a/onap-dcae-cbs-docker-client/README.md b/onap-dcae-cbs-docker-client/README.md index 5c5c986..d38c515 100644 --- a/onap-dcae-cbs-docker-client/README.md +++ b/onap-dcae-cbs-docker-client/README.md @@ -4,16 +4,14 @@ Used for DCAE Dockerized microservices written in Python. Pulls your configurati # Client Usage -The environment that this client runs in, whether it be in Docker or "natievely", needs to have the following env variables: +The environment that this client runs in, whether it be in Docker or "natively", needs to have the following env variables: 1. `HOSTNAME` is the name of your component in Consul 2. `CONFIG_BINDING_SERVICE` a resolvable hostname to the CBS +3. If the CBS is running as HTTPS: `DCAE_CA_CERTPATH`: a path to a cacert file to verify the running CBS ## Usage in your code - >>> from onap_dcae_cbs_docker_client import client - >>> client.get_config() - >>> client.get_all() - +See the `example` folder for a simple test client. If the CBS is reachable, but your configuration key is not there, you will get a CantGetConfig exception: @@ -25,7 +23,6 @@ If the CBS is unreachable, you will get an exception: onap_dcae_cbs_docker_client.exceptions.CBSUnreachable - # Installation ## Via pip -- cgit 1.2.3-korg