X-Git-Url: https://gerrit.onap.org/r/gitweb?p=multicloud%2Fframework.git;a=blobdiff_plain;f=multivimbroker%2Fmultivimbroker%2Ftests%2Ftest_restcall.py;h=aff2670d246aea17914a196711729c1b6ca83786;hp=8ac1948a0d7c3d06ac1652a65ee57fef4a3c95ee;hb=f3ac12c0056d9db7878bc52c2f3a27171bd5995f;hpb=4f845cea0e410bbac9d65651fdd71036841b688f diff --git a/multivimbroker/multivimbroker/tests/test_restcall.py b/multivimbroker/multivimbroker/tests/test_restcall.py index 8ac1948..aff2670 100644 --- a/multivimbroker/multivimbroker/tests/test_restcall.py +++ b/multivimbroker/multivimbroker/tests/test_restcall.py @@ -49,7 +49,7 @@ class TestRestCall(unittest.TestCase): content = "no content" headers = None restcall.req_by_msb(res, method, content=content, headers=headers) - expect_url = "http://127.0.0.1:10080/" + expect_url = "http://msb.onap.org:10080/" mock_call.assert_called_once_with( expect_url, "", "", restcall.rest_no_auth, res, method, content, headers) @@ -60,7 +60,7 @@ class TestRestCall(unittest.TestCase): "status": "200" } resp_content = "hello" - mock_req.return_value = mock_resp, resp_content + mock_req.return_value = mock_resp, resp_content.encode("utf-8") expect_ret = [0, resp_content, "200", mock_resp] ret = restcall.call_req("http://onap.org/", "user", "pass", restcall.rest_no_auth, "vim", "GET")