Project

General

Profile

Tâche #26610

Scénario #26447: Traitement express MEN (5-7)

Corriger les tests automatisés "etb1-sympa" >= 2.6.0

Added by Joël Cuissinat about 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/28/2019
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Ils sont en erreur sur toutes les versions où ils sont activés.
Exemple : http://jenkins.eole.lan/jenkins/job/2.6.1/job/test-etb1-sympa-001-2.6.1-amd64/

L'adresse IP de mail.fsf.org est en dur dans le test et a changé !

00:50:10.447             >           raise error
00:50:10.447             E           assert 'info@fsf.org...235.13] MX=10' == 'info@fsf.org\...188.13] MX=10'
00:50:10.447             E               info@fsf.org
00:50:10.447             E                 router = internet_route, transport = remote_smtp
00:50:10.447             E             -   host mail.fsf.org [208.118.235.13] MX=10
00:50:10.447             E             ?                        ^  - ^^^^
00:50:10.447             E             +   host mail.fsf.org [209.51.188.13] MX=10
00:50:10.447             E             ?   

Associated revisions

Revision 9e2b8b84 (diff)
Added by Joël Cuissinat about 2 years ago

Improve unittests

  • replace hardcoded IP addresses by DNS requests
  • fix some string formatting

Ref: #26610

Revision 07a8ac93 (diff)
Added by Joël Cuissinat about 2 years ago

test-exim-001.sh : hack pour le changement d'IP de mail.fsf.org

Ref: #26610

Revision 8d37c6a8 (diff)
Added by Joël Cuissinat about 2 years ago

etb1-sympa-001.yaml : augmentation timeout for EOLE 2.7

Ref: #26610

Revision 54a1062d (diff)
Added by Joël Cuissinat 12 months ago

test-etb1-sympa : non corrigé sur EOLE < 2.6.2

Ref: #26610

Revision f54ca20d (diff)
Added by Joël Cuissinat 12 months ago

logparser : lien direct vers l'erreur py.test

Ref: #26610

Revision 9a801f85 (diff)
Added by Joël Cuissinat 12 months ago

unittest : add new IPv6 entry

Ref: #26610

History

#1 Updated by Joël Cuissinat about 2 years ago

  • Description updated (diff)
  • Assigned To set to Joël Cuissinat

#2 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Joël Cuissinat about 2 years ago

Afin de corriger ce problème une bonne fois pour toute :

>>> from socket import gethostbyname
>>> print gethostbyname('mail.fsf.org')
209.51.188.13

#4 Updated by Joël Cuissinat about 2 years ago

  • Subject changed from Corriger les tests automatisés "etb1-sympa" to Corriger les tests automatisés "etb1-sympa" >= 2.6.0

#5 Updated by Joël Cuissinat about 2 years ago

OK et testé en 2.6.0 : https://dev-eole.ac-dijon.fr/jenkins/job/2.6.0/job/test-etb1-sympa-001-2.6.0-amd64/182/

Mais afin d'éviter d'avoir à publier un paquet eole-exim pour toutes les versions, je propose de faire juste le petit hack suivant dans eole-ci-tests :)

sed -i -e "s/208.118.235.13/209.51.188.13/g" /usr/share/eole-exim/tests/test_mail.py 

Paquet eole-exim 2.6.0-14 supprimé du dépôt (eole-2.6.0-proposed-updates).
Modification diffusée en 2.7.1

#6 Updated by Joël Cuissinat about 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

Also available in: Atom PDF