Пример #1
0
def setup_module(module):
    print("setup_module    module:%s" % module.__name__)
    TestEnv.init()
    TestEnv.APACHE_CONF_SRC = "data/test_auto"
    TestEnv.check_acme()
    TestEnv.clear_store()
    TestEnv.install_test_conf()
Пример #2
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.apache_err_reset()
     TestEnv.clear_store()
     TestEnv.install_test_conf()
     self.test_n = re.match("test_(.+)", method.__name__).group(1)
     self.test_domain = ("%s-" % self.test_n) + TestAuto.dns_uniq
Пример #3
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.clear_store()
     # add managed domains
     dnslist = [[self.NAME1, "www.greenbytes2.de", "mail.greenbytes2.de"],
                [self.NAME2, "test-101.com", "test-102.com"]]
     for dns in dnslist:
         TestEnv.a2md(["-a", TestEnv.ACME_URL, "add"] + dns)
Пример #4
0
 def test_310_500(self):
     TestEnv.install_test_conf("other_base");
     assert TestEnv.apache_restart() == 0
     assert TestEnv.a2md([ "list" ])['jout']['output'] == []
     TestEnv.set_store_dir("md-other")
     TestEnv.check_md("testdomain.org", ["testdomain.org", "www.testdomain.org", "mail.testdomain.org"], 1)
     TestEnv.clear_store()
     TestEnv.set_store_dir_default()
Пример #5
0
 def setup_class(cls):
     print("setup_class:%s" % cls.__name__)
     TestEnv.init()
     TestEnv.clear_store()
     TestEnv.check_acme()
     cls.domain = TestEnv.get_class_domain(cls)
     cls.notify_cmd = ("%s/notify.py" % TestEnv.TESTROOT)
     cls.notify_log = ("%s/notify.log" % TestEnv.GEN_DIR)
Пример #6
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.clear_store()
     self.test_domain = TestEnv.get_method_domain(method)
     self.mcmd = ("%s/message.py" % TestEnv.TESTROOT)
     self.mlog = ("%s/message.log" % TestEnv.GEN_DIR)
     if os.path.isfile(self.mlog):
         os.remove(self.mlog)
Пример #7
0
 def setup_class(cls):
     print("setup_class:%s" % cls.__name__)
     TestEnv.init()
     TestEnv.clear_store()
     TestEnv.check_acme()
     cls.domain = TestEnv.get_class_domain(cls)
     cls.configure_httpd(cls.domain)
     assert TestEnv.apache_restart() == 0
     assert TestEnv.await_completion([cls.domain])
Пример #8
0
 def setup_class(cls):
     print("setup_class:%s" % cls.__name__)
     TestEnv.init()
     TestEnv.clear_store()
     TestEnv.check_acme()
     cls.domain = TestEnv.get_class_domain(cls)
     cls.mdA = "a-" + cls.domain
     cls.mdB = "b-" + cls.domain
     cls.configure_httpd([cls.mdA, cls.mdB]).install()
     assert TestEnv.apache_restart() == 0
     assert TestEnv.await_completion([cls.mdA, cls.mdB])
     TestEnv.check_md_complete(cls.mdA)
     TestEnv.check_md_complete(cls.mdB)
Пример #9
0
 def test_310_500(self):
     HttpdConf(text="""
         MDStoreDir md-other
         MDomain testdomain.org www.testdomain.org mail.testdomain.org
         """).install()
     assert TestEnv.apache_restart() == 0
     assert TestEnv.a2md(["list"])['jout']['output'] == []
     TestEnv.set_store_dir("md-other")
     TestEnv.check_md(
         ["testdomain.org", "www.testdomain.org", "mail.testdomain.org"],
         state=1)
     TestEnv.clear_store()
     TestEnv.set_store_dir_default()
Пример #10
0
def setup_module(module):
    print("setup_module    module:%s" % module.__name__)
    TestEnv.init()
    TestEnv.httpd_error_log_clear()
    TestEnv.clear_store()
Пример #11
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.clear_store()
     self.test_domain = TestEnv.get_method_domain(method)
Пример #12
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.apache_err_reset();
     TestEnv.clear_store()
     TestEnv.install_test_conf();
Пример #13
0
def setup_module(module):
    print("setup_module    module:%s" % module.__name__)
    TestEnv.initv1()
    TestEnv.APACHE_CONF_SRC = "data/test_roundtrip"
    TestEnv.clear_store()
    TestEnv.install_test_conf(None)
Пример #14
0
 def setup_class(cls):
     TestEnv.clear_store()
     TestEnv.install_test_conf(None)
Пример #15
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.check_acme()
     TestEnv.clear_store()
     TestEnv.install_test_conf(None)
     assert TestEnv.apache_start() == 0
Пример #16
0
def setup_module(module):
    print("setup_module    module:%s" % module.__name__)
    TestEnv.init()
    TestEnv.apache_err_reset()
    TestEnv.clear_store()
    TestEnv.APACHE_CONF_SRC = "data/test_conf_validate"
Пример #17
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.check_acme()
     TestEnv.clear_store()
Пример #18
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.initv2()
     TestEnv.apache_err_reset()
     TestEnv.clear_store()
     self.test_domain = TestEnv.get_method_domain(method)