Univention Bugzilla – Bug 34549
Test CLI tool import_user
Last modified: 2014-08-27 17:01:39 CEST
For refactoring the CLI tool "import_user" all functions should be tested via ucs-test. Currently the tool uses it's own implementation (which shall be used as reference!). The upcoming UCS@school import library will provide the same functionality as the import CLI tools and will be used within the CLI tools in near future. Ideally the test script is able to test the CLI tool as well as the import lib.
I've added a first version. r50111 Theses issues are still missing: - hook support - sambahome check - profilepath check Questions: - Is a rename of an user via import possible? - Do we need tests for 'self.rights = parsed[6] # users which may change this entry' - What about multi schools for one user?
(In reply to Stefan Gohmann from comment #1) > - hook support Hook support has been added: r50113
(In reply to Stefan Gohmann from comment #1) > - Is a rename of an user via import possible? No. Not possible. > - Do we need tests for > 'self.rights = parsed[6] # users which may change this entry' No. Unused. > - What about multi schools for one user? Currently not possible.
(In reply to Stefan Gohmann from comment #1) > - sambahome check > - profilepath check Done: r50158 + r50160
221 » def get_profile_path_server(self): 222 » » if configRegistry.get('ucsschool/import/set/serverprofile/path'): 223 » » » print 'get_profile_path_server: UCR variable ucsschool/import/set/serverprofile/path is set' 224 » » » return configRegistry.get('samba_home_path_server') REOPEN: the return value is wrong.
(In reply to Florian Best from comment #5) > 221 » def get_profile_path_server(self): > 222 » » if configRegistry.get('ucsschool/import/set/serverprofile/path'): > 223 » » » print 'get_profile_path_server: UCR variable > ucsschool/import/set/serverprofile/path is set' > 224 » » » return configRegistry.get('samba_home_path_server') > > REOPEN: the return value is wrong. r52915 | Bug #34549: fixed wrong UCR variable name ucs-test-ucsschool (1.0.76-1) unstable; urgency=low
OK
UCS@school 3.2 R2 v2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2R2v2-de.html If this error occurs again, please use "Clone This Bug".