summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-21 09:06:35 +0000
committerGerrit Code Review <review@openstack.org>2018-12-21 09:06:35 +0000
commit6d7d69023468552ffb9376408178188c15164663 (patch)
tree806524649f248da6d647cbeb4e85c09403011229
parent2a6cf6747bc55973ddd8bd73b038923a2beeade4 (diff)
parentc451ff963f04eeb54e792cd258b2f6e70a5549c3 (diff)
Merge "Fix dependency on requests library version"
-rw-r--r--octavia_tempest_plugin/tests/test_base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/octavia_tempest_plugin/tests/test_base.py b/octavia_tempest_plugin/tests/test_base.py
index 57d3db9..085c814 100644
--- a/octavia_tempest_plugin/tests/test_base.py
+++ b/octavia_tempest_plugin/tests/test_base.py
@@ -806,6 +806,8 @@ class LoadBalancerBaseTestWithCompute(LoadBalancerBaseTest):
806 :param cookies: Optional cookies to send in the request. 806 :param cookies: Optional cookies to send in the request.
807 :param redirect: Is the request a redirect? If true, assume the passed 807 :param redirect: Is the request a redirect? If true, assume the passed
808 content should be the next URL in the chain. 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 :return: boolean success status 811 :return: boolean success status
810 812
811 :raises: testtools.matchers.MismatchError 813 :raises: testtools.matchers.MismatchError
@@ -820,6 +822,7 @@ class LoadBalancerBaseTestWithCompute(LoadBalancerBaseTest):
820 self.assertEqual(response_code, req.status_code) 822 self.assertEqual(response_code, req.status_code)
821 if redirect: 823 if redirect:
822 self.assertTrue(req.is_redirect) 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 elif response_content: 827 elif response_content:
825 self.assertEqual(six.text_type(response_content), req.text) 828 self.assertEqual(six.text_type(response_content), req.text)