diff options
author | 2022-08-19 12:56:56 +0000 | |
---|---|---|
committer | 2022-08-19 12:57:10 +0000 | |
commit | dac22d93c804780f2dc20164aeb44fc80a30890d (patch) | |
tree | 7bd19b04ffa5e8fb049068d9de79778eeed140de /tests/test_binding.py | |
parent | 554b15356ef100a3617f7f5415f6a35ac2b3ebba (diff) |
lots of cleanup, no functional code changes
Change-Id: I9eefe4d34ae226bbd5a6f80422f89baeeaeb3471
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Issue-ID: DCAEGEN2-2837
Diffstat (limited to 'tests/test_binding.py')
-rw-r--r-- | tests/test_binding.py | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/tests/test_binding.py b/tests/test_binding.py index 5ed6532..ae3221f 100644 --- a/tests/test_binding.py +++ b/tests/test_binding.py @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (c) 2017-2021 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2022 AT&T Intellectual Property. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. # Copyright (c) 2021 Samsung Electronics. All rights reserved. # Copyright (c) 2021 Fujitsu Ltd. @@ -45,7 +45,26 @@ def disable_proxy(monkeypatch): @httpretty.activate def test_resolve_all(disable_proxy): - htbtmsg = '{"event":{"commonEventHeader":{"startEpochMicrosec":1518616063564475,"sourceId":"587c14b3-72c0-4581-b5cb-6567310b9bb7","eventId":"10048640","reportingEntityId":"587c14b3-72c0-4581-b5cb-6567310b9bb7","priority":"Normal","version":3,"reportingEntityName":"TESTVM","sequence":10048640,"domain":"heartbeat","lastEpochMicrosec":1518616063564476,"eventName":"Heartbeat_vVnf","sourceName":"TESTVM","nfNamingCode":"vVNF"}}}' + htbtmsg = ( + "{" + '"event": {' + ' "commonEventHeader":{' + ' "startEpochMicrosec":1518616063564475,' + ' "sourceId":"587c14b3-72c0-4581-b5cb-6567310b9bb7",' + ' "eventId":"10048640",' + ' "reportingEntityId":"587c14b3-72c0-4581-b5cb-6567310b9bb7",' + ' "priority":"Normal",' + ' "version":3,' + ' "reportingEntityName":"TESTVM",' + ' "sequence":10048640,' + ' "domain":"heartbeat",' + ' "lastEpochMicrosec":1518616063564476,' + ' "eventName":"Heartbeat_vVnf",' + ' "sourceName":"TESTVM",' + ' "nfNamingCode":"vVNF"}' + " }" + "}" + ) send_url = mr_url + "/events/" + intopic + "/DefaultGroup/1?timeout=15000" print(send_url) httpretty.register_uri(httpretty.GET, send_url, body=htbtmsg) |