예제 #1
0
 def test_list_cert_bindings(self):
     '''
     Test - List certificate bindings for an IIS site.
     '''
     key = '*:443:mytestsite.local'
     with patch.dict(win_iis.__salt__):
         self.assertEqual(win_iis.list_cert_bindings('MyTestSite'),
                          {key: BINDING_LIST[key]})
예제 #2
0
 def test_list_cert_bindings(self):
     """
     Test - List certificate bindings for an IIS site.
     """
     key = "*:443:mytestsite.local"
     with patch.dict(win_iis.__salt__), patch(
             "salt.modules.win_iis.list_sites",
             MagicMock(return_value=SITE_LIST)):
         self.assertEqual(win_iis.list_cert_bindings("MyTestSite"),
                          {key: BINDING_LIST[key]})
예제 #3
0
 def test_list_cert_bindings(self):
     '''
     Test - List certificate bindings for an IIS site.
     '''
     key = '*:443:mytestsite.local'
     with patch.dict(win_iis.__salt__), \
             patch('salt.modules.win_iis.list_sites',
                   MagicMock(return_value=SITE_LIST)):
         self.assertEqual(win_iis.list_cert_bindings('MyTestSite'),
                          {key: BINDING_LIST[key]})