Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 11 of 11) sorted by relevance

/unit/test/
H A Dtest_variables.py38 def check_dollar(location, expect): argument
43 assert client.get()['headers']['Location'] == expect
115 def check_uri(uri, expect=None): argument
116 expect = uri if expect is None else expect
153 def check_host(host, expect=None): argument
154 expect = host if expect is None else expect
294 def check_vars(uri, expect): argument
328 def check_arg(url, expect=None): argument
329 expect = url if expect is None else expect
H A Dtest_njs_modules.py9 def njs_script_load(module, name=None, expect='success'): argument
14 assert expect in client.conf(script.read(), f'/js_modules/{name}')
56 njs_script_load('global_this', 'next', expect='error')
104 njs_script_load('invalid', expect='error')
H A Dtest_return.py99 def check_location(location, expect=None): argument
100 if expect is None:
101 expect = location
107 assert client.get()['headers']['Location'] == expect
H A Dtest_rewrite.py113 def check_location(rewrite, expect): argument
128 assert client.get()['headers']['Location'] == expect
H A Dtest_settings.py35 def header_value(size, expect=200): argument
37 assert client.get(headers=headers)['status'] == expect
57 def big_headers(headers_num, expect=200): argument
63 assert client.get(headers=headers)['status'] == expect
H A Dtest_tls_sni.py32 def check_cert(host, expect, ctx): argument
44 assert sock.getpeercert()['subject'][0][0][1] == expect
H A Dtest_access_log.py291 def check_format(log_format, expect, url='/'): argument
295 assert wait_for_record(expect, 'access.log') is not None, 'found'
H A Dtest_java_application.py79 def check_header(header, expect): argument
81 assert len(values) == len(expect)
82 assert set(values) == set(expect)
/unit/src/wasm-wasi-component/
H A Dbuild.rs23 .expect("Unable to generate bindings"); in main()
32 .expect("Couldn't write bindings!"); in main()
/unit/src/wasm-wasi-component/src/
H A Dlib.rs234 state.handle(msg).await.expect("failed to handle request") in run()
/unit/docs/
H A Dunit-openapi.yaml6115 description: "Defines the HTTP header fields to expect in the request;
6130 description: "Defines the relevant HTTP header field to expect in the