Exemplo n.º 1
0
 def setUp(self):
     super(PleskDeployerTest, self).setUp()
     self.deployer = deployer.PleskDeployer(
         plesk_api_client=api_mock.PleskApiMock(),
         domain="example.com")
     with open(self._mock_file('test.crt')) as cert_file:
         with open(self._mock_file('test.key')) as key_file:
             self.deployer.init_cert(cert_data=cert_file.read(),
                                     key_data=key_file.read())
Exemplo n.º 2
0
 def _setUpDeployer(self):
     self.deployer = deployer.PleskDeployer(
         plesk_api_client=api_mock.PleskApiMock(),
         domain="example.com")
 def setUp(self):
     super(PleskConfiguratorTest, self).setUp()
     self.configurator = configurator.PleskConfigurator(
         config=mock.MagicMock(), name="plesk")
     self.configurator.plesk_api_client = api_mock.PleskApiMock()
     self.configurator.prepare()
Exemplo n.º 4
0
 def setUp(self):
     super(PleskChallengeTest, self).setUp()
     self.challenge = challenge.PleskChallenge("example.com",
                                               api_mock.PleskApiMock())