Use new tempest option to verify redirects
tempest now allows to instruct a rest client to return redirect responses instead of following them. Change-Id: Ia5b4a84a363f8cf4b699c63efaa41f42c9d3716d Related-Bug: 1616892 Depends-On: https://review.openstack.org/580146
This commit is contained in:
parent
5be2abbe6f
commit
d64d8ae78e
|
@ -19,6 +19,20 @@ from designate_tempest_plugin.services.dns.v2.json import base
|
|||
class RecordsetClient(base.DnsClientV2Base):
|
||||
"""API V2 Tempest REST client for Recordset API"""
|
||||
|
||||
SHOW_STATUS_CODES = [200, 301]
|
||||
|
||||
def __init__(self, auth_provider, service, region,
|
||||
endpoint_type='publicURL',
|
||||
build_interval=1, build_timeout=60,
|
||||
disable_ssl_certificate_validation=False, ca_certs=None,
|
||||
trace_requests='', name=None, http_timeout=None,
|
||||
proxy_url=None):
|
||||
super(RecordsetClient, self).__init__(
|
||||
auth_provider, service, region, endpoint_type, build_interval,
|
||||
build_timeout, disable_ssl_certificate_validation, ca_certs,
|
||||
trace_requests, name, http_timeout, proxy_url,
|
||||
follow_redirects=False)
|
||||
|
||||
@base.handle_errors
|
||||
def create_recordset(self, zone_uuid, recordset_data,
|
||||
params=None, wait_until=False):
|
||||
|
|
|
@ -341,7 +341,6 @@ class RootRecordsetsTests(BaseRecordsetsTest):
|
|||
|
||||
self.assertGreater(len(body['recordsets']), 0)
|
||||
|
||||
@decorators.skip_because(bug="1616892")
|
||||
@decorators.idempotent_id('65ec0495-81d9-4cfb-8007-9d93b32ae883')
|
||||
def test_get_single_zones_recordsets(self):
|
||||
recordset_data = data_utils.rand_recordset_data(
|
||||
|
|
Loading…
Reference in New Issue