equal
deleted
inserted
replaced
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() |