X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d084ca24b06c598271844d2ba4c8c40f251c0999..85fd7987cf5bf579d79e68d1476a100dac982914:/sdk/python/tests/run_test_server.py diff --git a/sdk/python/tests/run_test_server.py b/sdk/python/tests/run_test_server.py index 57efb97c48..567b3b3bfa 100644 --- a/sdk/python/tests/run_test_server.py +++ b/sdk/python/tests/run_test_server.py @@ -288,21 +288,6 @@ def run(leave_running_atexit=False): if not os.path.exists('tmp/logs'): os.makedirs('tmp/logs') - if not os.path.exists('tmp/self-signed.pem'): - # We assume here that either passenger reports its listening - # address as https:/0.0.0.0:port/. If it reports "127.0.0.1" - # then the certificate won't match the host and reset() will - # fail certificate verification. If it reports "localhost", - # clients (notably Python SDK's websocket client) might - # resolve localhost as ::1 and then fail to connect. - subprocess.check_call([ - 'openssl', 'req', '-new', '-x509', '-nodes', - '-out', 'tmp/self-signed.pem', - '-keyout', 'tmp/self-signed.key', - '-days', '3650', - '-subj', '/CN=0.0.0.0'], - stdout=sys.stderr) - # Install the git repository fixtures. gitdir = os.path.join(SERVICES_SRC_DIR, 'api', 'tmp', 'git') gittarball = os.path.join(SERVICES_SRC_DIR, 'api', 'test', 'test.git.tar')