Bug 27653 - ucs-test Übernahme: 40_mail
ucs-test Übernahme: 40_mail
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Mail
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Ammar Najjar
:
: 16091 37601 (view as bug list)
Depends on: 23527
Blocks: 35276
  Show dependency treegraph
 
Reported: 2012-06-19 18:05 CEST by Philipp Hahn
Modified: 2023-03-25 06:54 CET (History)
3 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

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-06-19 18:05:10 CEST
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
Comment 1 Stefan Gohmann univentionstaff 2012-06-19 19:45:35 CEST
Die Kolab-Tests müssen nicht übernommen werden: scripts-45_kolab. Bzw. nur die Punkte, die vom Mailstack abgebildet werden.
Comment 2 Stefan Gohmann univentionstaff 2013-03-21 07:38:57 CET
*** Bug 16091 has been marked as a duplicate of this bug. ***
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2014-10-15 09:51:31 CEST
Please rewrite these tests in python and add them to SVN
branches/ucs-3.2/ucs-3.2-3/test/ucs-test
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2014-10-15 09:53:43 CEST
Please port only the scripts from 40_mail.

I will provide a draft of a python mail test library soon.
Comment 5 Ammar Najjar univentionstaff 2014-11-17 12:32:04 CET
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.
Comment 6 Dmitry Galkin univentionstaff 2015-01-19 13:01:32 CET
FYI, I've enabled ucs-test-mail for 3.2-4 and 4.0-0:

r57362:
  * Bug #27653: debian/control: enabled ucs-test-mail.
Comment 8 Stefan Gohmann univentionstaff 2015-02-10 07:35:58 CET
*** Bug 37601 has been marked as a duplicate of this bug. ***
Comment 9 Ammar Najjar univentionstaff 2015-02-12 08:44:01 CET
(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.
Comment 10 Stefan Gohmann univentionstaff 2016-10-12 07:48:43 CEST
For this bug is no separate QA needed.