Ejemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self['system.is_freenas'] = Mock(return_value=True)
        self.__schemas = Schemas()

        self.call_hook = CoroutineMock()
        self.call_hook_inline = Mock()
Ejemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self['failover.licensed'] = Mock(return_value=False)
        self['system.is_freenas'] = Mock(return_value=True)
        self.__schemas = Schemas()

        self.call_hook = CoroutineMock()
        self.call_hook_inline = Mock()
        self.event_register = Mock()
        self.send_event = Mock()

        self.logger = logging.getLogger("middlewared")
Ejemplo n.º 3
0
 def __init__(self, overlay_dirs=None):
     self.overlay_dirs = overlay_dirs or []
     self._schemas = Schemas()
     self._services = {}
     self._services_aliases = {}
Ejemplo n.º 4
0
 def __init__(self):
     self._schemas = Schemas()
Ejemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self['system.is_freenas'] = Mock(return_value=True)
     self.__schemas = Schemas()