]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Add new fchosttest tests for management of a vHBA
authorJohn Ferlan <jferlan@redhat.com>
Tue, 24 Jan 2017 15:49:23 +0000 (10:49 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sun, 19 Feb 2017 11:45:09 +0000 (06:45 -0500)
commit4b6ee784def360bb6e65b90514218394fbf5946e
tree8731c3f119a9ae23949a26fae765c509f8464284
parent03346def06ea92a311622fda32271c91832e5543
tests: Add new fchosttest tests for management of a vHBA

Add a test that will mimic creation and destruction of a vHBA
by using node device XML. The design will allow for testing the
multiple mechanisms.

The first test uses just <parent> in the node device XML. This is
somewhat similar to the existing objecteventtest, except that this
test will not provide input wwnn/wwpn's (similar to how the process
is described for the the libvirt wiki).

This requires mocking the virRandomGenerateWWN since parsing the
input XML (virNodeDevCapSCSIHostParseXML) requires either a provided
wwnn/wwpn in the XML or the ability to randomly generate the wwnn/wwpn.
tests/fchosttest.c
tests/virrandommock.c