Bug 36893 - Failed UCS 4.0-0 test case: 60_umc-system.30_umc-service-user-modules.test
Failed UCS 4.0-0 test case: 60_umc-system.30_umc-service-user-modules.test
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: UMC
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Dmitry Galkin
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-20 08:37 CET by Stefan Gohmann
Modified: 2023-03-25 06:53 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
ucs-test.log (3.05 MB, application/text)
2014-11-20 08:37 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2014-11-20 08:37:43 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/
Comment 1 Florian Best univentionstaff 2014-11-20 10:42:54 CET
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'}}
Comment 2 Dmitry Galkin univentionstaff 2014-11-21 16:42:41 CET
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...
Comment 3 Philipp Hahn univentionstaff 2014-11-21 17:26:07 CET
(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.
Comment 4 Dmitry Galkin univentionstaff 2014-11-24 14:38:10 CET
(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
Comment 5 Stefan Gohmann univentionstaff 2016-10-12 07:48:23 CEST
For this bug is no separate QA needed.