Tests: round robin upstream tests.

This commit is contained in:
Andrei Zeliankou
2020-03-12 13:47:43 +00:00
parent 961674af42
commit 1d75277767
4 changed files with 489 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import time
def application(env, start_response):
delay = int(env.get('HTTP_X_DELAY', 0))
start_response('200', [('Content-Length', '0'), ('X-Upstream', '0')])
time.sleep(delay)
return []

View File

@@ -0,0 +1,8 @@
import time
def application(env, start_response):
delay = int(env.get('HTTP_X_DELAY', 0))
start_response('200', [('Content-Length', '0'), ('X-Upstream', '1')])
time.sleep(delay)
return []

View File

@@ -0,0 +1,8 @@
import time
def application(env, start_response):
delay = int(env.get('HTTP_X_DELAY', 0))
start_response('200', [('Content-Length', '0'), ('X-Upstream', '2')])
time.sleep(delay)
return []