Browse Source

Merge "Use new tempest option to verify redirects"

Zuul 6 months ago
parent
commit
e2df001e39

+ 14
- 0
designate_tempest_plugin/services/dns/v2/json/recordset_client.py View File

@@ -19,6 +19,20 @@ from designate_tempest_plugin.services.dns.v2.json import base
19 19
 class RecordsetClient(base.DnsClientV2Base):
20 20
     """API V2 Tempest REST client for Recordset API"""
21 21
 
22
+    SHOW_STATUS_CODES = [200, 301]
23
+
24
+    def __init__(self, auth_provider, service, region,
25
+                 endpoint_type='publicURL',
26
+                 build_interval=1, build_timeout=60,
27
+                 disable_ssl_certificate_validation=False, ca_certs=None,
28
+                 trace_requests='', name=None, http_timeout=None,
29
+                 proxy_url=None):
30
+        super(RecordsetClient, self).__init__(
31
+                auth_provider, service, region, endpoint_type, build_interval,
32
+                build_timeout, disable_ssl_certificate_validation, ca_certs,
33
+                trace_requests, name, http_timeout, proxy_url,
34
+                follow_redirects=False)
35
+
22 36
     @base.handle_errors
23 37
     def create_recordset(self, zone_uuid, recordset_data,
24 38
                          params=None, wait_until=False):

+ 0
- 1
designate_tempest_plugin/tests/api/v2/test_recordset.py View File

@@ -341,7 +341,6 @@ class RootRecordsetsTests(BaseRecordsetsTest):
341 341
 
342 342
         self.assertGreater(len(body['recordsets']), 0)
343 343
 
344
-    @decorators.skip_because(bug="1616892")
345 344
     @decorators.idempotent_id('65ec0495-81d9-4cfb-8007-9d93b32ae883')
346 345
     def test_get_single_zones_recordsets(self):
347 346
         recordset_data = data_utils.rand_recordset_data(

Loading…
Cancel
Save