refactor: make TestAuthExternalDefaultDomain test uuid/pki/pkiz

Bind authentication is only supported by uuid, pki, and pkiz token providers.
This makes it easier to switch Fernet to be the default.

This fix was originally a part of https://review.openstack.org/#/c/258650 but
this is an attempt to break 258650 into smaller, more reviewable, pieces.

Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br>
Co-Authored-By: Adam Young <ayound@redhat.com>

Change-Id: I195ae1def4e2e7e27125f09cf058718b73eb839e
Partial-Bug: 1561054
This commit is contained in:
Lance Bragstad 2016-07-20 23:02:47 +00:00
parent 66f7b0915b
commit 05ec032877
1 changed files with 25 additions and 1 deletions

View File

@ -3674,7 +3674,7 @@ class TestAuthExternalDomainBehaviorWithPKIZ(AuthExternalDomainBehavior,
# authentication so we don't inhereit TestAuthExternalDomain here to test it.
class TestAuthExternalDefaultDomain(test_v3.RestfulTestCase):
class TestAuthExternalDefaultDomain(object):
content_type = 'json'
def config_overrides(self):
@ -3730,6 +3730,30 @@ class TestAuthExternalDefaultDomain(test_v3.RestfulTestCase):
token['bind']['kerberos'])
class UUIDAuthExternalDefaultDomain(TestAuthExternalDefaultDomain,
test_v3.RestfulTestCase):
def config_overrides(self):
super(UUIDAuthExternalDefaultDomain, self).config_overrides()
self.config_fixture.config(group='token', provider='uuid')
class PKIAuthExternalDefaultDomain(TestAuthExternalDefaultDomain,
test_v3.RestfulTestCase):
def config_overrides(self):
super(PKIAuthExternalDefaultDomain, self).config_overrides()
self.config_fixture.config(group='token', provider='pki')
class PKIZAuthExternalDefaultDomain(TestAuthExternalDefaultDomain,
test_v3.RestfulTestCase):
def config_overrides(self):
super(PKIZAuthExternalDefaultDomain, self).config_overrides()
self.config_fixture.config(group='token', provider='pkiz')
class UUIDAuthKerberos(AuthExternalDomainBehavior, test_v3.RestfulTestCase):
def config_overrides(self):