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()
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
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)
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()
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)
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)
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])
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)
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()
def setup_module(module): print("setup_module module:%s" % module.__name__) TestEnv.init() TestEnv.httpd_error_log_clear() TestEnv.clear_store()
def setup_method(self, method): print("setup_method: %s" % method.__name__) TestEnv.clear_store() self.test_domain = TestEnv.get_method_domain(method)
def setup_method(self, method): print("setup_method: %s" % method.__name__) TestEnv.apache_err_reset(); TestEnv.clear_store() TestEnv.install_test_conf();
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)
def setup_class(cls): TestEnv.clear_store() TestEnv.install_test_conf(None)
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
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"
def setup_method(self, method): print("setup_method: %s" % method.__name__) TestEnv.check_acme() TestEnv.clear_store()
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)