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 )
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 )
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)