ClickHouse/tests/integration/test_s3_with_proxy/proxy-resolver/resolver.py
bharatnc b75963d370 Format and optimize imports in integration test files
This PR formats all the `*.py` files found under the `tests/integration`
folder. It also reorders the imports and cleans up a bunch of unused
imports.

The formatting also takes care of other things like wrapping lines and
fixing spaces and indents such that the tests look more readable.
2020-09-15 23:10:54 -07:00

15 lines
202 B
Python

import random
import bottle
@bottle.route('/hostname')
def index():
if random.randrange(2) == 0:
return 'proxy1'
else:
return 'proxy2'
bottle.run(host='0.0.0.0', port=8080)