Beispiel #1
0
 def test_restart_apppool(self):
     """
     Test - Restart an IIS application pool.
     """
     with patch.dict(win_iis.__salt__), patch(
             "salt.modules.win_iis._srvmgr",
             MagicMock(return_value={"retcode": 0})):
         self.assertTrue(win_iis.restart_apppool("MyTestPool"))
Beispiel #2
0
 def test_restart_apppool(self):
     '''
     Test - Restart an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__), \
             patch('salt.modules.win_iis._srvmgr',
                   MagicMock(return_value={'retcode': 0})):
         self.assertTrue(win_iis.restart_apppool('MyTestPool'))
Beispiel #3
0
 def test_restart_apppool(self):
     '''
     Test - Restart an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__):
         self.assertTrue(win_iis.restart_apppool('MyTestPool'))
Beispiel #4
0
 def test_restart_apppool(self):
     '''
     Test - Restart an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__):
         self.assertTrue(win_iis.restart_apppool('MyTestPool'))