Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 117) sorted by last modified time

12345

/unit/test/
H A Dtest_asgi_application.py108 resp = self.get(url='/?')
116 resp = self.get()
160 assert self.get()['status'] == 200, 'init'
308 resp = self.get(sock=sock)
325 assert self.get()['status'] == 200
345 self.get(
369 self.get(headers=headers_delay_1)
386 self.get(no_recv=True)
398 (_, sock) = self.get(
432 resp = self.get(
[all …]
H A Dtest_tls.py136 assert self.get()['status'] == 200, 'remove listener option'
498 assert self.get()['status'] == 200, 'init'
555 assert self.get()['status'] == 200, 'init'
H A Dtest_routing.py45 self.get(
892 self.get(
903 self.get(
917 self.get(
927 self.get(
937 self.get(
952 self.get(
962 self.get(
972 self.get(
983 self.get(
[all …]
H A Dtest_client_ip.py37 return self.get(
52 assert self.get(port=7081)['body'] == '127.0.0.1', 'ipv4 default'
54 self.get(sock_type='ipv6', port=7082)['body'] == '::1'
62 assert self.get(port=7081)['body'] == '127.0.0.1', 'ipv4 default 2'
64 self.get(sock_type='ipv6', port=7082)['body'] == '::1'
H A Dtest_access_log.py33 assert self.get()['status'] == 200, 'init'
106 self.get(sock_type='ipv6')
124 self.get(sock_type='unix', addr=addr)
136 self.get(
152 self.get(
170 self.get(http_10=True)
232 self.get(headers={'Connection': 'close'})
242 self.get(url='/?blah&var=val')
256 self.get(url='/delete')
263 self.get()
[all …]
H A Dtest_ruby_application.py64 resp = self.get(url='/?var1=val1&var2=val2')
73 resp = self.get(url='/?')
81 resp = self.get()
176 assert self.get()['status'] == 200
185 assert self.get()['status'] == 200
194 assert self.get()['status'] == 200
207 assert self.get()['status'] == 200
215 assert self.get()['status'] == 200
258 resp = self.get()
375 resp = self.get()
[all …]
H A Dtest_variables.py72 assert self.get()['status'] == 211
84 self.get(
103 self.get(
156 assert self.get()['status'] == 201
159 assert self.get(url='/3')['status'] == 203
168 assert self.get()['status'] == 205
182 assert self.get(url='/1')['status'] == 200
203 self.get(
241 assert self.get()['status'] == 404
257 self.get(
[all …]
H A Dtest_static_chroot.py38 assert self.get(url='/dir/file')['status'] == 200, 'default chroot'
45 assert self.get(url='/dir/file')['status'] == 200, 'chroot'
46 assert self.get(url='/index.html')['status'] == 403, 'chroot 403 2'
47 assert self.get(url='/file')['status'] == 403, 'chroot 403'
53 assert self.get(url='/dir/file')['status'] == 200, 'share array'
63 assert self.get()['status'] != 200, 'share array bad'
75 assert self.get(url='/dir/file')['status'] == 200, 'chroot'
95 assert self.get(url=self.test_path)['status'] == 200, 'relative'
130 assert self.get(url='/dir/file')['status'] == 200, 'slash end'
136 assert self.get(url='/dir/file')['status'] == 200, 'no slash end'
[all …]
H A Dtest_forwarded_header.py33 return self.get(sock_type=sock_type, port=port, headers=headers)[
H A Dtest_reconfigure_tls.py52 (_, sock) = self.get(
63 assert self.get(sock=sock)['status'] == 200, 'reconfigure'
105 assert self.get(sock=ssl_sock)['status'] == 408, 'request timeout'
H A Dtest_static.py97 assert self.get()['body'] == 'readme', 'index'
103 assert self.get()['status'] == 404, 'index empty'
115 resp = self.get(url='/index.html/')
145 etag = self.get(url='/')['headers']['ETag']
146 etag_2 = self.get(url='/README')['headers']['ETag']
157 resp = self.get(url='/dir')
177 self.get(url='/ di r /fi le')['body'] == 'blah'
184 self.get(url='/ di r %2Ffi le')['body'] == 'blah'
244 assert self.get(url='/fifo')['status'] == 404, 'fifo'
265 _, sock = self.get(url='/', start=True, no_recv=True)
[all …]
H A Dtest_return.py35 resp = self.get()
52 resp = self.get(http_10=True)
63 resp = self.get()
69 resp = self.get()
75 resp = self.get()
81 resp = self.get()
147 assert self.get()['headers']['Location'] == 'blah'
152 assert 'Location' not in self.get()['headers']
157 assert self.get()['headers']['Location'] == 'blah'
162 assert self.get()['headers']['Location'] == 'blah'
[all …]
H A Dtest_python_application.py108 resp = self.get()
299 self.get()
308 self.get(
458 self.get()
497 self.get()
504 self.get()
513 self.get()
546 resp = self.get(
571 self.get(
609 resp = self.get(
[all …]
/unit/test/unit/
H A Dhttp.py15 sock_type = kwargs.get('sock_type', 'ipv4')
16 port = kwargs.get('port', 7080)
17 url = kwargs.get('url', '/')
20 headers = kwargs.get(
24 body = kwargs.get('body', b'')
90 encoding = kwargs.get('encoding', 'utf-8')
112 headers = resp.get('headers')
161 def get(self, **kwargs): member in TestHTTP
177 buff_size = kwargs.get('buff_size', 4096)
288 return self.get(json=True, **kwargs)
[all …]
/unit/test/unit/applications/
H A Dproto.py41 os.environ.get('PYTEST_CURRENT_TEST').split(':')[-1].split(' ')[0]
44 return option.generated_tests.get(current_test, self.application_type)
/unit/test/python/forwarded_header/
H A Dwsgi.py6 ('Remote-Addr', env.get('REMOTE_ADDR')),
7 ('Url-Scheme', env.get('wsgi.url_scheme')),
/unit/pkg/docker/
H A DDockerfile.ruby3.16 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
69 && apt-get clean && rm -rf /var/lib/apt/lists/* \
H A DDockerfile.node166 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
71 && apt-get clean && rm -rf /var/lib/apt/lists/* \
H A DDockerfile.php8.16 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
69 && apt-get clean && rm -rf /var/lib/apt/lists/* \
H A DDockerfile.python3.106 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
69 && apt-get clean && rm -rf /var/lib/apt/lists/* \
H A DDockerfile.perl5.346 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
69 && apt-get clean && rm -rf /var/lib/apt/lists/* \
H A DDockerfile.minimal6 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
69 && apt-get clean && rm -rf /var/lib/apt/lists/* \
H A DDockerfile.jsc116 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
69 && apt-get clean && rm -rf /var/lib/apt/lists/* \
H A DDockerfile.go1.186 && apt-get update \
7 …&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial buil…
14 …+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15 …dening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
71 && apt-get clean && rm -rf /var/lib/apt/lists/* \
/unit/
H A DCONTRIBUTING.md17 [Howto](https://unit.nginx.org/howto/) guides to get NGINX Unit up and running.

12345