Bug 43856 - Test case 60_umc/33_umc_users_user_unset_userexpiry fails in UCS 4.2
Test case 60_umc/33_umc_users_user_unset_userexpiry fails in UCS 4.2
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: UMC
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Florian Best
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-15 06:17 CET by Stefan Gohmann
Modified: 2017-04-04 18:29 CEST (History)
1 user (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

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2017-03-15 06:17:09 CET
Please fix the test or fix the product or in case it is not so important disable the test case.

http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestJoin/75/SambaVersion=s3,Systemrolle=master/testReport/


*** BEGIN *** ['/usr/bin/python', '33_umc_users_user_unset_userexpiry'] ***
*** 60_umc/33_umc_users_user_unset_userexpiry *** Test unsetting userexpiry attribute via UMC ***
*** START TIME: 2017-03-14 16:01:17 ***

Creating a user 'umc_test_user_gp7rdw' without posix
Creating users/user object with /usr/sbin/udm-test users/user create --position cn=users,dc=autotest090,dc=local --policy-reference cn=default-umc-all,cn=UMC,cn=policies,dc=autotest090,dc=local --option posix --option samba --option kerberos --set username=umc_test_user_gp7rdw --set firstname=bsxkgdjeei --set lastname=o5kmqpay0g --set password=univention

*** UMC request: "POST auth" (None)
UMC request payload: 
{'options': {'password': 'univention', 'username': 'umc_test_user_gp7rdw'}}
*** UMC response: 
{u'message': None,
 u'options': None,
 u'result': {u'username': u'umc_test_user_gp7rdw'},
 u'status': 200}
***


*** UMC request: "POST command/udm/put" (users/user)
UMC request payload: 
{'flavor': 'users/user',
 'options': [{'object': {'$dn$': 'uid=umc_test_user_gp7rdw,cn=users,dc=autotest090,dc=local',
                         'userexpiry': '2015-02-02'}}]}
*** UMC response: 
{u'message': None,
 u'result': [{u'$dn$': u'uid=umc_test_user_gp7rdw,cn=users,dc=autotest090,dc=local',
              u'details': u'Zugriff verweigert.',
              u'success': False}],
 u'status': 200}
***

### FAIL ###
Request 'udm/put' to modify an object with options '[{'object': {'userexpiry': '2015-02-02', '$dn$': 'uid=umc_test_user_gp7rdw,cn=users,dc=autotest090,dc=local'}}]' failed, no success = True in response, hostname None, response '[{u'$dn$': u'uid=umc_test_user_gp7rdw,cn=users,dc=autotest090,dc=local', u'details': u'Zugriff verweigert.', u'success': False}]'
###      ###
Cleanup after exception: <type 'exceptions.SystemExit'> 1
Performing UCSTestUDM cleanup...
UCSTestUDM cleanup done
*** END TIME: 2017-03-14 16:01:21 ***
*** TEST DURATION (H:MM:SS.ms): 0:00:03.818501 ***
*** END *** 1 ***
Comment 1 Florian Best univentionstaff 2017-03-16 13:57:37 CET
ucs-test (7.0.17-2):
r77817 | Bug #43856: fix wrong credentials used in 33_umc_users_user_unset_userexpiry
Comment 2 Florian Best univentionstaff 2017-03-17 10:56:06 CET
OK: it doesn't fail anymore in jenkins.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:46 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".