Пример #1
0
 def setUp(self, _restclient):
     super(ZFSSAApiTestCase, self).setUp()
     self.host = 'fakehost'
     self.user = '******'
     self.url = None
     self.pool = 'fakepool'
     self.project = 'fakeproject'
     self.share = 'fakeshare'
     self.snap = 'fakesnapshot'
     _restclient.return_value = fake_zfssa.FakeRestClient()
     self._zfssa = zfssarest.ZFSSAApi()
     self._zfssa.set_host('fakehost')
Пример #2
0
    def setUp(self, _restclient):
        super(ZFSSAApiTestCase, self).setUp()
        self.host = 'fakehost'
        self.user = '******'
        self.url = None
        self.pool = 'fakepool'
        self.project = 'fakeproject'
        self.share = 'fakeshare'
        self.snap = 'fakesnapshot'
        _restclient.return_value = fake_zfssa.FakeRestClient()
        self._zfssa = zfssarest.ZFSSAApi()
        self._zfssa.set_host('fakehost')

        self.schema = {
            'property': 'manila_managed',
            'description': 'Managed by Manila',
            'type': 'Boolean',
        }
Пример #3
0
def factory_zfssa():
    return zfssarest.ZFSSAApi()