Univention Bugzilla – Bug 34550
Test CLI tool import_computer
Last modified: 2014-08-27 17:01:48 CEST
For refactoring the CLI tool "import_computer" 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.
CLI tests have been added: r50116 The python import has to be added in essential/importcomputers.py: _run_import_via_python_api
Some cleanup: rr50117 + r50125
set_zone_verwaltung() and set_zone_edukativ() is called for computer types which aren't memberserver → will not work. 71 » def set_zone_edukativ(self): 72 » » if self.ctype == 'memberserver': 73 » » » self.zone = 'edukativ'
Fixed a typo: set_zone_verwaltng() → set_zone_verwaltung() (In reply to Florian Best from comment #3) > set_zone_verwaltung() and set_zone_edukativ() is called for computer types > which aren't memberserver → will not work. > > 71 » def set_zone_edukativ(self): > 72 » » if self.ctype == 'memberserver': > 73 » » » self.zone = 'edukativ' I think, this is ok. The ucs-school-python-lib currently does not support the import of memberserver. Therefore the memberserver tests are disabled within the test script. The zone attribute is currently only supported for memberservers → I think it's ok to leave it in its current state; if the behaviour of set_zone_edukativ() or set_zone_verwaltung() will change in future, the test will show if it's ok :-)
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".