← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1501158] Fix included in openstack/horizon 9.0.0.0b1

 

This issue was fixed in the openstack/horizon 9.0.0.0b1 development
milestone.

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
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/1501158

Title:
  Missing MEDIA_URL config in test settings

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Steps to reproduce:
  1. Set Debug=True in the test settings.
  2. run the test

  Actual output:

  Test failure.

  ======================================================================
  ERROR: Failure: ImproperlyConfigured (Empty static prefix not permitted)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
      addr.filename, addr.module)
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
      return self.importFromDir(dir_path, fqname)
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
      mod = load_module(part_fqname, fh, filename, desc)
    File "/workspace/horizon/openstack_dashboard/dashboards/project/volumes/backups/tests.py", line 22, in <module>
      INDEX_URL = reverse('horizon:project:volumes:index')
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 550, in reverse
      app_list = resolver.app_dict[ns]
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 352, in app_dict
      self._populate()
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 285, in _populate
      for pattern in reversed(self.url_patterns):
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 402, in url_patterns
      patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 396, in urlconf_module
      self._urlconf_module = import_module(self.urlconf_name)
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
      __import__(name)
    File "/workspace/horizon/openstack_dashboard/test/urls.py", line 46, in <module>
      urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    File "/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/conf/urls/static.py", line 25, in static
      raise ImproperlyConfigured("Empty static prefix not permitted")
  ImproperlyConfigured: Empty static prefix not permitted

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1501158/+subscriptions


References