mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
Refactor tests out of packaged module for apache plugin
This commit is contained in:
parent
6d1472bf8c
commit
2f0b1aa1aa
193 changed files with 23 additions and 15 deletions
|
|
@ -1,6 +1,6 @@
|
|||
include LICENSE.txt
|
||||
include README.rst
|
||||
recursive-include certbot_apache/tests/testdata *
|
||||
recursive-include tests *
|
||||
include certbot_apache/_internal/centos-options-ssl-apache.conf
|
||||
include certbot_apache/_internal/options-ssl-apache.conf
|
||||
recursive-include certbot_apache/_internal/augeas_lens *.aug
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
"""Certbot Apache Tests"""
|
||||
|
|
@ -8,7 +8,8 @@ import six # pylint: disable=unused-import
|
|||
|
||||
from certbot import errors
|
||||
from certbot_apache._internal import constants
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class AutoHSTSTest(util.ApacheTest):
|
||||
|
|
@ -7,7 +7,8 @@ from certbot.errors import MisconfigurationError
|
|||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_centos
|
||||
from certbot_apache._internal import parser
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
|
|
@ -9,7 +9,8 @@ from certbot.compat import os
|
|||
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_centos
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
|
|
@ -5,7 +5,7 @@ import unittest
|
|||
from certbot import errors
|
||||
from certbot.compat import os
|
||||
|
||||
from certbot_apache.tests import util
|
||||
import util
|
||||
|
||||
|
||||
class ComplexParserTest(util.ParserTest):
|
||||
|
|
@ -6,7 +6,7 @@ import mock
|
|||
|
||||
from certbot import errors
|
||||
|
||||
from certbot_apache.tests import util
|
||||
import util
|
||||
|
||||
|
||||
class ConfiguratorReverterTest(util.ApacheTest):
|
||||
|
|
@ -24,7 +24,8 @@ from certbot_apache._internal import apache_util
|
|||
from certbot_apache._internal import constants
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import parser
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class MultipleVhostsTest(util.ApacheTest):
|
||||
|
|
@ -9,7 +9,8 @@ from certbot.compat import os
|
|||
|
||||
from certbot_apache._internal import apache_util
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class MultipleVhostsTestDebian(util.ApacheTest):
|
||||
|
|
@ -12,7 +12,8 @@ from certbot.tests import util as certbot_util
|
|||
from certbot_apache._internal import obj
|
||||
|
||||
from certbot_apache._internal.display_ops import select_vhost_multiple
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class SelectVhostMultiTest(unittest.TestCase):
|
||||
|
|
@ -9,7 +9,8 @@ from certbot.compat import os
|
|||
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_fedora
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
|
|
@ -9,7 +9,8 @@ from certbot.compat import os
|
|||
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_gentoo
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
|
|
@ -12,7 +12,8 @@ from certbot.compat import os
|
|||
from certbot.tests import acme_util
|
||||
|
||||
from certbot_apache._internal.parser import get_aug_path
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
NUM_ACHALLS = 3
|
||||
|
|
@ -7,7 +7,7 @@ import mock
|
|||
from certbot import errors
|
||||
from certbot.compat import os
|
||||
|
||||
from certbot_apache.tests import util
|
||||
import util
|
||||
|
||||
|
||||
class BasicParserTest(util.ParserTest):
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue