def setup_server(cls): WebCase.setup_server(default_config={ 'AddMissingUser': '******', 'LdapUri': '__default__', 'LdapBaseDn': 'dc=nodomain', 'MinarcaUserBaseDir': '/tmp/minarca-test', })
def tearDown(self): WebCase.tearDown(self) # Stop patching ldap.initialize and reset state. self.mockldap.stop() del self.ldapobj del self.mockldap shutil.rmtree('/tmp/minarca-test')
def setUp(self): self.app.store.get_user('admin').user_root = '/tmp' # Mock LDAP self.mockldap = MockLdap(self.directory) self.mockldap.start() self.ldapobj = self.mockldap['ldap://localhost/'] WebCase.setUp(self) self.plugin = MinarcaUserSetup(self.app) if not os.path.isdir('/tmp/minarca-test'): os.mkdir('/tmp/minarca-test')
def setup_server(cls): WebCase.setup_server(enabled_plugins=['SQLite', 'RemoveOlder'])
def setup_server(cls,): WebCase.setup_server(enabled_plugins=['SQLite', 'UserPrefsGeneral', 'UserPrefsSSHKeys'])
def setUp(self): WebCase.setUp(self) # Add test user self.app.userdb.add_user('test', 'test123') self._login('test', 'test123')
def setup_server(cls): WebCase.setup_server(enabled_plugins=['SQLite', 'UserPrefsSSHKeys'])
def setUp(self): if not os.path.isdir('/tmp/minarca-test'): os.mkdir('/tmp/minarca-test') WebCase.setUp(self)
def tearDown(self): WebCase.tearDown(self) shutil.rmtree('/tmp/minarca-test')
def setup_server(cls): WebCase.setup_server(enabled_plugins=['SQLite', 'UserPrefsGeneral'])
def setup_server(cls): WebCase.setup_server(default_config={ 'MinarcaUserBaseDir': '/tmp/minarca-test', })
def tearDown(self): WebCase.tearDown(self)
def setup_server(cls): WebCase.setup_server(enabled_plugins=['SQLite'])
def setup_server(cls): WebCase.setup_server(enabled_plugins=['SQLite', 'SetEncoding'])
def setup_server(cls): WebCase.setup_server(enabled_plugins=['SQLite', 'DeleteRepo'])