Ensure domains.list filtered results are correct
Convert enabled=False to enabled=0, such that requests directed to an older keystone not containing the fix for bug #1267530 will not return the wrong data. Closes-Bug: #1281070 Change-Id: I49fd0953fc2323f2034c241c6342ced6f3412125
This commit is contained in:
@@ -29,3 +29,15 @@ class DomainTests(utils.TestCase, utils.CrudTests):
|
||||
kwargs.setdefault('enabled', True)
|
||||
kwargs.setdefault('name', uuid.uuid4().hex)
|
||||
return kwargs
|
||||
|
||||
def test_list_filter_name(self):
|
||||
super(DomainTests, self).test_list(name='adomain123')
|
||||
|
||||
def test_list_filter_enabled(self):
|
||||
super(DomainTests, self).test_list(enabled=True)
|
||||
|
||||
def test_list_filter_disabled(self):
|
||||
# False is converted to '0' ref bug #1267530
|
||||
expected_query = {'enabled': '0'}
|
||||
super(DomainTests, self).test_list(expected_query=expected_query,
|
||||
enabled=False)
|
||||
|
||||
Reference in New Issue
Block a user