Setup mock services to use certs from env

This commit is contained in:
Thomas Mendoza
2018-09-27 15:17:49 -07:00
parent 88b2954c90
commit 34d59f66d9
2 changed files with 18 additions and 2 deletions

View File

@@ -178,7 +178,10 @@ def _mockservice(request, app, url=False):
'admin': True,
}
if url:
spec['url'] = 'http://127.0.0.1:%i' % random_port()
if app.internal_ssl:
spec['url'] = 'https://127.0.0.1:%i' % random_port()
else:
spec['url'] = 'http://127.0.0.1:%i' % random_port()
io_loop = app.io_loop