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