Univention Bugzilla – Bug 32554
ucs_registerUDMModule library function
Last modified: 2013-11-19 06:43:02 CET
A test case should be implemented for this. Maybe it's good to implement an ultra-simple UDM module in the test library for this, using the schema defined for Bug 32551. +++ This bug was initially created as a clone of Bug #32407 +++ A function ucs_registerUDMModule schould be implemented in univention-lib which * takes the name of an existing UDM module file * creates an univentionUDMModule object in UDM * saves the given file to the UDM property "univentionUDMModule" * sets the UDM property "univentionUDMModuleFilename" * sets some other attributes useful to track creator package and version number. * The creator package (.deb) and version number is detected automatically. * The cn schould reflect <basename of the file>_<version number>.
* ucs_registerLDAPExtension does not write UNIVENTION_APP_IDENTIFIER to LDAP. The environment variable needs to be exported. I updated the API documentation for this.
I would suggest adding a "|| die" to the test joinscript.
Created attachment 5497 [details] fix some of the tests
Created attachment 5505 [details] revised patches for the tests
ucs-test is now rebuilt with the patch from Comment 4.
Several checks for ucs_unregisterLDAPExtension have been implemented in 72_udm-extensions: - register extension via ucs_unregisterLDAPExtension from join script - register extension via ucs_unregisterLDAPExtension from postinst script - filename has been taken over and written to LDAP/disk - registered file is unmodified written to LDAP - registered file is unmodified written to disk - package name has been detected correctly and written to LDAP - package version has been detected correctly and written to LDAP - APP_ID has been taken over and written to LDAP - versionstart and versionend are correctly handled and written to LDAP - ucs_unregisterLDAPExtension fails if non-join-account is used - register multiple extensions at a time - extension may be updated via package with higher version number - extension may not be updated via package with lower version number - extension may be updated via other package - registration with invalid UCS versions should be impossible - registration of udm modules with xml, multiple icons and multiple translations should be possible
The ucs-test built failed: dh build dh_testdir dh_auto_configure dh_auto_build debian/rules override_dh_auto_test make[1]: Entering directory `/var/build/temp/tmp.9ygAeiZSOM/3.2-0-0/ucs-test/ucs-test-4.0.149' ucslint W:0007-2: debian/changelog: latest changelog entry does not contain bug or ticket number E:0008-6: tests/72_udm-extensions/es.po: invalid charset (CHARSET) defined E:0008-6: tests/72_udm-extensions/de.po: invalid charset (CHARSET) defined E:0008-6: tests/72_udm-extensions/it.po: invalid charset (CHARSET) defined
(In reply to Stefan Gohmann from comment #7) > E:0008-6: tests/72_udm-extensions/es.po: invalid charset (CHARSET) defined > E:0008-6: tests/72_udm-extensions/de.po: invalid charset (CHARSET) defined > E:0008-6: tests/72_udm-extensions/it.po: invalid charset (CHARSET) defined Fixed by Arvid.
Created attachment 5536 [details] patch for univention.testing.utils.RE_SUFFIX * Changelog missing. * The tests run fine but in the end there is a traceback due to ucs-test considering the .png and .xml files. The attached patch might fix this: ==================================================== Traceback (most recent call last): File "/usr/sbin/ucs-test", line 169, in <module> main() File "/usr/sbin/ucs-test", line 165, in main test_set.run_tests(options.filter, options.dry) File "/usr/sbin/ucs-test", line 109, in run_tests test_case = TestCase().load(fname) File "/usr/lib/pymodules/python2.6/univention/testing/data.py", line 507, in load raise ValueError('Missing hash-bang') ValueError: Missing hash-bang ====================================================
Thanks for the patch. Applied a variant of it to SVN and rebuild ucs-test.
Changelog?
> Changelog? Changelog entry has been comitted → FIXED
Ok.
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".