<div dir="ltr"><div>Hi<br><br></div><div>The problem is definitely in mock - some part of keystoneclient package is actually called (having a real api request) but it should be mocked instead.<br></div><div>Unit test expects that <span class=""><span class=""></span>keystoneclient.v2_0<span class=""> is discovered, but we have something else instead.<br><br></span></span><span class=""><span class="">In latest rally version this unit test works fine (I've checked this right now).<br><br></span></span></div><div><span class=""><span class="">I</span></span><span class="">t is important to have real code available to make deeper investigation, since<span class=""> you use custom package </span></span><span class="">rhos-cert-client/tests/rhcert/suites/openstack/<br></span></div><div><span class="">is based on rally code, but osclients.py significantly differs from its brother from rally project (according to line numbers from paste).<br><br></span></div><div><span class="">Can you provide your modules osclients.py and test_osclients.py?<br></span></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 29, 2016 at 11:59 AM, Sudhir Verma <span dir="ltr"><<a href="mailto:sverma@redhat.com" target="_blank">sverma@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
        I am running the rally test <a href="https://github.com/openstack/rally/blob/master/tests/unit/test_osclients.py#L87" rel="noreferrer" target="_blank">https://github.com/openstack/rally/blob/master/tests/unit/test_osclients.py#L87</a> there is a function "test_create_keystone_client_v2"<br>
when i am testing that function i am getting an error i.e: "keystoneclient.openstack.common.apiclient.exceptions.ConnectionRefused: Unable to establish connection to <a href="http://auth_url" rel="noreferrer" target="_blank">http://auth_url</a>"<br>
<br>
The error is:<br>
<a href="http://paste.openstack.org/show/485380/" rel="noreferrer" target="_blank">http://paste.openstack.org/show/485380/</a><br>
<br>
Thanks & Regards,<br>
Sudhir Verma<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>