Tests on DomainSpecificLDAPandSQLIdentity cannot create and use new domains

Bug #1425895 reported by Samuel de Medeiros Queiroz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Low
Samuel de Medeiros Queiroz

Bug Description

Tests in this class (or in subclasses) can create domains, but cannot use them for any identity operation, such as list_users.

When domain-specific backends functionality is used, the created domains (that do not have an explicit configuration) are mapped in the default driver. It works pretty well when the default driver is SQL, but not for LDAP, which is read-only.

LDAP is configured as default driver for that test class.

An exception is thrown when trying to use identity operations on that domain, since the manager cannot find a driver to use:

        Found multiple domains being mapped to a driver that does not support that (e.g. LDAP) - Domain ID: fcda5a65a54e43618b1c5acfaefa8d00, Default Driver: True

Changed in keystone:
assignee: nobody → Samuel de Medeiros Queiroz (samueldmq)
David Stanek (dstanek)
Changed in keystone:
importance: Undecided → Low
Changed in keystone:
status: New → Triaged
tags: added: test-improvement
Changed in keystone:
milestone: none → kilo-rc1
Changed in keystone:
milestone: kilo-rc1 → none
Revision history for this message
Henry Nash (henry-nash) wrote :

I don't think this is a bug - that's the point of this test class....no additional domains are allowed - it's a restrictive setup. We could argue that this is not a valid test case, in which case we should delete the class entirely.

Revision history for this message
Steve Martinelli (stevemar) wrote :

I agree with Henry, I do not believe this is a bug. Additionally, we do not need to use bug reports for test refactorings.

Changed in keystone:
status: Triaged → 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.