Beispiel #1
0
    def setUp(self):
        from letsencrypt.plugins.manual import ManualAuthenticator
        self.config = mock.MagicMock(
            no_simple_http_tls=True, simple_http_port=4430,
            manual_test_mode=False)
        self.auth = ManualAuthenticator(config=self.config, name="manual")
        self.achalls = [achallenges.SimpleHTTP(
            challb=acme_util.SIMPLE_HTTP_P, domain="foo.com", account_key=KEY)]

        config_test_mode = mock.MagicMock(
            no_simple_http_tls=True, simple_http_port=4430,
            manual_test_mode=True)
        self.auth_test_mode = ManualAuthenticator(
            config=config_test_mode, name="manual")
Beispiel #2
0
 def setUp(self):
     from letsencrypt.plugins.manual import ManualAuthenticator
     self.config = mock.MagicMock(
         no_simple_http_tls=True, simple_http_port=4430)
     self.auth = ManualAuthenticator(config=self.config, name="manual")
     self.achalls = [achallenges.SimpleHTTP(
         challb=acme_util.SIMPLE_HTTP, domain="foo.com", key=None)]