示例#1
0
 def setup_server(cls):
     WebCase.setup_server(default_config={
         'AddMissingUser': '******',
         'LdapUri': '__default__',
         'LdapBaseDn': 'dc=nodomain',
         'MinarcaUserBaseDir': '/tmp/minarca-test',
         })
示例#2
0
 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')
示例#3
0
 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')
示例#4
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'RemoveOlder'])
示例#5
0
 def setup_server(cls,):
     WebCase.setup_server(enabled_plugins=['SQLite', 'UserPrefsGeneral', 'UserPrefsSSHKeys'])
示例#6
0
 def setUp(self):
     WebCase.setUp(self)
     # Add test user
     self.app.userdb.add_user('test', 'test123')
     self._login('test', 'test123')
示例#7
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'UserPrefsSSHKeys'])
示例#8
0
 def setUp(self):
     if not os.path.isdir('/tmp/minarca-test'):
         os.mkdir('/tmp/minarca-test')
     WebCase.setUp(self)
示例#9
0
 def tearDown(self):
     WebCase.tearDown(self)
     shutil.rmtree('/tmp/minarca-test')
示例#10
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'UserPrefsGeneral'])
示例#11
0
 def setup_server(cls):
     WebCase.setup_server(default_config={
         'MinarcaUserBaseDir': '/tmp/minarca-test',
         })
示例#12
0
 def tearDown(self):
     WebCase.tearDown(self)
示例#13
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite'])
示例#14
0
 def tearDown(self):
     WebCase.tearDown(self)
示例#15
0
 def setUp(self):
     WebCase.setUp(self)
     # Add test user
     self.app.userdb.add_user('test', 'test123')
     self._login('test', 'test123')
示例#16
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'SetEncoding'])
示例#17
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'RemoveOlder'])
示例#18
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'SetEncoding'])
示例#19
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'DeleteRepo'])
示例#20
0
 def setup_server(cls):
     WebCase.setup_server(enabled_plugins=['SQLite', 'DeleteRepo'])