Fixed wrong affiliation for autodetected users

Also:
* Refactored record processor tests
* Fixed logic of user profile update
* Introduced --force-update option to read default data forcibly

Resolves bug 1215128

Change-Id: I701ec0c5583885daa5480b18cce8f31b82f6a6b4
This commit is contained in:
Ilya Shakhat
2013-08-29 16:52:37 +04:00
parent 044d4f8f61
commit c6d8118d43
8 changed files with 279 additions and 174 deletions

View File

@@ -122,6 +122,8 @@ def update_repos(runtime_storage_inst):
for repo in repos:
process_repo(repo, runtime_storage_inst, record_processor_inst)
record_processor_inst.finalize()
def apply_corrections(uri, runtime_storage_inst):
LOG.info('Applying corrections from uri %s', uri)
@@ -158,7 +160,8 @@ def main():
return not 0
default_data_processor.process(runtime_storage_inst,
default_data,
cfg.CONF.sources_root)
cfg.CONF.sources_root,
cfg.CONF.force_update)
update_pids(runtime_storage_inst)