Bug 39103 - Mail tests fail in S4 environments
Mail tests fail in S4 environments
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Mail
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-07 06:39 CEST by Stefan Gohmann
Modified: 2023-03-25 06:50 CET (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
mail_issues.patch (776 bytes, patch)
2015-08-07 06:39 CEST, Stefan Gohmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2015-08-07 06:39:48 CEST
Created attachment 7086 [details]
mail_issues.patch

The mail test cases 40_mail/* fail in S4 environment. The test cases have to wait for the DRS replication otherwise the users are not available via Kerberos.

The attached patch should fix it for 06imap_login.
Comment 1 Daniel Tröder univentionstaff 2015-08-07 14:34:00 CEST
Commit 62799 adds waiting for DRS replication upon creation, modification or renaming of users and groups.
Comment 2 Stefan Gohmann univentionstaff 2015-08-08 08:38:13 CEST
Much better, but;

root@master090:~# dpkg -l univention-samba4
[...]
un  univention-samba4 <keine>  (keine Beschreibung vorhanden)
root@master090:~# python
Python 2.7.3 (default, Jul  2 2014, 15:00:03) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import univention.testing.utils
>>> univention.testing.utils.package_installed('univention-samba4')
univention-samba4
True
>>> 

So, I think we should adjust package_installed as well.
Comment 3 Stefan Gohmann univentionstaff 2015-08-08 10:27:39 CEST
(In reply to Stefan Gohmann from comment #2)
> Much better, but;
> 
> root@master090:~# dpkg -l univention-samba4
> [...]
> un  univention-samba4 <keine>  (keine Beschreibung vorhanden)
> root@master090:~# python
> Python 2.7.3 (default, Jul  2 2014, 15:00:03) 
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import univention.testing.utils
> >>> univention.testing.utils.package_installed('univention-samba4')
> univention-samba4
> True
> >>> 
> 
> So, I think we should adjust package_installed as well.Bug #39114
Comment 4 Stefan Gohmann univentionstaff 2015-08-08 11:13:25 CEST
(In reply to Daniel Tröder from comment #1)
> Commit 62799 adds waiting for DRS replication upon creation, modification or
> renaming of users and groups.

* In some tests the s4 connector is stopped thus the drs replication
  won't finish. I've added a check_fro_drs_replication parameter to
  the udm calls and it is set by default to True in create_user and
  create_group (Bug #39103)

→ r62822 + r62823 + r62823
Comment 5 Stefan Gohmann univentionstaff 2016-10-12 07:48:25 CEST
For this bug is no separate QA needed.