]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
test: Add scsi vport nodedev to test:///default
authorCole Robinson <crobinso@redhat.com>
Fri, 1 Jul 2016 11:33:10 +0000 (07:33 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 18 Jul 2016 15:18:47 +0000 (11:18 -0400)
A nodedev device definition like this is required for testing
NodeDeviceCreateXML and NodeDeviceDestroy. So unless it's part
of the stock test:///default set there's no way to actually
invoke those functions for the default URI

src/test/test_driver.c

index f3febc88675c8b701efeb8133c641c8516e2ee37..672c1630ce00d76651b98ffeab603eb7c5a03389 100644 (file)
@@ -466,6 +466,18 @@ static const char *defaultConnXML =
 "    </firmware>"
 "  </capability>"
 "</device>"
+"<device>"
+"  <name>test-scsi-host-vport</name>"
+"  <parent>computer</parent>"
+"  <capability type='scsi_host'>"
+"    <host>1</host>"
+"    <capability type='fc_host'>"
+"      <wwnn>2000000012341234</wwnn>"
+"      <wwpn>1000000012341234</wwpn>"
+"    </capability>"
+"    <capability type='vport_ops'/>"
+"  </capability>"
+"</device>"
 "</node>";