Example #1
0
 def test_vserver_sslcert_exists(self):
     """
     Tests if it checks if a SSL certificate is tied to a vserver
     """
     mock = MagicMock(return_value="")
     with patch.dict(netscaler.__salt__, {"config.option": mock}):
         self.assertTrue(netscaler.vserver_sslcert_exists("vserverName", "serviceGroupName"))
Example #2
0
 def test_vserver_sslcert_exists(self):
     '''
     Tests if it checks if a SSL certificate is tied to a vserver
     '''
     mock = MagicMock(return_value='')
     with patch.dict(netscaler.__salt__, {'config.option': mock}):
         self.assertTrue(netscaler.vserver_sslcert_exists
                         ('vserverName', 'serviceGroupName'))
 def test_vserver_sslcert_exists(self):
     """
     Tests if it checks if a SSL certificate is tied to a vserver
     """
     mock = MagicMock(return_value="")
     with patch.dict(netscaler.__salt__, {"config.option": mock}):
         self.assertTrue(
             netscaler.vserver_sslcert_exists("vserverName",
                                              "serviceGroupName"))