Revision c49defb8
Corrections suite aux changements apportés dans le modèles.
Corrections des tests.
Ajout d'une image pour la flèche affichant les détails : cas où severity = NULL dans la base de données.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@804 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/tests/functional/test_vigiboardrequest.py | ||
---|---|---|
84 | 84 |
'message': u'foo', |
85 | 85 |
} |
86 | 86 |
|
87 |
event1 = Event(hostname=u'monhost', |
|
87 |
event1 = Event(idevent=u'event1', hostname=u'monhost',
|
|
88 | 88 |
servicename=u'monservice', **event_template) |
89 |
event2 = Event(hostname=u'monhostuser', |
|
89 |
event2 = Event(idevent=u'event2', hostname=u'monhostuser',
|
|
90 | 90 |
servicename=u'monservice', **event_template) |
91 |
event3 = Event(hostname=u'monhost', |
|
91 |
event3 = Event(idevent=u'event3', hostname=u'monhost',
|
|
92 | 92 |
servicename=u'monserviceuser', **event_template) |
93 |
event4 = Event(hostname=u'monhostuser', |
|
93 |
event4 = Event(idevent=u'event4', hostname=u'monhostuser',
|
|
94 | 94 |
servicename=u'monserviceuser', **event_template) |
95 | 95 |
|
96 | 96 |
DBSession.add(event1) |
... | ... | |
126 | 126 |
'status': u'None', |
127 | 127 |
} |
128 | 128 |
self.aggregate1 = EventsAggregate( |
129 |
idaggregate=u'foo', |
|
129 | 130 |
idcause=event1.idevent, **aggregate_template) |
130 | 131 |
self.aggregate2 = EventsAggregate( |
132 |
idaggregate=u'bar', |
|
131 | 133 |
idcause=event4.idevent, **aggregate_template) |
132 | 134 |
|
133 | 135 |
self.aggregate1.events.append(event1) |
Also available in: Unified diff