yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #29230
[Bug 1430672] [NEW] unit test faield:test_change_password_shows_message_on_login_page
Public bug reported:
ERROR: test_change_password_shows_message_on_login_page (openstack_dashboard.dashboards.settings.password.tests.ChangePasswordTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/test/helpers.py", line 83, in instance_stub_out
return fn(self, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/dashboards/settings/password/tests.py", line 67, in test_change_password_shows_message_on_login_page
res = self.client.post(INDEX_URL, formData, follow=True)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 485, in post
response = self._handle_redirects(response, **extra)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 617, in _handle_redirects
response = self.get(url.path, QueryDict(url.query), follow=False, **extra)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 473, in get
response = super(Client, self).get(path, data=data, **extra)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 280, in get
return self.request(**r)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 444, in request
six.reraise(*exc_info)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 54, in dec
return view_func(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 157, in get
handled = self.construct_tables()
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 148, in construct_tables
handled = self.handle_table(table)
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 120, in handle_table
data = self._get_data_dict()
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 184, in _get_data_dict
self._data = {self.table_class._meta.name: self.get_data()}
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/dashboards/project/overview/views.py", line 57, in get_data
super(ProjectOverview, self).get_data()
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/usage/views.py", line 43, in get_data
self.usage.summarize(*self.usage.get_date_range())
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/usage/base.py", line 200, in summarize
if not api.nova.extension_supported('SimpleTenantUsage', self.request):
File "/home/openstack/tecs/openstack/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/api/nova.py", line 759, in extension_supported
extensions = list_extensions(request)
File "/home/openstack/tecs/openstack/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/api/nova.py", line 750, in list_extensions
return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py", line 37, in show_all
return self._list("/extensions", 'extensions')
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/base.py", line 67, in _list
_resp, body = self.api.client.get(url)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 487, in get
return self._cs_request(url, 'GET', **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 465, in _cs_request
resp, body = self._time_request(url, method, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 439, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 410, in request
**kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/api.py", line 49, in request
return session.request(method=method, url=url, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/adapters.py", line 407, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
** Affects: horizon
Importance: Undecided
Status: New
** Tags: icehouse unittest
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1430672
Title:
unit test faield:test_change_password_shows_message_on_login_page
Status in OpenStack Dashboard (Horizon):
New
Bug description:
ERROR: test_change_password_shows_message_on_login_page (openstack_dashboard.dashboards.settings.password.tests.ChangePasswordTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/test/helpers.py", line 83, in instance_stub_out
return fn(self, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/dashboards/settings/password/tests.py", line 67, in test_change_password_shows_message_on_login_page
res = self.client.post(INDEX_URL, formData, follow=True)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 485, in post
response = self._handle_redirects(response, **extra)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 617, in _handle_redirects
response = self.get(url.path, QueryDict(url.query), follow=False, **extra)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 473, in get
response = super(Client, self).get(path, data=data, **extra)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 280, in get
return self.request(**r)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/test/client.py", line 444, in request
six.reraise(*exc_info)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 54, in dec
return view_func(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/decorators.py", line 38, in dec
return view_func(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 157, in get
handled = self.construct_tables()
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 148, in construct_tables
handled = self.handle_table(table)
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 120, in handle_table
data = self._get_data_dict()
File "/home/openstack/tecs/openstack/horizon/horizon/tables/views.py", line 184, in _get_data_dict
self._data = {self.table_class._meta.name: self.get_data()}
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/dashboards/project/overview/views.py", line 57, in get_data
super(ProjectOverview, self).get_data()
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/usage/views.py", line 43, in get_data
self.usage.summarize(*self.usage.get_date_range())
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/usage/base.py", line 200, in summarize
if not api.nova.extension_supported('SimpleTenantUsage', self.request):
File "/home/openstack/tecs/openstack/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/api/nova.py", line 759, in extension_supported
extensions = list_extensions(request)
File "/home/openstack/tecs/openstack/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/openstack/tecs/openstack/horizon/openstack_dashboard/api/nova.py", line 750, in list_extensions
return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py", line 37, in show_all
return self._list("/extensions", 'extensions')
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/base.py", line 67, in _list
_resp, body = self.api.client.get(url)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 487, in get
return self._cs_request(url, 'GET', **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 465, in _cs_request
resp, body = self._time_request(url, method, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 439, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/novaclient/client.py", line 410, in request
**kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/api.py", line 49, in request
return session.request(method=method, url=url, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/home/openstack/tecs/openstack/horizon/.venv/lib/python2.7/site-packages/requests/adapters.py", line 407, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1430672/+subscriptions
Follow ups
References