/unit/ |
H A D | CHANGES | 184 error (fixed with a 301 re-direct).
|
/unit/test/ |
H A D | test_asgi_application.py | 1 import re 38 assert re.search(r'Unit/[\d\.]+', header_server), 'server header'
|
H A D | test_procman.py | 1 import re 29 for m in re.findall( 32 pids.add(re.search(r'^\s*(\d+)', m).group(1))
|
H A D | test_node_application.py | 1 import re 68 assert re.search(r'Unit/[\d\.]+', header_server), 'server header' 75 assert re.search( 127 assert re.search(r'<title>404 Not Found</title>', resp['body']), '404 body' 241 assert re.search(r'200 blah', client.get(raw_resp=True)), 'status message'
|
H A D | test_ruby_application.py | 1 import re 31 assert re.search(r'Unit/[\d\.]+', header_server), 'server header' 254 (l for l in locales if re.match(pattern, l.upper()) is not None), 270 enc_default = re.sub(r'[-_]', '', resp['headers']['X-Enc']).upper() 271 assert enc_default == re.sub(r'[-_]', '', enc.split('.')[-1]).upper()
|
H A D | test_upstreams_rr.py | 2 import re 83 status = re.findall(r'HTTP\/\d\.\d\s(\d\d\d)', resp) 320 m = re.search(r'HTTP/1.1 20(\d)', resp)
|
H A D | test_variables.py | 1 import re
|
H A D | test_settings.py | 1 import re 288 values = re.findall(r'net.core.[rw]mem_(?:max|default).*?(\d+)', sysctl_out) 302 assert re.search(r'200 OK', data), 'send timeout status' 308 assert re.search(r'200 OK', data), 'send timeout status 2'
|
H A D | test_return.py | 1 import re 52 assert len(re.findall('200 OK', resp)) == 10 53 assert len(re.findall('Connection:', resp)) == 1 54 assert len(re.findall('Connection: close', resp)) == 1
|
H A D | test_respawn.py | 1 import re 30 m = re.search(fr'\s*(\d+)\s*{ppid}.*{name}', output) 51 return re.findall(fr'{ppid}.*{name}', ps_output)
|
H A D | test_python_isolation.py | 1 import re 23 pid = re.search(fr'(\d+)\s*unit: "{app_name}" application', output).group(1)
|
H A D | test_php_application.py | 3 import re 22 assert re.search(r'time: \d+', body), 'disable_functions before time' 23 assert re.search(r'exec: \/\w+', body), 'disable_functions before exec' 130 assert re.search(r'Unit/[\d\.]+', header_server), 'server header' 332 assert re.search(r'True', client.get()['body']), 'conditional true' 333 assert re.search(r'False', client.post()['body']), 'conditional false' 497 assert re.search(r'time: \d+', body), 'disable_functions time' 498 assert not re.search(r'exec: \/\w+', body), 'disable_functions exec' 607 assert re.search(r'time: \d+', body), 'disable_functions user time' 637 assert not re.search( [all …]
|
H A D | test_proxy_chunked.py | 1 import re 68 m = re.search('\x0d\x0a\x0d\x0a(.*)', data, re.M | re.S) 72 for line in re.split('\r\n', body): 74 m1 = re.search(r'(.*)\sX\s(\d+)', line) 83 for chunk in re.split(r'([@#])', req):
|
H A D | test_perl_application.py | 1 import re 30 assert re.search(r'Unit/[\d\.]+', header_server), 'server header'
|
H A D | test_python_application.py | 4 import re 41 assert re.search(r'Unit/[\d\.]+', header_server), 'server header' 578 re.compile(r'.*UTF[-_]?8'), 579 re.compile(r'.*ISO[-_]?8859[-_]?1'),
|
H A D | test_proxy.py | 1 import re 88 m = re.search(r'X-Len: (\d+)', data) 269 assert re.search('200 OK', client.recvall(sock).decode()), 'fragmented send' 418 assert re.search('200 OK', sock.recv(100).decode()), 'first' 432 assert re.search('200 OK', sock.recv(100).decode()), 'second'
|
H A D | test_java_application.py | 2 import re 908 assert re.search( 911 assert re.search( 989 assert re.search(r'sample\.txt created', resp['body']), 'multipart body'
|
H A D | test_go_application.py | 1 import re 28 assert re.search(r'Unit/[\d\.]+', header_server), 'server header' 81 assert re.search(r'<title>404 Not Found</title>', resp['body']), '404 body'
|
H A D | conftest.py | 5 import re 356 z_ppids = re.findall(r'Z\s*(\d+)', out) 491 if re.search(fr'{router_pid}\s+{main_pid}.*unit: router', l) is None 498 if re.search(fr'{controller_pid}\s+{main_pid}.*unit: controller', l) 603 m = re.search(fr'\s*(\d+)\s*{unit_instance["pid"]}.*{name}', output) 608 return re.findall(f'{unit_instance["pid"]}.*{name}', ps_output) 660 def _search_in_file(pattern, name='unit.log', flags=re.M): 661 return re.search(pattern, Log.read(name), flags)
|
/unit/src/ |
H A D | nxt_conf_validation.c | 2189 nxt_regex_t *re; in nxt_conf_vldt_match_pattern() local 2211 re = nxt_regex_compile(vldt->pool, &pattern, &err); in nxt_conf_vldt_match_pattern() 2212 if (nxt_slow_path(re == NULL)) { in nxt_conf_vldt_match_pattern()
|
H A D | nxt_http_route.c | 959 nxt_regex_t *re; in nxt_http_route_pattern_create() local 990 re = nxt_regex_compile(mp, &test, &err); in nxt_http_route_pattern_create() 991 if (nxt_slow_path(re == NULL)) { in nxt_http_route_pattern_create() 1003 pattern->u.regex = re; in nxt_http_route_pattern_create()
|
/unit/tools/ |
H A D | setup-unit | 14 Your version of bash(1) isn't supported by this script. You're probably
|
H A D | unitc | 130 # Figure out if we're running on the Unit host, or remotely
|
/unit/test/unit/ |
H A D | http.py | 5 import re 209 m = re.search(r'(.*?\x0d\x0a?)\x0d\x0a?(.*)', resp, re.M | re.S) 215 headers_lines = re.findall('(.*?)\x0d\x0a?', headers_text, re.M | re.S) 217 status = re.search( 223 m = re.search(r'(.*)\:\s(.*)', line)
|
H A D | log.py | 2 import re 32 alerts = re.findall(r'.+\[alert\].+', log) 43 alerts = [al for al in alerts if re.search(skip, al) is None] 48 sanitizer_errors = re.findall('.+Sanitizer.+', log) 56 def findall(pattern, name=UNIT_LOG, flags=re.M): 57 return re.findall(pattern, Log.read(name), flags) 103 def wait_for_record(pattern, name=UNIT_LOG, wait=150, flags=re.M): 106 found = re.search(pattern, file.read(), flags)
|