diff options
author | Tommy Carpenter <tommy@research.att.com> | 2018-02-23 16:05:45 -0500 |
---|---|---|
committer | Tommy Carpenter <tommy@research.att.com> | 2018-02-23 16:06:42 -0500 |
commit | bfc70e565fd18d10f65d61e233bbf9bf1d770b63 (patch) | |
tree | fa0d0770088d7ceaf27e937d739c3d7241e8ae2b /onap-dcae-cbs-docker-client/tests | |
parent | d1a814370eb3e45368af9d6a76f8ded77cca5c82 (diff) |
Make this compatible with CBS1 and CBS2
Change-Id: I3e221cbc9f7e9554829b2a88f4cc3277a349f1ae
Issue-ID: DCAEGEN2-351
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'onap-dcae-cbs-docker-client/tests')
-rw-r--r-- | onap-dcae-cbs-docker-client/tests/test_client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/onap-dcae-cbs-docker-client/tests/test_client.py b/onap-dcae-cbs-docker-client/tests/test_client.py index 1e4ec13..8512fad 100644 --- a/onap-dcae-cbs-docker-client/tests/test_client.py +++ b/onap-dcae-cbs-docker-client/tests/test_client.py @@ -40,6 +40,11 @@ def monkeyed_requests_get(url): "items": [{"foo2": "bar2"}]}, "otherkey": {"foo3": "bar3"}}) + elif url == "http://666.666.666.666:8888/service_component/mybestfrienddotcom": + return FakeResponse(status_code=200, + thejson={"key_to_your_heart": 666}) + + def test_config(monkeypatch): monkeypatch.setattr('requests.get', monkeyed_requests_get) assert(get_config() == {"key_to_your_heart": 666}) |