Project

General

Profile

Tâche #13708

Distribution EOLE - Scénario #13525: Finaliser la version 2.5.1 stable

Le test unitaire creoleservice/ntp plante dans l'environnement Jenkins

Added by Joël Cuissinat almost 8 years ago. Updated almost 8 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/21/2015
Due date:
% Done:

100%

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

Description

Machine aca.horus : creole-tests
                ***********************************************************
                ============================= test session starts ==============================
                platform linux2 -- Python 2.7.6 -- pytest-2.5.1
                collected 39 items
                tests/test_creoleclient.py ....
                .......
                tests/test_creolerun.py ......
                tests/test_creoleservice.py
                F
                .
                tests/test_dicos.py ..
                tests/test_eosfunc.py ...
                tests/test_genconfig.py ........
                tests/test_upgrade.py
                .......
                =================================== FAILURES ===================================
                ______________________________ test_service_code _______________________________
                def test_service_code():
                """ 
                test sur les codes retour de CreoleService
                """ 
                if isfile('/etc/init.d/ntp'):
                assert system('CreoleService ntp stop') == 0
                >           assert system('CreoleService ntp status') != 0
                E           assert 0 != 0
                E            +  where 0 = system('CreoleService ntp status')
                tests/test_creoleservice.py:12: AssertionError
                ------------------------------- Captured stdout --------------------------------
                Stop System V service ntp                                               [  OK  ]
                Service ntp is running
                ===================== 1 failed, 38 passed in 13.85 seconds =====================

Visiblement, c'est le script d'init qui est mal fait, nous proposons d'utiliser un autre service (nginx ?) pour ce test

Associated revisions

Revision 23d10ccd (diff)
Added by Joël Cuissinat almost 8 years ago

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

  • tests/test_creoleservice.py : remplacement du service

Ref: #13708 @1h

Revision 05be3f4c (diff)
Added by Joël Cuissinat over 7 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 over 7 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 almost 8 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Joël Cuissinat almost 8 years ago

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

#3 Updated by Joël Cuissinat almost 8 years ago

  • Assigned To set to Joël Cuissinat
  • Remaining (hours) changed from 0.5 to 2.0

#4 Updated by Scrum Master almost 8 years ago

  • Status changed from En cours to Résolu

#5 Updated by Joël Cuissinat almost 8 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 2.0 to 0.0

Ce test est désormais OK sur jenkins pour Scribe et Horus ;)

Also available in: Atom PDF