Tâche #15407
Scénario #15069: Lenteur au redémarrage du service NTP
Corriger les tests unitaires Creole
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
Adaptation test unitaire suite à suppression ntp
- tests/test_creoleclient.py : remplacement du service ntp par nginx dans le test
Ref: #15407 @40m
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
Utilisation de nginx au lieu de ntp dans le test des services
- tests/test_creoleservice.py : remplacement du service
Cherry-picked from creole:23d10ccd2d13f
Utilisation de nginx au lieu de ntp dans le test des services
- tests/test_creoleservice.py : remplacement du service
Cherry-picked from creole:23d10ccd2d13f
History
#1 Updated by Joël Cuissinat almost 7 years ago
- Description updated (diff)
#2 Updated by Joël Cuissinat almost 7 years ago
- Status changed from Nouveau to En cours
#3 Updated by Joël Cuissinat almost 7 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 almost 7 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 almost 7 years ago
- Remaining (hours) changed from 0.5 to 0.25
OK. Pour les backports, consulter #15376
#6 Updated by Scrum Master almost 7 years ago
- Status changed from En cours to Résolu
#7 Updated by Fabrice Barconnière almost 7 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 almost 7 years ago
- Status changed from Résolu to Fermé