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)
"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")