Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     super(VpnaasIpsecDriverTestCase, self).__init__(*args, **kwargs)
     self.conf = 'conf'
     self.test_dict = vpn_test_data.VPNTestData()
     self.context = self.test_dict.make_service_context()
     self.plugin_rpc = vpn.VpnaasRpcSender(self.test_dict.sc)
     self.driver = vyos_vpn_driver.VpnaasIpsecDriver(self.conf)
     self.svc_validate = (vyos_vpn_driver.VPNServiceValidator(
         self.plugin_rpc))
     self.resp = mock.Mock()
     self.fake_resp_dict = {'status': True}
 def __init__(self, *args, **kwargs):
     super(VPNSvcValidatorTestCase, self).__init__(*args, **kwargs)
     self.test_dict = vpn_test_data.VPNTestData()
     self.plugin_rpc = vpn.VpnaasRpcSender(self.test_dict.sc)
     self.valid_obj = vyos_vpn_driver.VPNServiceValidator(self.plugin_rpc)