salt/tests
Cédric Bosdonnat 0d32cb9228 libvirt events: fix domain defined/updated event details
Libvirt events algorigthm converting the libvirt enums into string has a
flaw that unit tests couldn't see. Libvirt python binding defines the
following constants:

VIR_DOMAIN_EVENT_CRASHED_PANICKED = 0
VIR_DOMAIN_EVENT_DEFINED = 0
VIR_DOMAIN_EVENT_CRASHED = 8

However VIR_DOMAIN_EVENT_CRASHED_PANICKED is the only value in this enum
and thus wasn't not considered a sub-enum element. So the value 0 in
enum 'VIR_DOMAIN_EVENT_' was wrongly mapped to "crashed panicked"
instead of "defined".

In order to safely rule this case out, check if we have an item that
just ends with the subprefix without the '_'.
2018-12-18 16:00:15 +01:00
..
integration Add tempfile import in file tests 2018-12-14 13:18:11 -05:00
kitchen
perf
pkg/rpm
support Merge branch '2017.7' into merge-2017.7 2018-12-04 15:53:04 +01:00
unit libvirt events: fix domain defined/updated event details 2018-12-18 16:00:15 +01:00
utils Move test case to the unit tests 2018-01-26 10:34:31 +01:00
__init__.py
buildpackage.py
committer_parser.py
conftest.py Merge branch '2017.7' into '2018.3' 2018-06-11 11:45:37 -04:00
consist.py
eventlisten.py
eventlisten.sh
filename_map.yml Merge branch '2018.3' into merge-2018.3 2018-11-26 11:43:51 -08:00
jenkins.py
minionswarm.py Merge branch '2017.7' into '2018.3' 2018-06-11 11:45:37 -04:00
modparser.py
packdump.py
runtests.py Merge branch '2018.3' into 'fluorine' 2018-10-29 12:36:28 -04:00
salt-tcpdump.py
saltsh.py
wheeltest.py
whitelist.txt Remove no-longer-existant test module from whitelist.txt 2018-11-21 08:35:18 -06:00
zypp_plugin.py