Re-enable zone export list filter test

Filter criteria are respected when listing zone imports and exports

Depends-On: https://review.opendev.org/789711
Change-Id: I06459a6208757b95117af3f270fde60b847f0b97
This commit is contained in:
Michael Chapman 2021-05-18 13:27:05 +10:00
parent 5732e045d8
commit ce1a26c8e0

View File

@ -159,7 +159,6 @@ class ZonesExportTest(BaseZoneExportsTest):
'listed IDs:{}'.format(id, listed_exports_ids)) 'listed IDs:{}'.format(id, listed_exports_ids))
@decorators.idempotent_id('e4a11a14-9aaa-11eb-be59-74e5f9e2a801') @decorators.idempotent_id('e4a11a14-9aaa-11eb-be59-74e5f9e2a801')
@decorators.skip_because(bug='1926058')
def test_list_zone_exports_filter_results(self): def test_list_zone_exports_filter_results(self):
LOG.info('Create a primary zone and its export') LOG.info('Create a primary zone and its export')
@ -209,9 +208,8 @@ class ZonesExportTest(BaseZoneExportsTest):
self.assertEqual( self.assertEqual(
[], self.admin_client.list_zone_exports( [], self.admin_client.list_zone_exports(
headers={'x-auth-all-projects': True}, headers={'x-auth-all-projects': True},
params={'zone_id': primary_zone['id']})[1]['exports'], params={'zone_id': alt_zone['id']})[1]['exports'],
'Failed, filtered result should contain a single zone ' 'Failed, filtered result should be empty.')
'(primary zone export)')
class ZonesExportTestNegative(BaseZoneExportsTest): class ZonesExportTestNegative(BaseZoneExportsTest):