Exemple #1
0
 def test_remove_apppool(self):
     '''
     Test - Remove an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__), \
             patch('salt.modules.win_iis._srvmgr',
                   MagicMock(return_value={'retcode': 0})), \
             patch('salt.modules.win_iis.list_apppools',
                   MagicMock(return_value={'MyTestPool': {
                                           'applications': list(),
                                           'state': 'Started'}})):
         self.assertTrue(win_iis.remove_apppool('MyTestPool'))
 def test_remove_apppool(self):
     """
     Test - Remove an IIS application pool.
     """
     with patch.dict(win_iis.__salt__), patch(
             "salt.modules.win_iis._srvmgr",
             MagicMock(return_value={"retcode": 0})), patch(
                 "salt.modules.win_iis.list_apppools",
                 MagicMock(return_value={
                     "MyTestPool": {
                         "applications": list(),
                         "state": "Started"
                     }
                 }),
             ):
         self.assertTrue(win_iis.remove_apppool("MyTestPool"))
Exemple #3
0
 def test_remove_apppool(self):
     '''
     Test - Remove an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__):
         self.assertTrue(win_iis.remove_apppool('MyTestPool'))
Exemple #4
0
 def test_remove_apppool(self):
     '''
     Test - Remove an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__):
         self.assertTrue(win_iis.remove_apppool('MyTestPool'))