← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1474069] Re: DeprecatedDecorators test does not setup fixtures correctly

 

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

** Changed in: keystone
    Milestone: None => liberty-3

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

Title:
  DeprecatedDecorators test does not setup fixtures correctly

Status in Keystone:
  Fix Released
Status in oslo.log:
  Fix Released

Bug description:
  this test appears to rely upon test suite setup in a different test,
  outside of the test_backend_sql.py suite entirely.    Below is a run
  of this specific test, but you get the same error if you run all of
  test_backend_sql at once as well.

  [mbayer@thinkpad keystone]$ tox   -v  -e py27 keystone.tests.unit.test_backend_sql.DeprecatedDecorators.test_assignment_to_resource_api
  using tox.ini: /home/mbayer/dev/jenkins_scripts/tmp/keystone/tox.ini
  using tox-1.8.1 from /usr/lib/python2.7/site-packages/tox/__init__.pyc
  py27 create: /home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27
    /home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox$ /usr/bin/python -mvirtualenv --setuptools --python /usr/bin/python2.7 py27 >/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/log/py27-0.log
  py27 installdeps: -r/home/mbayer/dev/jenkins_scripts/tmp/keystone/requirements.txt, -r/home/mbayer/dev/jenkins_scripts/tmp/keystone/test-requirements.txt
    /home/mbayer/dev/jenkins_scripts/tmp/keystone$ /home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/bin/pip install -U -r/home/mbayer/dev/jenkins_scripts/tmp/keystone/requirements.txt -r/home/mbayer/dev/jenkins_scripts/tmp/keystone/test-requirements.txt >/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/log/py27-1.log
  py27 develop-inst: /home/mbayer/dev/jenkins_scripts/tmp/keystone
    /home/mbayer/dev/jenkins_scripts/tmp/keystone$ /home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/bin/pip install -U -e /home/mbayer/dev/jenkins_scripts/tmp/keystone >/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/log/py27-2.log
  py27 runtests: PYTHONHASHSEED='3819984772'
  py27 runtests: commands[0] | bash tools/pretty_tox.sh keystone.tests.unit.test_backend_sql.DeprecatedDecorators.test_assignment_to_resource_api
    /home/mbayer/dev/jenkins_scripts/tmp/keystone$ /usr/bin/bash tools/pretty_tox.sh keystone.tests.unit.test_backend_sql.DeprecatedDecorators.test_assignment_to_resource_api 
  running testr
  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/tmpclgNWA
  {0} keystone.tests.unit.test_backend_sql.DeprecatedDecorators.test_assignment_to_resource_api [0.245028s] ... FAILED

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "keystone/tests/unit/test_backend_sql.py", line 995, in test_assignment_to_resource_api
          self.config_fixture.config(fatal_deprecations=True)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/fixture.py", line 65, in config
          self.conf.set_override(k, v, group)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/cfg.py", line 1823, in __inner
          result = f(self, *args, **kwargs)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/cfg.py", line 2100, in set_override
          opt_info = self._get_opt_info(name, group)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/cfg.py", line 2418, in _get_opt_info
          raise NoSuchOptError(opt_name, group)
      oslo_config.cfg.NoSuchOptError: no such option: fatal_deprecations
      

  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      Adding cache-proxy 'keystone.tests.unit.test_cache.CacheIsolatingProxy' to backend.
      registered 'sha512_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
      

  ==============================
  Failed 1 tests - output below:
  ==============================

  keystone.tests.unit.test_backend_sql.DeprecatedDecorators.test_assignment_to_resource_api
  -----------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "keystone/tests/unit/test_backend_sql.py", line 995, in test_assignment_to_resource_api
          self.config_fixture.config(fatal_deprecations=True)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/fixture.py", line 65, in config
          self.conf.set_override(k, v, group)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/cfg.py", line 1823, in __inner
          result = f(self, *args, **kwargs)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/cfg.py", line 2100, in set_override
          opt_info = self._get_opt_info(name, group)
        File "/home/mbayer/dev/jenkins_scripts/tmp/keystone/.tox/py27/lib/python2.7/site-packages/oslo_config/cfg.py", line 2418, in _get_opt_info
          raise NoSuchOptError(opt_name, group)
      oslo_config.cfg.NoSuchOptError: no such option: fatal_deprecations
      

  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      Adding cache-proxy 'keystone.tests.unit.test_cache.CacheIsolatingProxy' to backend.
      registered 'sha512_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
      

  
  ======
  Totals
  ======
  Ran: 1 tests in 3.0000 sec.
   - Passed: 0
   - Skipped: 0
   - Expected Fail: 0
   - Unexpected Success: 0
   - Failed: 1
  Sum of execute time for each test: 0.2450 sec.

  ==============
  Worker Balance
  ==============
   - Worker 0 (1 tests) => 0:00:00.245028s

  Slowest Tests:

  Test id                                                                                    Runtime (s)
  -----------------------------------------------------------------------------------------  -----------
  keystone.tests.unit.test_backend_sql.DeprecatedDecorators.test_assignment_to_resource_api  0.245
  ERROR: InvocationError: '/usr/bin/bash tools/pretty_tox.sh keystone.tests.unit.test_backend_sql.DeprecatedDecorators.test_assignment_to_resource_api'
  _______________________________________________________________________ summary ________________________________________________________________________
  ERROR:   py27: commands failed

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


References