mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 16:14:44 +02:00
delete unneeded tests
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
"""Apache Configuration based off of Augeas Configurator."""
|
"""Apache Configuration based off of Augeas Configurator."""
|
||||||
# pylint: disable=too-many-lines
|
# pylint: disable=too-many-lines
|
||||||
import filecmp
|
import filecmp
|
||||||
import itertools
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ REWRITE_HTTPS_ARGS = [
|
|||||||
|
|
||||||
REWRITE_HTTPS_ARGS_WITH_END = [
|
REWRITE_HTTPS_ARGS_WITH_END = [
|
||||||
"^", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,QSA,R=permanent]"]
|
"^", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,QSA,R=permanent]"]
|
||||||
"""Apache version >= 2.3.9 rewrite rule arguments used for redirections to
|
"""Apache version >= 2.3.9 rewrite rule arguments used for redirections to
|
||||||
https vhost"""
|
https vhost"""
|
||||||
|
|
||||||
HSTS_ARGS = ["always", "set", "Strict-Transport-Security",
|
HSTS_ARGS = ["always", "set", "Strict-Transport-Security",
|
||||||
|
|||||||
@@ -751,26 +751,6 @@ class TwoVhost80Test(util.ApacheTest):
|
|||||||
errors.PluginEnhancementAlreadyPresent,
|
errors.PluginEnhancementAlreadyPresent,
|
||||||
self.config.enhance, "encryption-example.demo", "redirect")
|
self.config.enhance, "encryption-example.demo", "redirect")
|
||||||
|
|
||||||
def test_unknown_rewrite(self):
|
|
||||||
# Skip the enable mod
|
|
||||||
self.config.parser.modules.add("rewrite_module")
|
|
||||||
self.config.parser.add_dir(
|
|
||||||
self.vh_truth[3].path, "RewriteRule", ["Unknown"])
|
|
||||||
self.config.save()
|
|
||||||
self.assertRaises(
|
|
||||||
errors.PluginError,
|
|
||||||
self.config.enhance, "letsencrypt.demo", "redirect")
|
|
||||||
|
|
||||||
def test_unknown_rewrite2(self):
|
|
||||||
# Skip the enable mod
|
|
||||||
self.config.parser.modules.add("rewrite_module")
|
|
||||||
self.config.parser.add_dir(
|
|
||||||
self.vh_truth[3].path, "RewriteRule", ["Unknown", "2", "3"])
|
|
||||||
self.config.save()
|
|
||||||
self.assertRaises(
|
|
||||||
errors.PluginError,
|
|
||||||
self.config.enhance, "letsencrypt.demo", "redirect")
|
|
||||||
|
|
||||||
def test_create_own_redirect(self):
|
def test_create_own_redirect(self):
|
||||||
self.config.parser.modules.add("rewrite_module")
|
self.config.parser.modules.add("rewrite_module")
|
||||||
# For full testing... give names...
|
# For full testing... give names...
|
||||||
|
|||||||
Reference in New Issue
Block a user