Searched refs:sock_type (Results 1 – 15 of 15) sorted by relevance
/unit/test/ |
H A D | test_unix_abstract.py | 34 assert client.get(sock_type='unix', addr=addr)['status'] == 200, 'neg ipv4' 37 assert client.get(sock_type='unix', addr=addr)['status'] == 200, 'neg ipv6' 41 assert client.get(sock_type='unix', addr=addr)['status'] == 200, 'unix' 45 def get_xff(xff, sock_type='ipv4'): argument 51 (addr, port) = address[sock_type] 54 sock_type=sock_type,
|
H A D | test_client_ip.py | 36 def get_xff(xff, sock_type='ipv4'): argument 42 (addr, port) = address[sock_type] 45 sock_type=sock_type, 57 client.get(sock_type='ipv6', port=8082)['body'] == '::1' 67 client.get(sock_type='ipv6', port=8082)['body'] == '::1'
|
H A D | test_forwarded_header.py | 31 def get_fwd(sock_type='ipv4', xff=None, xfp=None): argument 32 port = 8081 if sock_type == 'ipv4' else 8082 42 return client.get(sock_type=sock_type, port=port, headers=headers)[
|
H A D | test_routing.py | 1659 return client.get(sock_type='ipv6', port=8081) 1720 assert client.get(sock_type='ipv6')['status'] == 200, 'exact' 1736 assert client.get(sock_type='ipv6')['status'] == 200, 'range' 1770 return client.get(sock_type='ipv6', port=8081) 1803 assert client.get(sock_type='ipv6')['status'] == 200, '128' 1811 assert client.get(sock_type='ipv6')['status'] == 200, '127' 1815 assert client.get(sock_type='ipv6')['status'] == 200, '32' 1819 assert client.get(sock_type='ipv6')['status'] == 200, '1' 1823 assert client.get(sock_type='ipv6')['status'] == 200, '0' 1840 client.get(sock_type='unix', addr=addr)['status'] == 200 [all …]
|
H A D | test_asgi_application_unix_abstract.py | 22 assert client.get(sock_type='unix', addr=addr)['status'] == 200
|
H A D | test_access_log.py | 104 client.get(sock_type='ipv6') 123 client.get(sock_type='unix', addr=addr)
|
H A D | test_asgi_application.py | 67 assert client.get(sock_type='ipv6')['status'] == 200 78 assert client.get(sock_type='unix', addr=addr)['status'] == 200
|
H A D | conftest.py | 388 sock_type='unix', 396 return http.get(url=url, sock_type='unix', addr=sock)['body'] 399 return http.delete(url=url, sock_type='unix', addr=sock)['body']
|
H A D | test_static.py | 348 sock_type='unix',
|
H A D | test_variables.py | 183 assert client.get(sock_type='ipv6')['status'] == 200
|
H A D | test_php_application.py | 755 sock_type='unix',
|
/unit/test/unit/check/ |
H A D | unix_abstract.py | 14 sock_type='unix',
|
H A D | chroot.py | 14 sock_type='unix',
|
H A D | isolation.py | 134 sock_type='unix',
|
/unit/test/unit/ |
H A D | http.py | 16 sock_type = kwargs.get('sock_type', 'ipv4') 29 addr = '::1' if sock_type == 'ipv6' else '127.0.0.1' 40 sock = socket.socket(sock_types[sock_type], socket.SOCK_STREAM) 42 if sock_type in (sock_types['ipv4'], sock_types['ipv6']): 49 connect_args = addr if sock_type == 'unix' else (addr, port)
|