MCPcopy Create free account
hub / github.com/apache/httpd / _class_scope

Method _class_scope

test/modules/core/test_001_encoding.py:10–26  ·  view source on GitHub ↗
(self, env)

Source from the content-addressed store, hash-verified

8
9 @pytest.fixture(autouse=True, scope='class')
10 def _class_scope(self, env):
11 conf = HttpdConf(env, extras={
12 'base': f"""
13 <Directory "{env.gen_dir}">
14 AllowOverride None
15 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
16 Require all granted
17 </Directory>
18 """,
19 f"test2.{env.http_tld}": "AllowEncodedSlashes on",
20 f"test1.{env.http_tld}": f"ScriptAlias /cgi-bin/ {env.gen_dir}",
21 })
22 conf.add_vhost_test1()
23 conf.add_vhost_test2()
24 conf.add_vhost_cgi()
25 conf.install()
26 assert env.apache_restart() == 0
27
28 # check handling of url encodings that are accepted
29 @pytest.mark.parametrize("path", [

Callers

nothing calls this directly

Calls 6

add_vhost_test1Method · 0.95
add_vhost_test2Method · 0.95
add_vhost_cgiMethod · 0.95
installMethod · 0.95
HttpdConfClass · 0.90
apache_restartMethod · 0.80

Tested by

no test coverage detected