Univention Bugzilla – Bug 36893
Failed UCS 4.0-0 test case: 60_umc-system.30_umc-service-user-modules.test
Last modified: 2023-03-25 06:53:19 CET
Created attachment 6440 [details] ucs-test.log The following UCS 4.0 test case failed in Jenkins: 60_umc-system.30_umc-service-user-modules.test Attached you find the ucs-test log file. Please check if it is a problem in the test case. If it is a test case problem, please fix it. If it is a problem with UCS 4.0, please file a bug against UCS 4 and disable this test case until the bug has been fixed in UCS 4.0 http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/Autotest%20MultiEnv/67/SambaVersion=s4,Systemrolle=master/
Bug #36894 Bug #36895 Bug #36901, ... are all failing with this traceback: Traceback (most recent call last): File "30_umc-service-user-modules", line 144, in <module> sys.exit(TestUMC.main()) File "30_umc-service-user-modules", line 112, in main 'policy-reference': test_policy_dn}) File "/usr/lib/pymodules/python2.7/univention/testing/udm.py", line 233, in modify_object raise UCSTestUDM_NoModification({'module': modulename, 'kwargs': kwargs, 'stdout': stdout, 'stderr': stderr}) univention.testing.udm.UCSTestUDM_NoModification: {'stdout': "WARNING: No attribute with name 'policy-reference' in this module, value not set.\nNo modification: cn=umc_test_group_igmsgi,cn=groups,dc=autotest091,dc=local\n", 'stderr': '', 'module': 'groups/group', 'kwargs': {'dn': 'cn=umc_test_group_igmsgi,cn=groups,dc=autotest091,dc=local', 'policy-reference': 'cn=umc_test_policy_legecd,dc=autotest091,dc=local'}}
r56062 : * 00_base/90change_user_pwd_via_udm, 60_umc-system/31_umc-service-user-authentication, 60_umc-system/30_umc-service-user-modules, 60_umc/04_policies, 60_umc/06_non-ucr-policies: when modifying a 'policy-reference' via udm - pass it with an underscore instead of dash (Bug #36893, #36894, #36895, #36900, #36901). Could not find significant changes between UDM or its wrapper in UCS 3.2 and UCS 4.0, while those tests are working fine in UCS 3.2.4 (http://jenkins.knut.univention.de:8080/job/UCS-3.2/job/UCS-3.2-4/job/Autotest%20MultiEnv/10/SambaVersion=s4,Systemrolle=master/testReport/). When modifying object's policy-reference via udm now passing a 'policy_reference'. The strange thing is that creating an object via udm using 'policy-reference' in kwargs still works fine...
(In reply to Dmitry Galkin from comment #2) > When > modifying object's policy-reference via udm now passing a > 'policy_reference'. The strange thing is that creating an object via udm > using 'policy-reference' in kwargs still works fine... It might be that with the update from Debian-Squeeze to Debian-Wheezy something in the getopt implementation or something changes between Python2.6 and Python2.7, which now no longer converts the '-' into a '_' and thus makes the previous problem now visible.
(In reply to Philipp Hahn from comment #3) > It might be that with the update from Debian-Squeeze to Debian-Wheezy > something in the getopt implementation or something changes between > Python2.6 and Python2.7, which now no longer converts the '-' into a '_' and > thus makes the previous problem now visible. One thing I've noticed today is that the problem does not appear in UCS 4.0_rc1, while with the UCS 4.0 up-to-date it happens, probably there is something else, since both are using python 2.7
For this bug is no separate QA needed.