Exemple #1
0
 def test_runner_ca_cryptogen(self, mock_print, mock_setup_ca):
     opts = deepcopy(self.OPTS)
     del opts["cas"]["a-ca"]
     runner_ca(opts, upgrade=False)
     mock_setup_ca.assert_not_called()
     mock_print.assert_called_once_with(
         "No CAs defined in Nephos settings, ignoring CA setup")
Exemple #2
0
 def test_runner_ca(self, mock_print, mock_setup_ca):
     opts = deepcopy(self.OPTS)
     runner_ca(opts, upgrade=False)
     mock_setup_ca.assert_called_once_with(opts,
                                           upgrade=False,
                                           verbose=False)
     mock_print.assert_not_called()
Exemple #3
0
def cert_auth(settings):
    opts = load_config(settings.settings_file)
    runner_ca(opts, upgrade=settings.upgrade, verbose=settings.verbose)
Exemple #4
0
 def test_runner_ca(self, mock_log, mock_setup_ca):
     opts = deepcopy(self.OPTS)
     runner_ca(opts, upgrade=False)
     mock_setup_ca.assert_called_once_with(opts, upgrade=False)
     mock_log.warning.assert_not_called()