Exemplo n.º 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"))
Exemplo n.º 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'))
Exemplo n.º 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'))
Exemplo n.º 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'))