(self, env)
| 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", [ |
nothing calls this directly
no test coverage detected