Project

General

Profile

Tâche #13954

Distribution EOLE - Scénario #13837: Publier la version 2.5.1 stable

Un test unitaire ERA signale un problème sur le modèle : minimal-amonecole.xml

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

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/06/2015
Due date:
% Done:

100%

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

Description

root@amon:~# py.test /usr/share/era/tests/test_open_save.py
   [ ... ]
/usr/share/era/noyau/domparsers.py:478: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dom_element = <DOM Element: extremite at 0x7f96eeef3710>, zones = {'pedago': <zone:pedago> 140286233640656}, inherited = False

    def instantiate_extremite_from_dom(dom_element, zones, inherited = False):
        """Construit une extrémité à partir d'un élément DOM
        L{era.tests.test_domparser.test_parse_extremite}
        """ 
        ip_list = []
        ip_nodes = dom_element.getElementsByTagName('ip')
        for ip_node in ip_nodes:
            ip_list.append(ip_node.getAttribute('address'))

        zone_name = dom_element.getAttribute('zone')
        if zone_name not in zones:
>           raise Exception, _("unknown zone %s")%zone_name
E           Exception: zone inconnue : bastion

/usr/share/era/noyau/domparsers.py:330: Exception

Associated revisions

Revision fe68c10e (diff)
Added by Emmanuel GARETTE over 5 years ago

Correction du modèle minimal-amonecole.xml, non fonctionnel depuis le nettoyage des modèles de base (ref #13863) (ref #13954 @1h)

History

#1 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Scrum Master over 5 years ago

  • Description updated (diff)
  • Assigned To set to Emmanuel GARETTE

#3 Updated by Emmanuel GARETTE over 5 years ago

  • Parent task changed from #13756 to #13837

#4 Updated by Emmanuel GARETTE over 5 years ago

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

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

  • Remaining (hours) changed from 0.25 to 0.0

OK avec les paquets : era 2.5.1-7

Also available in: Atom PDF