Example #1
0
 def test_test_cert(self):
     '''
     Test - Check the certificate for validity.
     '''
     with patch.dict(win_pki.__salt__), \
             patch('salt.modules.win_pki._cmd_run',
                   MagicMock(return_value='True')), \
             patch('salt.modules.win_pki._validate_cert_path',
                   MagicMock(return_value=None)):
         self.assertTrue(win_pki.test_cert(thumbprint=THUMBPRINT))
Example #2
0
 def test_test_cert(self):
     """
     Test - Check the certificate for validity.
     """
     with patch.dict(win_pki.__salt__), patch(
             "salt.modules.win_pki._cmd_run",
             MagicMock(return_value="True")), patch(
                 "salt.modules.win_pki._validate_cert_path",
                 MagicMock(return_value=None)):
         self.assertTrue(win_pki.test_cert(thumbprint=THUMBPRINT))
Example #3
0
 def test_test_cert(self):
     '''
     Test - Check the certificate for validity.
     '''
     with patch.dict(win_pki.__salt__):
         self.assertTrue(win_pki.test_cert(thumbprint=THUMBPRINT))
Example #4
0
 def test_test_cert(self):
     '''
     Test - Check the certificate for validity.
     '''
     with patch.dict(win_pki.__salt__):
         self.assertTrue(win_pki.test_cert(thumbprint=THUMBPRINT))