@@ -30,24 +30,24 @@ def cats_only(response, path):
3030
3131c .ServerProxy .servers = {
3232 'python-http' : {
33- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
33+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
3434 },
3535 'python-http-abs' : {
36- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
36+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
3737 'absolute_url' : True
3838 },
3939 'python-http-port54321' : {
40- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
40+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
4141 'port' : 54321 ,
4242 },
4343 'python-http-mappath' : {
44- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
44+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
4545 'mappath' : {
4646 '/' : '/index.html' ,
4747 }
4848 },
4949 'python-http-mappathf' : {
50- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
50+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
5151 'mappath' : mappathf ,
5252 },
5353 'python-websocket' : {
@@ -56,8 +56,21 @@ def cats_only(response, path):
5656 'X-Custom-Header' : 'pytest-23456' ,
5757 }
5858 },
59+ 'python-unix-socket-true' : {
60+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--unix-socket={unix_socket}' ],
61+ 'unix_socket' : True ,
62+ },
63+ 'python-unix-socket-file' : {
64+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--unix-socket={unix_socket}' ],
65+ 'unix_socket' : "/tmp/jupyter-server-proxy-test-socket" ,
66+ },
67+ 'python-unix-socket-file-no-command' : {
68+ # this server process can be started earlier by first interacting with
69+ # python-unix-socket-file
70+ 'unix_socket' : "/tmp/jupyter-server-proxy-test-socket" ,
71+ },
5972 'python-request-headers' : {
60- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
73+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
6174 'request_headers_override' : {
6275 'X-Custom-Header' : 'pytest-23456' ,
6376 }
@@ -66,20 +79,20 @@ def cats_only(response, path):
6679 'command' : ['python3' , './tests/resources/gzipserver.py' , '{port}' ],
6780 },
6881 'python-http-rewrite-response' : {
69- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
82+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
7083 'rewrite_response' : translate_ciao ,
7184 'port' : 54323 ,
7285 },
7386 'python-chained-rewrite-response' : {
74- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
87+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
7588 'rewrite_response' : [translate_ciao , hello_to_foo ],
7689 },
7790 'python-cats-only-rewrite-response' : {
78- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
91+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
7992 'rewrite_response' : [dog_to_cat , cats_only ],
8093 },
8194 'python-dogs-only-rewrite-response' : {
82- 'command' : ['python3' , './tests/resources/httpinfo.py' , '{port}' ],
95+ 'command' : ['python3' , './tests/resources/httpinfo.py' , '--port= {port}' ],
8396 'rewrite_response' : [cats_only , dog_to_cat ],
8497 },
8598 'python-proxyto54321-no-command' : {
0 commit comments