Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 32) sorted by last modified time

12

/unit/
H A DCHANGES184 error (fixed with a 301 re-direct).
/unit/test/
H A Dtest_asgi_application.py1 import re
38 assert re.search(r'Unit/[\d\.]+', header_server), 'server header'
H A Dtest_procman.py1 import re
29 for m in re.findall(
32 pids.add(re.search(r'^\s*(\d+)', m).group(1))
H A Dtest_node_application.py1 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 Dtest_ruby_application.py1 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 Dtest_upstreams_rr.py2 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 Dtest_variables.py1 import re
H A Dtest_settings.py1 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 Dtest_return.py1 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 Dtest_respawn.py1 import re
30 m = re.search(fr'\s*(\d+)\s*{ppid}.*{name}', output)
51 return re.findall(fr'{ppid}.*{name}', ps_output)
H A Dtest_python_isolation.py1 import re
23 pid = re.search(fr'(\d+)\s*unit: "{app_name}" application', output).group(1)
H A Dtest_php_application.py3 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 Dtest_proxy_chunked.py1 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 Dtest_perl_application.py1 import re
30 assert re.search(r'Unit/[\d\.]+', header_server), 'server header'
H A Dtest_python_application.py4 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 Dtest_proxy.py1 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 Dtest_java_application.py2 import re
908 assert re.search(
911 assert re.search(
989 assert re.search(r'sample\.txt created', resp['body']), 'multipart body'
H A Dtest_go_application.py1 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 Dconftest.py5 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 Dnxt_conf_validation.c2189 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 Dnxt_http_route.c959 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 Dsetup-unit14 Your version of bash(1) isn't supported by this script. You're probably
H A Dunitc130 # Figure out if we're running on the Unit host, or remotely
/unit/test/unit/
H A Dhttp.py5 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 Dlog.py2 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)

12