summaryrefslogtreecommitdiffhomepage
path: root/test/test_share_fallback.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-04-20 14:04:55 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2020-04-20 14:04:55 +0100
commit8f6e6086cb7bceeff6eec7cf0a2e3ff94f8d7705 (patch)
tree8251ab3d737d93cdc7ac062b409ec4e6ecd2a388 /test/test_share_fallback.py
parent9877087756144d3bdf343d0d4e91e1efbcc62c93 (diff)
downloadunit-8f6e6086cb7bceeff6eec7cf0a2e3ff94f8d7705.tar.gz
unit-8f6e6086cb7bceeff6eec7cf0a2e3ff94f8d7705.tar.bz2
Tests: skips adjusted.
Diffstat (limited to 'test/test_share_fallback.py')
-rw-r--r--test/test_share_fallback.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/test/test_share_fallback.py b/test/test_share_fallback.py
index c51e43ee..3f288d89 100644
--- a/test/test_share_fallback.py
+++ b/test/test_share_fallback.py
@@ -125,18 +125,23 @@ class TestStatic(TestApplicationProto):
self.assertEqual(resp['status'], 200, 'fallback proxy status')
self.assertEqual(resp['body'], '', 'fallback proxy')
- @unittest.skip('not yet')
- def test_fallback_proxy_cycle(self):
+ def test_fallback_proxy_loop(self):
+ self.skip_alerts.extend(
+ [
+ r'open.*/blah/index.html.*failed',
+ r'accept.*failed',
+ r'socket.*failed',
+ r'new connections are not accepted',
+ ]
+ )
+
self.action_update(
- {
- "share": "/blah",
- "fallback": {"proxy": "http://127.0.0.1:7080"},
- }
+ {"share": "/blah", "fallback": {"proxy": "http://127.0.0.1:7080"}}
)
- self.assertNotEqual(self.get()['status'], 200, 'fallback cycle')
+ self.get(no_recv=True)
self.assertIn('success', self.conf_delete('listeners/*:7081'))
- self.assertNotEqual(self.get()['status'], 200, 'fallback cycle 2')
+ self.get(read_timeout=1)
def test_fallback_invalid(self):
def check_error(conf):