keystone.tests.unit.common.test_notifications.NotificationsTestCase fails in isolation

Bug #1474490 reported by Dolph Mathews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
David Stanek

Bug Description

While investigating bug 1474069, I discovered this test fails when run in isolation as well.

$ tox -e py27 keystone.tests.unit.common.test_notifications.NotificationsTestCase
running=
OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./keystone/tests/unit} --list
running=
OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./keystone/tests/unit} --load-list /tmp/tmpARu0Eo
======================================================================
FAIL: keystone.tests.unit.common.test_notifications.NotificationsTestCase.test_send_notification
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''
  stderr
  stdout

Traceback (most recent call last):
  File "keystone/tests/unit/common/test_notifications.py", line 182, in setUp
    fixture.config(rpc_backend='fake', notification_driver=['fake'])
  File "/home/dolph/venv/os/local/lib/python2.7/site-packages/oslo_config/fixture.py", line 65, in config
    self.conf.set_override(k, v, group)
  File "/home/dolph/venv/os/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1824, in __inner
    result = f(self, *args, **kwargs)
  File "/home/dolph/venv/os/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2103, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/home/dolph/venv/os/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2421, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
oslo_config.cfg.NoSuchOptError: no such option: notification_driver
Ran 1 tests in 0.005s (-0.431s)
FAILED (id=7051, failures=1 (+1))

jiaxi (tjxiter)
Changed in keystone:
assignee: nobody → jiaxi (tjxiter)
jiaxi (tjxiter)
Changed in keystone:
assignee: jiaxi (tjxiter) → nobody
Diego Adolfo (diegoado)
Changed in keystone:
assignee: nobody → Diego Adolfo (diegoado)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/204739

Changed in keystone:
status: Triaged → In Progress
Changed in keystone:
assignee: Diego Adolfo (diegoado) → David Stanek (dstanek)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/204739
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=326b57aeb9dd58789298b0dd8909df9f604369b5
Submitter: Jenkins
Branch: master

commit 326b57aeb9dd58789298b0dd8909df9f604369b5
Author: Diego Adolfo de Araújo <email address hidden>
Date: Wed Jul 22 16:29:30 2015 -0300

    NotificationsTestCase running in isolation

    Calls to the object "fixture" were removed because they are not
    being used by the class. The "test_send_notification" test fails
    in isolation. The fixture was not configured correctly since the
    "rpc_backend" and "notification_driver" config options were not
    already registered.

    Change-Id: I730dff62470b20875b6237d661145d53a734cc45
    Closes-Bug: 1474490

Changed in keystone:
status: In Progress → Fix Committed
Changed in keystone:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: liberty-3 → 8.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.