Browse Source

Merge "Fix dependency on requests library version"

tags/1.0.0
Zuul 5 months ago
parent
commit
6d7d690234
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      octavia_tempest_plugin/tests/test_base.py

+ 4
- 1
octavia_tempest_plugin/tests/test_base.py View File

@@ -806,6 +806,8 @@ class LoadBalancerBaseTestWithCompute(LoadBalancerBaseTest):
806 806
         :param cookies: Optional cookies to send in the request.
807 807
         :param redirect: Is the request a redirect? If true, assume the passed
808 808
                          content should be the next URL in the chain.
809
+        :param timeout: Optional seconds to wait for the server to send data.
810
+
809 811
         :return: boolean success status
810 812
 
811 813
         :raises: testtools.matchers.MismatchError
@@ -820,6 +822,7 @@ class LoadBalancerBaseTestWithCompute(LoadBalancerBaseTest):
820 822
                 self.assertEqual(response_code, req.status_code)
821 823
             if redirect:
822 824
                 self.assertTrue(req.is_redirect)
823
-                self.assertEqual(response_content, req.next.url)
825
+                self.assertEqual(response_content,
826
+                                 session.get_redirect_target(req))
824 827
             elif response_content:
825 828
                 self.assertEqual(six.text_type(response_content), req.text)

Loading…
Cancel
Save