ClickHouse/tests/integration/test_s3_with_proxy/proxy-resolver/resolver.py
2020-05-20 19:01:05 +03:00

14 lines
201 B
Python

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