Home
last modified time | relevance | path

Searched refs:temp_dir (Results 1 – 25 of 45) sorted by relevance

12

/unit/test/
H A Dtest_static_chroot.py42 temp_dir + "/assets$uri", temp_dir + "/assets/dir"
72 temp_dir + "/assets$uri", temp_dir + "/assets/dir"
99 temp_dir + '/assets$uri', temp_dir + '/assets/$host'
104 temp_dir + '/assets$uri', temp_dir + '/assets/${host}'
116 temp_dir + '/assets$uri', temp_dir + '/$host/dir'
122 temp_dir + '/assets$uri', temp_dir + '/assets/$host'
128 temp_dir + "/assets$uri", temp_dir + "/assets/dir/"
134 temp_dir + "/assets$uri", temp_dir + "/assets/dir"
139 temp_dir + "/assets$uri", temp_dir + "/assets/dir/"
164 temp_dir + '/assets$uri', temp_dir + '/assets/d$r$uri'
[all …]
H A Dtest_njs.py11 os.makedirs(option.temp_dir + '/assets')
12 open(option.temp_dir + '/assets/index.html', 'a')
13 open(option.temp_dir + '/assets/localhost', 'a')
14 open(option.temp_dir + '/assets/`string`', 'a')
15 open(option.temp_dir + '/assets/`backtick', 'a')
16 open(option.temp_dir + '/assets/l1\nl2', 'a')
17 open(option.temp_dir + '/assets/127.0.0.1', 'a')
31 def test_njs_template_string(self, temp_dir): argument
44 def test_njs_template_expression(self, temp_dir): argument
54 def test_njs_variables(self, temp_dir): argument
[all …]
H A Dtest_static_variables.py12 def setup_method_fixture(self, temp_dir): argument
13 os.makedirs(temp_dir + '/assets/dir')
14 os.makedirs(temp_dir + '/assets/d$r')
16 Path(temp_dir + '/assets/dir/file').write_text('file')
17 Path(temp_dir + '/assets/d$r/file').write_text('d$r')
32 def test_static_variables(self, temp_dir): argument
42 def test_static_variables_array(self, temp_dir): argument
44 [temp_dir + '/assets$uri', '$uri']
65 assert self.get(url=temp_dir)['status'] == 200
74 def test_static_variables_invalid(self, temp_dir): argument
[all …]
H A Dtest_static_mount.py13 def setup_method_fixture(self, is_su, temp_dir): argument
17 os.makedirs(temp_dir + '/assets/dir/mount')
18 os.makedirs(temp_dir + '/assets/dir/dir')
19 os.makedirs(temp_dir + '/assets/mount')
29 temp_dir + "/assets/mount",
30 temp_dir + "/assets/dir/mount",
62 def test_static_mount(self, temp_dir, skip_alert): argument
88 os.symlink(temp_dir + '/assets/dir', temp_dir + '/assets/link')
118 "share": temp_dir + "/assets/dir$uri",
119 "chroot": temp_dir + "/assets",
[all …]
H A Dtest_static_types.py11 def setup_method_fixture(self, temp_dir): argument
12 Path(temp_dir + '/assets').mkdir()
37 def test_static_types_basic(self, temp_dir): argument
55 def test_static_types_wildcard(self, temp_dir): argument
68 def test_static_types_negation(self, temp_dir): argument
78 "share": temp_dir + "/assets$uri",
86 def test_static_types_regex(self, temp_dir): argument
89 "share": temp_dir + "/assets$uri",
97 def test_static_types_case(self, temp_dir): argument
122 def test_static_types_fallback(self, temp_dir): argument
[all …]
H A Dtest_static_symlink.py12 def setup_method_fixture(self, temp_dir): argument
13 os.makedirs(temp_dir + '/assets/dir/dir')
15 Path(temp_dir + '/assets/dir/file').write_text('blah')
24 def test_static_symlink(self, temp_dir, skip_alert): argument
27 os.symlink(temp_dir + '/assets/dir', temp_dir + '/assets/link')
51 os.symlink(temp_dir + '/assets/dir', temp_dir + '/assets/link')
58 "share": temp_dir + "/assets$uri",
65 "share": temp_dir + "/assets$uri",
80 temp_dir + '/assets/dir/file', temp_dir + '/assets/dir/dir/link'
87 "share": temp_dir + "/assets$uri",
[all …]
H A Dtest_static.py14 os.makedirs(option.temp_dir + '/assets/dir')
16 option.temp_dir + '/assets/README', 'w'
18 option.temp_dir + '/assets/log.log', 'w'
87 def test_static_large_file(self, temp_dir): argument
98 def test_static_etag(self, temp_dir): argument
118 temp_dir + '/assets/dir/file',
119 temp_dir + '/assets/dir/fi le',
124 os.rename(temp_dir + '/assets/dir', temp_dir + '/assets/di r')
128 os.rename(temp_dir + '/assets/di r', temp_dir + '/assets/ di r ')
179 temp_dir + '/assets/ di r ',
[all …]
H A Dtest_static_share.py12 def setup_method_fixture(self, temp_dir): argument
13 os.makedirs(temp_dir + '/assets/dir')
14 os.makedirs(temp_dir + '/assets/dir2')
16 Path(temp_dir + '/assets/dir/file').write_text('1')
17 Path(temp_dir + '/assets/dir2/file2').write_text('2')
30 def test_share_array(self, temp_dir): argument
34 self.action_update({"share": [temp_dir + "/assets/dir$uri"]})
42 temp_dir + "/assets/dir$uri",
43 temp_dir + "/assets/dir2$uri",
54 temp_dir + "/assets/dir2$uri",
[all …]
H A Dtest_python_isolation.py12 def test_python_isolation_rootfs(self, is_su, temp_dir): argument
28 isolation = {'rootfs': temp_dir}
40 self.getjson(url='/?path=' + temp_dir)['body']['FileExists']
61 def test_python_isolation_rootfs_no_language_deps(self, is_su, temp_dir): argument
69 assert findmnt().find(temp_dir) == -1
71 assert findmnt().find(temp_dir) == -1
77 assert findmnt().find(temp_dir) == -1
79 assert waitformount(temp_dir), 'language_deps mount'
83 assert waitforunmount(temp_dir), 'language_deps unmount'
85 def test_python_isolation_procfs(self, is_su, temp_dir): argument
[all …]
H A Dtest_static_fallback.py12 def setup_method_fixture(self, temp_dir): argument
13 os.makedirs(temp_dir + '/assets/dir')
14 Path(temp_dir + '/assets/index.html').write_text('0123456789')
16 os.makedirs(temp_dir + '/assets/403')
17 os.chmod(temp_dir + '/assets/403', 0o000)
25 "routes": [{"action": {"share": temp_dir + "/assets$uri"}}],
33 os.chmod(temp_dir + '/assets/403', 0o777)
50 def test_static_fallback_valid_path(self, temp_dir): argument
52 {"share": temp_dir + "/assets$uri", "fallback": {"return": 200}}
83 def test_static_fallback_share(self, temp_dir): argument
[all …]
H A Dtest_java_isolation_rootfs.py16 os.makedirs(option.temp_dir + '/jars')
17 os.makedirs(option.temp_dir + '/tmp')
18 os.chmod(option.temp_dir + '/tmp', 0o777)
26 option.temp_dir + "/jars",
43 ["umount", "--lazy", option.temp_dir + "/jars"],
53 def test_java_isolation_rootfs_chroot_war(self, is_su, temp_dir): argument
58 'rootfs': temp_dir,
H A Dtest_tls_sni.py33 with open(option.temp_dir + '/ca.conf', 'w') as f:
54 'dir': option.temp_dir,
63 with open(option.temp_dir + '/certindex', 'w') as f:
85 option.temp_dir + '/openssl.conf',
87 option.temp_dir + '/{}.csr'.format(b),
89 option.temp_dir + '/{}.key'.format(b),
111 option.temp_dir + '/ca.conf',
113 option.temp_dir + '/root.key',
115 option.temp_dir + '/root.crt',
117 option.temp_dir + '/{}.csr'.format(b),
[all …]
H A Dtest_tls.py42 option.temp_dir + '/openssl.conf',
73 'dir': option.temp_dir,
95 option.temp_dir + '/ca.conf',
233 temp_dir + '/ec.key',
249 temp_dir + '/openssl.conf',
251 temp_dir + '/ec.key',
253 temp_dir + '/ec.crt',
308 crt_path = temp_dir + '/end-int.crt'
309 end_path = temp_dir + '/end.crt'
310 int_path = temp_dir + '/int.crt'
[all …]
H A Dtest_usr1.py12 def test_usr1_access_log(self, temp_dir, unit_pid): argument
17 log_path = temp_dir + '/' + log
25 os.rename(log_path, temp_dir + '/' + log_new)
47 def test_usr1_unit_log(self, temp_dir, unit_pid): argument
51 log_path = temp_dir + '/unit.log'
52 log_path_new = temp_dir + '/' + log_new
H A Dtest_php_isolation.py9 def test_php_isolation_rootfs(self, is_su, temp_dir): argument
25 isolation = {'rootfs': temp_dir}
45 def test_php_isolation_rootfs_extensions(self, is_su, temp_dir): argument
61 isolation = {'rootfs': temp_dir}
H A Dtest_python_isolation_chroot.py8 def test_python_isolation_chroot(self, is_su, temp_dir): argument
13 'rootfs': temp_dir,
19 self.getjson(url='/?path=' + temp_dir)['body']['FileExists']
H A Dconftest.py378 public_dir(temp_dir)
395 temp_dir + '/unit.pid',
397 temp_dir + '/unit.log',
401 temp_dir,
410 Log.temp_dir = temp_dir
416 unit_instance['temp_dir'] = temp_dir
420 option.temp_dir = temp_dir
422 with open(temp_dir + '/unit.pid', 'r') as f:
737 def temp_dir(request): function
768 public_dir(option.temp_dir)
[all …]
H A Dtest_access_log.py15 '"' + option.temp_dir + '/access.log"', 'access_log'
21 'path': option.temp_dir + '/access.log',
109 addr = option.temp_dir + '/sock'
257 '"' + option.temp_dir + '/new.log"', 'access_log'
296 option.temp_dir + '/blah/access.log' 'access_log/path',
301 'path': option.temp_dir + '/access.log',
H A Dtest_go_isolation_rootfs.py14 def test_go_isolation_rootfs_chroot(self, is_su, temp_dir): argument
22 'rootfs': temp_dir,
/unit/test/unit/applications/lang/
H A Dgo.py17 temp_dir = option.temp_dir + '/go/'
19 if not os.path.exists(temp_dir):
20 os.mkdir(temp_dir)
32 option.test_dir + '/go/' + script + '/' + name + '.go', temp_dir
44 temp_dir + name,
45 temp_dir + name + '.go',
52 temp_dir + name,
53 temp_dir + name + '.go',
58 with open(temp_dir + 'go.mod', 'w') as f:
70 process = subprocess.run(args, env=env, cwd=temp_dir)
[all …]
H A Dnode.py16 option.test_dir + '/node/' + script, option.temp_dir + '/node'
22 option.temp_dir + '/node/node_modules',
25 public_dir(option.temp_dir + '/node')
52 "working_directory": option.temp_dir + '/node',
H A Druby.py14 option.temp_dir + '/ruby/' + script,
17 public_dir(option.temp_dir + '/ruby/' + script)
22 script_path = option.temp_dir + '/ruby/' + script
/unit/test/unit/check/
H A Disolation.py31 "executable": option.temp_dir + "/go/app",
76 "working_directory": option.temp_dir + "/ruby/empty",
77 "script": option.temp_dir + "/ruby/empty/config.ru",
94 "webapp": option.temp_dir + "/java",
109 "working_directory": option.temp_dir + "/node",
136 addr=option.temp_dir + '/control.unit.sock',
H A Dchroot.py15 addr=option.temp_dir + '/control.unit.sock',
22 "share": option.temp_dir,
23 "chroot": option.temp_dir,
/unit/test/unit/applications/
H A Dtls.py27 option.temp_dir + '/openssl.conf',
29 option.temp_dir + '/' + name + '.crt',
31 option.temp_dir + '/' + name + '.key',
43 key_path = option.temp_dir + '/' + key + '.key'
44 crt_path = option.temp_dir + '/' + crt + '.crt'
56 conf_path = option.temp_dir + '/openssl.conf'

12