Univention Bugzilla – Bug 36784
Test rename_class script
Last modified: 2023-03-25 06:47:25 CET
/usr/share/ucs-school-import/scripts contains a script rename_class. This has to be tested via ucs-test. Please have a look in the UCS@school manual for the syntax of the file. Besides the obvious checks the test should also include: - the renamed share object should be still accessable - the share object should use the same uidNumber/gidNumber settings - the share directory in file system should not be removed/moved to backup directory; instead the directory has to be renamed while preserving all file/directory permissions and ACLs - the renamed group object should use the same gidNumber - the renamed group should still include the same users as before - ...list is not complete...
A new script is created with the name: "102_rename_class" to test "rename_class" function, including: - Check ldap objects for: - Objects (group & share) exists or not. - Objects have the correct attributes (gidNumber, memberUid, univentionShareGid, univentionShareUid) - Check directory tree permissions before and after renaming the class. - Check renaming a class which does not exist (error detection). - Check renaming a class to another name which already exists (error detection).
changelog entry added and package built.
On SambaVersion=s4-only-master test script was failing: http://jenkins.knut.univention.de:8080/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/22/SambaVersion=s4-only-master/testReport/90_ucsschool/102_rename_class/test/ http://jenkins.knut.univention.de:8080/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/21/SambaVersion=s4-only-master/testReport/90_ucsschool/102_rename_class/test/ http://jenkins.knut.univention.de:8080/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/19/SambaVersion=s4-only-master/testReport/90_ucsschool/102_rename_class/test/ Test meta section is modified so the script run on single server master or multi server slave only.
Because ucs-school-import package is only installed on the master this script is restricted to run on a single server.
(In reply to Ammar Najjar from comment #4) > Because ucs-school-import package is only installed on the master this > script is restricted to run on a single server. Hm, it is currently disabled due to r58770: -## tags: [apptest, ucsschool] +## tags: [SKIP-UCSSCHOOL,apptest, ucsschool] @Sönke, I guess it should be re-enabled?
ucs-test-ucsschool (3.0.16-32): r73148 | Bug #36784: reenabled test script 102_rename_class Manual test run on single server was successfull. Package: ucs-test-ucsschool Version: 3.0.16-32.306.201610131527
OK: code OK: manual test on single server S4 WAITING: for jenkins results
Fails in all jenkins tests with MissingMailDomain: Could not retrieve mail domain from configuration nor from UCRV mail/hosteddomains. @@ -16,7 +16,10 @@ import univention.testing.ucr as ucr_test import univention.testing.ucsschool as utu import univention.testing.utils as utils +from univention.config_registry import handler_set @@ -164,6 +164,7 @@ def main(): with ucr_test.UCSTestConfigRegistry() as ucr: + handler_set(['mail/hosteddomains={}'.format(ucr['domainname'])])
(In reply to Daniel Tröder from comment #7) > WAITING: for jenkins results After fixing the workaround of bug 42503 the test script ran without problems.
(In reply to Sönke Schwardt-Krummrich from comment #9) > (In reply to Daniel Tröder from comment #7) > > WAITING: for jenkins results > > After fixing the workaround of bug 42503 the test script ran without > problems. ACK: tests are stable