Project

General

Profile

Tâche #15407

Scénario #15069: Lenteur au redémarrage du service NTP

Corriger les tests unitaires Creole

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

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/09/2016
Due date:
% Done:

100%

Estimated time:
1.50 h
Spent time:
Remaining (hours):
0.0

Description

Suite à la suppression du service "ntp", les tests unitaires Creole qui vérifient l'ordre des services ne passent plus.


# py.test /usr/share/creole/tests/test_creoleclient.py
   [ ... ]
../usr/share/creole/tests/test_creoleclient.py .....F...FF

Attention, si la correction est rétro-portée, il faudra également faire suivre cette modification (2.4.2/2.5.0/2.5.1/2.5.2)

Associated revisions

Revision 7009114d (diff)
Added by Joël Cuissinat about 5 years ago

Adaptation test unitaire suite à suppression ntp

  • tests/test_creoleclient.py : remplacement du service ntp par nginx dans le test

Ref: #15407 @40m

Revision de112535 (diff)
Added by Joël Cuissinat about 5 years ago

Adaptation test unitaire suite à suppression ntp

  • tests/test_creoleclient.py : remplacement du service ntp par nginx dans le test

Ref: #15407 @5m

Cherry-picked from creole:7009114d08

Revision 05be3f4c (diff)
Added by Joël Cuissinat about 5 years ago

Utilisation de nginx au lieu de ntp dans le test des services

  • tests/test_creoleservice.py : remplacement du service

Ref: #13708
Ref: #15407 @20m

Cherry-picked from creole:23d10ccd2d13f

Revision 7d61d1d4 (diff)
Added by Joël Cuissinat about 5 years ago

Utilisation de nginx au lieu de ntp dans le test des services

  • tests/test_creoleservice.py : remplacement du service

Ref: #13708
Ref: #15407 @10m

Cherry-picked from creole:23d10ccd2d13f

History

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

  • Description updated (diff)

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

  • Status changed from Nouveau to En cours

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

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 1.5 to 0.5

Commit depuis branche : 2.4.2/15407-fix-test-ntp

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

OK pour 2.5.2 et 2.5.1 (backport).

Mais en 2.4.2, un autre test est impacté :

../usr/share/creole/tests/test_creoleservice.py F.
    def test_service_code():
        """ 
        test sur les codes retour de CreoleService
        """ 
        if isfile('/etc/init.d/ntp'):
>           assert system('CreoleService ntp stop') == 0
E           assert 256 == 0
E            +  where 256 = system('CreoleService ntp stop')

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

  • Remaining (hours) changed from 0.5 to 0.25

OK. Pour les backports, consulter #15376

#6 Updated by Scrum Master about 5 years ago

  • Status changed from En cours to Résolu

#7 Updated by Fabrice Barconnière about 5 years ago

  • Remaining (hours) changed from 0.25 to 0.0
  • OK en 2.5.0
  • OK en 2.5.1
  • OK en 2.5.2

#8 Updated by Fabrice Barconnière about 5 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF