cubicweb/server/test/unittest_ldapsource.py
branch3.25
changeset 12151 569dce882f60
parent 12146 d540defa0591
child 12153 0ff0aff4413d
equal deleted inserted replaced
12150:6260c88e0ff5 12151:569dce882f60
   227 
   227 
   228     def test_wrong_group(self):
   228     def test_wrong_group(self):
   229         with self.admin_access.repo_cnx() as cnx:
   229         with self.admin_access.repo_cnx() as cnx:
   230             source = ldapsource(cnx)
   230             source = ldapsource(cnx)
   231             # inject a bogus group here, along with at least a valid one
   231             # inject a bogus group here, along with at least a valid one
   232             options = {'use-default-group': 'thisgroupdoesnotexists,users'}
   232             options = {'user-default-group': 'thisgroupdoesnotexists,users'}
   233             update_source_config(source, options)
   233             update_source_config(source, options)
   234             cnx.commit()
   234             cnx.commit()
   235             # here we emitted an error log entry
   235             # here we emitted an error log entry
   236             source.repo_source.pull_data(cnx, force=True, raise_on_error=True)
   236             source.repo_source.pull_data(cnx, force=True, raise_on_error=True)
   237             cnx.commit()
   237             cnx.commit()