Home
last modified time | relevance | path

Searched refs:sock_type (Results 1 – 15 of 15) sorted by relevance

/unit/test/
H A Dtest_unix_abstract.py34 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 Dtest_client_ip.py36 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 Dtest_forwarded_header.py31 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 Dtest_routing.py1659 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 Dtest_asgi_application_unix_abstract.py22 assert client.get(sock_type='unix', addr=addr)['status'] == 200
H A Dtest_access_log.py104 client.get(sock_type='ipv6')
123 client.get(sock_type='unix', addr=addr)
H A Dtest_asgi_application.py67 assert client.get(sock_type='ipv6')['status'] == 200
78 assert client.get(sock_type='unix', addr=addr)['status'] == 200
H A Dconftest.py388 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 Dtest_static.py348 sock_type='unix',
H A Dtest_variables.py183 assert client.get(sock_type='ipv6')['status'] == 200
H A Dtest_php_application.py755 sock_type='unix',
/unit/test/unit/check/
H A Dunix_abstract.py14 sock_type='unix',
H A Dchroot.py14 sock_type='unix',
H A Disolation.py134 sock_type='unix',
/unit/test/unit/
H A Dhttp.py16 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)