keystone-client tests fail on RHEL

Bug #933073 reported by Ken Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Joseph Heck

Bug Description

The keystone-client runtests.sh fails on RHEL 6.2 because it's using python 2.6. Some of the tests are using functionality from the unittest module that doesn't exist in 2.6. (E.g. AttributeError: 'DiscoverKeystoneTests' object has no attribute 'assertIsInstance')

The unittest2 module *does* have the necessary functionality and works on older versions of python (which is why it exists) . So if keystone-client/tests/utils.py was changed from...

import unittest

-to-

import unittest2 as unittest

...and "unittest2" is added to tools/pip-requires, then the tests work fine on RHEL (and doesn't appear to break running the tests in Ubuntu either)

Revision history for this message
Ken Thomas (krt) wrote :

Just noticed that this went under Ubuntu python-keystoneclient and it should have been under keystone instead. Marking as invalid and will reopen in the right place.

Changed in python-keystoneclient (Ubuntu):
status: New → Invalid
Dave Walker (davewalker)
affects: python-keystoneclient (Ubuntu) → python-keystoneclient
affects: python-keystoneclient → keystone
Changed in keystone:
status: Invalid → New
Joseph Heck (heckj)
Changed in keystone:
status: New → Fix Committed
status: Fix Committed → New
tags: added: python-keystoneclient
Revision history for this message
Joseph Heck (heckj) wrote :
Changed in keystone:
assignee: nobody → Joseph Heck (heckj)
status: New → In Progress
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

This is a duplicate of https://bugs.launchpad.net/keystone/+bug/933076, which has a patch approved in gerrit.

Changed in keystone:
status: In Progress → Invalid
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.