Fix zone export test after tempest change
> tempest.lib.exceptions.NotAcceptable: Not Acceptable
> Details: b'406 Not Acceptable\n\nThe resource could
[1] https://review.opendev.org/c/openstack/tempest/+/934515
Change-Id: I2e0b82725bd4b31a6bd2cc7090b95bac75a441e4
diff --git a/designate_tempest_plugin/tests/api/v2/test_zones_exports.py b/designate_tempest_plugin/tests/api/v2/test_zones_exports.py
index 1ba783d..67a0e6a 100644
--- a/designate_tempest_plugin/tests/api/v2/test_zones_exports.py
+++ b/designate_tempest_plugin/tests/api/v2/test_zones_exports.py
@@ -420,7 +420,7 @@
'show_zonefile_bad_accept')
# Tempest-lib _error_checker will raise UnexpectedResponseCode
e = self.assertRaises(
- lib_exc.UnexpectedResponseCode, self.client.show_exported_zonefile,
+ lib_exc.NotAcceptable, self.client.show_exported_zonefile,
zone_export['id'], headers={'Accept': 'image/jpeg'})
self.assertEqual(406, e.resp.status,
"Failed, actual response code is:{0}"