Ejemplo n.º 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()
    HttpdConf().install()
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.clear_store()
     # add managed domains
     domains = [[self.NAME1, "www.greenbytes2.de", "mail.greenbytes2.de"],
                [self.NAME2, "test-101.com", "test-102.com"]]
     for dns in domains:
         TestEnv.a2md(["-a", TestEnv.ACME_URL, "add"] + dns)
Ejemplo n.º 4
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])
Ejemplo n.º 5
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.mcmdfail = ("%s/notifail.py" % TestEnv.TESTROOT)
     self.mlog = ("%s/message.log" % TestEnv.GEN_DIR)
     if os.path.isfile(self.mlog):
         os.remove(self.mlog)
Ejemplo n.º 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.mcmdfail = ("%s/notifail.py" % TestEnv.TESTROOT)
     self.mlog = ("%s/message.log" % TestEnv.GEN_DIR)
     self.menv_lines = 2  # mcmd log files add 2 additional lines with environment vars 
     if os.path.isfile(self.mlog):
         os.remove(self.mlog)
Ejemplo n.º 7
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()
Ejemplo n.º 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)
Ejemplo n.º 9
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.clear_store()
     self.test_domain = TestEnv.get_method_domain(method)
Ejemplo n.º 10
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     TestEnv.clear_store()
Ejemplo n.º 11
0
def setup_module(module):
    print("setup_module    module:%s" % module.__name__)
    TestEnv.init()
    TestEnv.clear_store()
Ejemplo n.º 12
0
 def setup_class(cls):
     TestEnv.clear_store()
     HttpdConf().install()
Ejemplo n.º 13
0
 def setup_method(self, method):
     print("setup_method: %s" % method.__name__)
     HttpdConf().install()
     TestEnv.httpd_error_log_clear()
     TestEnv.clear_store()
     self.test_domain = TestEnv.get_method_domain(method)
Ejemplo n.º 14
0
def setup_module(module):
    print("setup_module    module:%s" % module.__name__)
    TestEnv.initv1()
    TestEnv.APACHE_CONF_SRC = "data/test_roundtrip"
    TestEnv.clear_store()
    HttpdConf().install()