Ejemplo n.º 1
0
 def setUp(self):
     from certbot.plugins.standalone import Authenticator
     self.config = mock.MagicMock(
         tls_sni_01_port=1234,
         http01_port=4321,
         standalone_supported_challenges="tls-sni-01,http-01")
     self.auth = Authenticator(self.config, name="standalone")
Ejemplo n.º 2
0
    def setUp(self):
        from certbot.plugins.standalone import Authenticator

        self.config = mock.MagicMock(
            http01_port=get_open_port(),
            standalone_supported_challenges="http-01")
        self.auth = Authenticator(self.config, name="standalone")
        self.auth.servers = mock.MagicMock()