Exemple #1
0
 def test_check_ca(self, mock_execute_until_success):
     check_ca("an-ingress", verbose=False)
     mock_execute_until_success.assert_called_once_with(
         "curl https://an-ingress/cainfo", verbose=False
     )
Exemple #2
0
 def test_check_ca_cert(self, mock_execute_until_success):
     check_ca("an-ingress", cacert="./tls_cert.pem", verbose=True)
     mock_execute_until_success.assert_called_once_with(
         "curl https://an-ingress/cainfo --cacert ./tls_cert.pem", verbose=True
     )
Exemple #3
0
 def test_check_ca_verbose(self, mock_execute_until_success):
     check_ca('an-ingress', verbose=True)
     mock_execute_until_success.assert_called_once_with('curl https://an-ingress/cainfo', verbose=True)