Univention Bugzilla – Bug 27653
ucs-test Übernahme: 40_mail
Last modified: 2023-03-25 06:54:48 CET
Folgende Tests müssen in ucs-test für UCS-3.0 geprüft und ggf. angepasst übernommen werden: <svn+ssh://billy.knut.univention.de/var/svn/dev/branches/ucs-3.0/internal/ucs-test> → <svn+ssh://billy.knut.univention.de/var/svn/dev/branches/ucs-3.0/ucs/test/ucs-test> debian/ucs-test-mail.install debian/ucs-test-kolab.install lib/mail.lib scripts-40_mail scripts-45_kolab
Die Kolab-Tests müssen nicht übernommen werden: scripts-45_kolab. Bzw. nur die Punkte, die vom Mailstack abgebildet werden.
*** Bug 16091 has been marked as a duplicate of this bug. ***
Please rewrite these tests in python and add them to SVN branches/ucs-3.2/ucs-3.2-3/test/ucs-test
Please port only the scripts from 40_mail. I will provide a draft of a python mail test library soon.
New scripts are created to replace the old bash scripts and do the same tasks, with the names: 00delivery00basic This script tests the capability of the mail system to deliver mails to recpients with special mail addresses and to local users, thereby also testing the basic function of the mail system. For every mail address one user is created and deleted at the end of this script. 00delivery01group This script creates three users and gives each user the same alternative eMail address. It then sends an eMail to the address and checks if all three user recieved it. 00delivery04root This script creates a user and then sends an eMail to root. It then set the user as reciever (alias [mail/alias/root]) for the eMail to root, then sends an eMail to root, and resets "mail/alias/root". Finally it checks that both eMail have arrived and deletes the user. 01spam00basic This script test the spam detection by creating a user, sending a normal eMail, sending a spam eMail and sending a spam eMail with the spam filter turned off. It then checks if the eMails are in the correct folder and are tagged as spam (or not). 02virus00basic This script tests the eMail virus detection by sending viruses to a newly created user both with spam detection on and off, and then checking that the viruses were filtered and that the user and root was warned. 03check-permission-etc-cyrus Checks permissions for /etc/cyrus.secret it should be -rw------ owner should be cyrus group should be root 04check_login checks if authentication with cyrus works fine. 05open_relay Tests from http://www.aupads.org/working.html to check for open relays. 06imap_login Checks for imap login. 07pop_login Checks for pop3 login. 08create_modify_remove_mailquota Checks for setting , modifying, removing mail quota for a specific mail address/user.
FYI, I've enabled ucs-test-mail for 3.2-4 and 4.0-0: r57362: * Bug #27653: debian/control: enabled ucs-test-mail.
See Bug #37601, the test case 40_mail.04check_login.test still fails: http://jenkins.knut.univention.de:8080/job/UCS-3.2/job/UCS-3.2-4/job/Autotest%20MultiEnv/73/SambaVersion=s4,Systemrolle=master/testReport/40_mail/04check_login/test/ http://jenkins.knut.univention.de:8080/job/UCS-3.2/job/UCS-3.2-4/job/Autotest%20MultiEnv/73/SambaVersion=s4,Systemrolle=slave/testReport/40_mail/04check_login/test/
*** Bug 37601 has been marked as a duplicate of this bug. ***
(In reply to Stefan Gohmann from comment #7) > See Bug #37601, the test case 40_mail.04check_login.test still fails: > > http://jenkins.knut.univention.de:8080/job/UCS-3.2/job/UCS-3.2-4/job/ > Autotest%20MultiEnv/73/SambaVersion=s4,Systemrolle=master/testReport/40_mail/ > 04check_login/test/ > > http://jenkins.knut.univention.de:8080/job/UCS-3.2/job/UCS-3.2-4/job/ > Autotest%20MultiEnv/73/SambaVersion=s4,Systemrolle=slave/testReport/40_mail/ > 04check_login/test/ "/usr/bin/cyradm" is asking for some terminal env variables. Test script pass these variables to the command mentioned via Popen object.
For this bug is no separate QA needed.