mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
tests: Add createVHBAByNodeDevice-no-parent to fchosttest
Add a test that allows not providing a parent in the input XML, but still being able to create finding a VPORT capable NPIV HBA.
This commit is contained in:
parent
7ad479d0bd
commit
5319c49ce9
@ -44,6 +44,15 @@ static const char test7_xml[] =
|
|||||||
" </capability>"
|
" </capability>"
|
||||||
"</device>";
|
"</device>";
|
||||||
|
|
||||||
|
/* virNodeDeviceCreateXML without "<parent>" to find the vport capable HBA */
|
||||||
|
static const char test8_xml[] =
|
||||||
|
"<device>"
|
||||||
|
" <capability type='scsi_host'>"
|
||||||
|
" <capability type='fc_host'>"
|
||||||
|
" </capability>"
|
||||||
|
" </capability>"
|
||||||
|
"</device>";
|
||||||
|
|
||||||
/* Test virIsVHBACapable */
|
/* Test virIsVHBACapable */
|
||||||
static int
|
static int
|
||||||
test1(const void *data ATTRIBUTE_UNUSED)
|
test1(const void *data ATTRIBUTE_UNUSED)
|
||||||
@ -270,6 +279,9 @@ mymain(void)
|
|||||||
if (virTestRun("manageVHBAByNodeDevice-by-parent", manageVHBAByNodeDevice,
|
if (virTestRun("manageVHBAByNodeDevice-by-parent", manageVHBAByNodeDevice,
|
||||||
test7_xml) < 0)
|
test7_xml) < 0)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
if (virTestRun("manageVHBAByNodeDevice-no-parent", manageVHBAByNodeDevice,
|
||||||
|
test8_xml) < 0)
|
||||||
|
ret = -1;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_FREE(fchost_prefix);
|
VIR_FREE(fchost_prefix);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user