← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1233224] Re: Running individual tests in the test suite is failing

 

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

** Changed in: keystone
    Milestone: None => havana-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1233224

Title:
  Running individual tests in the test suite is failing

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  Change I0fd0be98: sync oslo policy"
  (https://review.openstack.org/#/c/48111/) was merged over the weekend
  and broke test functionality for me.  Our base TestCase tries to set
  the policy_file option before it is declared.

  Really there are two reasons for this:

    1. Not all of the necessary state is setup before the test run
    2. Some of the tests depend on things that are unrelated to the functionality under test (e.g.  why would XML serialization test be broken by changes to the keystone command-line options?)

  
  When I run:

    $ ./run_tests.sh test_serializer.py

  I get lots of these:

    _StringException: Traceback (most recent call last):
      File "/opt/stack/keystone/keystone/tests/core.py", line 259, in setUp
        self.opt(policy_file=etcdir('policy.json'))
      File "/opt/stack/keystone/keystone/tests/core.py", line 296, in opt
        CONF.set_override(k, v)
      File "/opt/stack/keystone/.venv/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1579, in __inner
        result = f(self, *args, **kwargs)
      File "/opt/stack/keystone/.venv/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1825, in set_override
        opt_info = self._get_opt_info(name, group)
      File "/opt/stack/keystone/.venv/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2095, in _get_opt_info
        raise NoSuchOptError(opt_name, group)
    NoSuchOptError: no such option: policy_file

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