Univention Bugzilla – Bug 38828
Adopt existing mail stack tests for dovecot
Last modified: 2016-10-05 20:20:01 CEST
The existing mail stack tests have to be updated for dovecot.
Renamed 001_delayed_mailbox_creation.py to 50_cyrus_delayed_mailbox_creation: Never add a test with .py or .sh, as this breaks Jenkins. r62392 | Bug #38828 test: Rename test
I've disabled the test case 40_mail/42_dovecot_rename_user, because they failed in a S4 master jenkins test: http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-3/job/Autotest%20MultiEnv/lastCompletedBuild/SambaVersion=s4,Systemrolle=master/testReport/40_mail/42_dovecot_rename_user/test/ *** BEGIN *** ['/usr/bin/python', '42_dovecot_rename_user'] *** *** 40_mail/42_dovecot_rename_user *** Dovecot, test username modrdn while keeping mail primary address *** *** START TIME: 2015-08-08 17:55:13 *** Creating users/user object with {'username': 'evtego1wso', 'set': {'mailHomeServer': 'master091.AutoTest091.local', 'mailPrimaryAddress': 'tobn1ugw6x@AutoTest091.local'}, 'firstname': 'xl7v0bkulu', 'lastname': 'sclfkp2t1y', 'position': 'cn=users,dc=AutoTest091,dc=local', 'password': 'univention'} Waiting for replication: CRITICAL: no change of listener transaction id for last 0 checks (nid=8279 lid=8271) OK: replication complete (nid=8279 lid=8279) Done: replication complete. WARNING: No path in service IPC$ - making it unavailable! NOTE: Service IPC$ is flagged unavailable. Waiting for DRS replication, filter: 'cn=evtego1wso' DRS replication took 0 seconds Creating users/user object with {'username': 'vhfi8oec9x', 'set': {'mailHomeServer': 'master091.AutoTest091.local', 'mailPrimaryAddress': 'epbx9f2ucn@AutoTest091.local'}, 'firstname': 'ock9sreg9s', 'lastname': 'j3xs9nf2hl', 'position': 'cn=users,dc=AutoTest091,dc=local', 'password': 'univention'} Waiting for replication: CRITICAL: no change of listener transaction id for last 0 checks (nid=8290 lid=8282) OK: replication complete (nid=8290 lid=8290) Done: replication complete. WARNING: No path in service IPC$ - making it unavailable! NOTE: Service IPC$ is flagged unavailable. Waiting for DRS replication, filter: 'cn=vhfi8oec9x' . DRS replication took 1 seconds Creating users/user object with {'username': 'l3hdjingtm', 'set': {'mailHomeServer': 'master091.AutoTest091.local', 'mailPrimaryAddress': 'q2ty6b3p7a@AutoTest091.local'}, 'firstname': 'ub3wan9y4o', 'lastname': 'u63g1viumg', 'position': 'cn=users,dc=AutoTest091,dc=local', 'password': 'univention'} Waiting for replication: CRITICAL: no change of listener transaction id for last 0 checks (nid=8301 lid=8293) OK: replication complete (nid=8301 lid=8301) Done: replication complete. WARNING: No path in service IPC$ - making it unavailable! NOTE: Service IPC$ is flagged unavailable. Waiting for DRS replication, filter: 'cn=l3hdjingtm' . DRS replication took 1 seconds Creating users/user object with {'username': 'k1ffbx5tyx', 'set': {'mailHomeServer': 'master091.AutoTest091.local', 'mailPrimaryAddress': 'mw2lvivpkz@AutoTest091.local'}, 'firstname': 'cvzy8zjcea', 'lastname': 'gb0gq9hwrt', 'position': 'cn=users,dc=AutoTest091,dc=local', 'password': 'univention'} Waiting for replication: CRITICAL: no change of listener transaction id for last 0 checks (nid=8312 lid=8304) OK: replication complete (nid=8315 lid=8315) Done: replication complete. WARNING: No path in service IPC$ - making it unavailable! NOTE: Service IPC$ is flagged unavailable. Waiting for DRS replication, filter: 'cn=k1ffbx5tyx' . . . . . . . DRS replication took 7 seconds Waiting for replication: OK: replication complete (nid=8321 lid=8321) Done: replication complete. *** Sending mail: recipients=['tobn1ugw6x@AutoTest091.local'] sender='tarpit@example.com' subject='Testmessage Sat Aug 8 17:55:32 2015' idstring='no id string' gtube=False server='master091.AutoTest091.local' port=25 tls=False username=None password=None HELO/EHLO='ucstest.25132.example.com' send: 'ehlo ucstest.25132.example.com\r\n' reply: '250-master091.AutoTest091.local\r\n' reply: '250-PIPELINING\r\n' reply: '250-SIZE 10240000\r\n' reply: '250-VRFY\r\n' reply: '250-ETRN\r\n' reply: '250-STARTTLS\r\n' reply: '250-ENHANCEDSTATUSCODES\r\n' reply: '250-8BITMIME\r\n' reply: '250 DSN\r\n' reply: retcode (250); Msg: master091.AutoTest091.local PIPELINING SIZE 10240000 VRFY ETRN STARTTLS ENHANCEDSTATUSCODES 8BITMIME DSN send: 'mail FROM:<tarpit@example.com> size=553\r\n' reply: '250 2.1.0 Ok\r\n' reply: retcode (250); Msg: 2.1.0 Ok send: 'rcpt TO:<tobn1ugw6x@AutoTest091.local>\r\n' reply: '250 2.1.5 Ok\r\n' reply: retcode (250); Msg: 2.1.5 Ok send: 'data\r\n' reply: '354 End data with <CR><LF>.<CR><LF>\r\n' reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF> data: (354, 'End data with <CR><LF>.<CR><LF>') send: 'Content-Type: multipart/mixed; boundary="===============5259948360288811009=="\r\nMIME-Version: 1.0\r\nFrom: tarpit@example.com\r\nTo: tobn1ugw6x@AutoTest091.local\r\nDate: Sat, 08 Aug 2015 17:55:32 +0000\r\nSubject: Testmessage Sat Aug 8 17:55:32 2015\r\nUCS-TEST: no id string\r\nMessage-Id: x65cdd8h7b\r\n\r\n--===============5259948360288811009==\r\nContent-Type: text/plain; charset="us-ascii"\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nHello,\r\n\r\nThis is a test mail. Please do not answer.\r\n(no id string)\r\n..\r\nRegards,\r\n..\r\n....ucs-test\r\n\r\n--===============5259948360288811009==--\r\n.\r\n' reply: '250 2.0.0 Ok: queued as 3DD94209D3\r\n' reply: retcode (250); Msg: 2.0.0 Ok: queued as 3DD94209D3 data: (250, '2.0.0 Ok: queued as 3DD94209D3') send: 'quit\r\n' reply: '221 2.0.0 Bye\r\n' reply: retcode (221); Msg: 2.0.0 Bye send: 'ehlo ucstest.25132.example.com\r\n' reply: '250-master091.AutoTest091.local\r\n' reply: '250-PIPELINING\r\n' reply: '250-SIZE 10240000\r\n' reply: '250-VRFY\r\n' reply: '250-ETRN\r\n' reply: '250-STARTTLS\r\n' reply: '250-ENHANCEDSTATUSCODES\r\n' reply: '250-8BITMIME\r\n' reply: '250 DSN\r\n' reply: retcode (250); Msg: master091.AutoTest091.local PIPELINING SIZE 10240000 VRFY ETRN STARTTLS ENHANCEDSTATUSCODES 8BITMIME DSN send: 'mail FROM:<tarpit@example.com> size=553\r\n' reply: '250 2.1.0 Ok\r\n' reply: retcode (250); Msg: 2.1.0 Ok send: 'rcpt TO:<epbx9f2ucn@AutoTest091.local>\r\n' reply: '250 2.1.5 Ok\r\n' reply: retcode (250); Msg: 2.1.5 Ok send: 'data\r\n' reply: '354 End data with <CR><LF>.<CR><LF>\r\n' reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF> data: *** Sending mail: recipients=['epbx9f2ucn@AutoTest091.local'] sender='tarpit@example.com' subject='Testmessage Sat Aug 8 17:55:32 2015' idstring='no id string' gtube=False server='master091.AutoTest091.local' port=25 tls=False username=None password=None HELO/EHLO='ucstest.25132.example.com' (354, 'End data with <CR><LF>.<CR><LF>') send: 'Content-Type: multipart/mixed; boundary="===============6334745816863154807=="\r\nMIME-Version: 1.0\r\nFrom: tarpit@example.com\r\nTo: epbx9f2ucn@AutoTest091.local\r\nDate: Sat, 08 Aug 2015 17:55:32 +0000\r\nSubject: Testmessage Sat Aug 8 17:55:32 2015\r\nUCS-TEST: no id string\r\nMessage-Id: obswiawnbk\r\n\r\n--===============6334745816863154807==\r\nContent-Type: text/plain; charset="us-ascii"\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nHello,\r\n\r\nThis is a test mail. Please do not answer.\r\n(no id string)\r\n..\r\nRegards,\r\n..\r\n....ucs-test\r\n\r\n--===============6334745816863154807==--\r\n.\r\n' reply: '250 2.0.0 Ok: queued as 42C5C20A96\r\n' reply: retcode (250); Msg: 2.0.0 Ok: queued as 42C5C20A96 data: (250, '2.0.0 Ok: queued as 42C5C20A96') send: 'quit\r\n' reply: '221 2.0.0 Bye\r\n' reply: retcode (221); Msg: 2.0.0 Bye *** Sending mail: recipients=['q2ty6b3p7a@AutoTest091.local'] sender='tarpit@example.com' subject='Testmessage Sat Aug 8 17:55:32 2015' idstring='no id string' gtube=False server='master091.AutoTest091.local' port=25 tls=False username=None password=None HELO/EHLO='ucstest.25132.example.com' send: 'ehlo ucstest.25132.example.com\r\n' reply: '250-master091.AutoTest091.local\r\n' reply: '250-PIPELINING\r\n' reply: '250-SIZE 10240000\r\n' reply: '250-VRFY\r\n' reply: '250-ETRN\r\n' reply: '250-STARTTLS\r\n' reply: '250-ENHANCEDSTATUSCODES\r\n' reply: '250-8BITMIME\r\n' reply: '250 DSN\r\n' reply: retcode (250); Msg: master091.AutoTest091.local PIPELINING SIZE 10240000 VRFY ETRN STARTTLS ENHANCEDSTATUSCODES 8BITMIME DSN send: 'mail FROM:<tarpit@example.com> size=553\r\n' reply: '250 2.1.0 Ok\r\n' reply: retcode (250); Msg: 2.1.0 Ok send: 'rcpt TO:<q2ty6b3p7a@AutoTest091.local>\r\n' reply: '250 2.1.5 Ok\r\n' reply: retcode (250); Msg: 2.1.5 Ok send: 'data\r\n' reply: '354 End data with <CR><LF>.<CR><LF>\r\n' reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF> data: (354, 'End data with <CR><LF>.<CR><LF>') send: 'Content-Type: multipart/mixed; boundary="===============3718051575060343660=="\r\nMIME-Version: 1.0\r\nFrom: tarpit@example.com\r\nTo: q2ty6b3p7a@AutoTest091.local\r\nDate: Sat, 08 Aug 2015 17:55:32 +0000\r\nSubject: Testmessage Sat Aug 8 17:55:32 2015\r\nUCS-TEST: no id string\r\nMessage-Id: uj5yxvy17r\r\n\r\n--===============3718051575060343660==\r\nContent-Type: text/plain; charset="us-ascii"\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nHello,\r\n\r\nThis is a test mail. Please do not answer.\r\n(no id string)\r\n..\r\nRegards,\r\n..\r\n....ucs-test\r\n\r\n--===============3718051575060343660==--\r\n.\r\n' reply: '250 2.0.0 Ok: queued as 4BA8820AA1\r\n' reply: retcode (250); Msg: 2.0.0 Ok: queued as 4BA8820AA1 data: (250, '2.0.0 Ok: queued as 4BA8820AA1') send: 'quit\r\n' reply: '221 2.0.0 Bye\r\n' reply: retcode (221); Msg: 2.0.0 Bye *** Sending mail: recipients=['mw2lvivpkz@AutoTest091.local'] sender='tarpit@example.com' subject='Testmessage Sat Aug 8 17:55:32 2015' idstring='no id string' gtube=False server='master091.AutoTest091.local' port=25 tls=False username=None password=None HELO/EHLO='ucstest.25132.example.com' send: 'ehlo ucstest.25132.example.com\r\n' reply: '250-master091.AutoTest091.local\r\n' reply: '250-PIPELINING\r\n' reply: '250-SIZE 10240000\r\n' reply: '250-VRFY\r\n' reply: '250-ETRN\r\n' reply: '250-STARTTLS\r\n' reply: '250-ENHANCEDSTATUSCODES\r\n' reply: '250-8BITMIME\r\n' reply: '250 DSN\r\n' reply: retcode (250); Msg: master091.AutoTest091.local PIPELINING SIZE 10240000 VRFY ETRN STARTTLS ENHANCEDSTATUSCODES 8BITMIME DSN send: 'mail FROM:<tarpit@example.com> size=553\r\n' reply: '250 2.1.0 Ok\r\n' reply: retcode (250); Msg: 2.1.0 Ok send: 'rcpt TO:<mw2lvivpkz@AutoTest091.local>\r\n' reply: '250 2.1.5 Ok\r\n' reply: retcode (250); Msg: 2.1.5 Ok send: 'data\r\n' reply: '354 End data with <CR><LF>.<CR><LF>\r\n' reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF> data: (354, 'End data with <CR><LF>.<CR><LF>') send: 'Content-Type: multipart/mixed; boundary="===============3149633256201493756=="\r\nMIME-Version: 1.0\r\nFrom: tarpit@example.com\r\nTo: mw2lvivpkz@AutoTest091.local\r\nDate: Sat, 08 Aug 2015 17:55:32 +0000\r\nSubject: Testmessage Sat Aug 8 17:55:32 2015\r\nUCS-TEST: no id string\r\nMessage-Id: mx4jw91dnb\r\n\r\n--===============3149633256201493756==\r\nContent-Type: text/plain; charset="us-ascii"\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nHello,\r\n\r\nThis is a test mail. Please do not answer.\r\n(no id string)\r\n..\r\nRegards,\r\n..\r\n....ucs-test\r\n\r\n--===============3149633256201493756==--\r\n.\r\n' reply: '250 2.0.0 Ok: queued as 6BDA220AB9\r\n' reply: retcode (250); Msg: 2.0.0 Ok: queued as 6BDA220AB9 data: (250, '2.0.0 Ok: queued as 6BDA220AB9') send: 'quit\r\n' reply: '221 2.0.0 Bye\r\n' reply: retcode (221); Msg: 2.0.0 Bye Found 1 messages matching msg id 'x65cdd8h7b' Found 1 messages matching msg id 'obswiawnbk' Found 1 messages matching msg id 'uj5yxvy17r' Found 1 messages matching msg id 'mx4jw91dnb' Found 4 of 4 mails Create mail/dovecot/mailbox/rename Create mail/dovecot/mailbox/delete File: /usr/sbin/univention-sa-learn Multifile: /etc/postfix/ldap.sharedfolderlocal Restarting univention-directory-listener daemon. ok: run: univention-directory-listener: (pid 25288) 0s, normally down done. Modifying users/user object with {'dn': 'uid=evtego1wso,cn=users,dc=AutoTest091,dc=local', 'set': {'username': 'evtego1wsocopy'}} modrdn detected: 'uid=evtego1wso,cn=users,dc=AutoTest091,dc=local' ==> 'uid=evtego1wsocopy,cn=users,dc=AutoTest091,dc=local' Waiting for replication: CRITICAL: no change of listener transaction id for last 0 checks (nid=8333 lid=8324) OK: replication complete (nid=8333 lid=8333) Done: replication complete. Waiting for replication: OK: replication complete (nid=8333 lid=8333) Done: replication complete. EXCEPTION in imap_search_mail: error('[AUTHENTICATIONFAILED] Authentication failed.',) ### FAIL ### Test 0: login to IMAP mailbox 'tobn1ugw6x@AutoTest091.local' is not possible ### ### Unsetting mail/dovecot/mailbox/delete Unsetting mail/dovecot/mailbox/rename File: /usr/sbin/univention-sa-learn Multifile: /etc/postfix/ldap.sharedfolderlocal Cleanup after exception: <type 'exceptions.SystemExit'> 1 Performing UCSTestUDM cleanup... UCSTestUDM cleanup done *** END TIME: 2015-08-08 17:55:45 *** *** TEST DURATION (H:MM:SS.ms): 0:00:32.658527 *** *** END *** 1 ***
See also bug #38768: Stefan mentioned there too that the test has been disabled.