From 779e49054a9db999f9dbb1bba7c684f9f53e21aa Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Mon, 23 Jan 2017 15:24:59 -0500 Subject: [PATCH] tests: Alter test_driver HBA name/data to be closer to reality Alter "test-scsi-host-vport" to be "scsi_host1" to match the real environment. This is the vport capable HBA - IOW the NPIV device. Add more fields to scsi_host1 as well. Alter the XML being used by the objecttest to create a vHBA in order to match the scsi_host1 parent name and to use validateable wwnn/wwpn. This will allow for realistic testing. --- src/test/test_driver.c | 9 +++++++-- tests/objecteventtest.c | 6 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 2f687e0e13..1877e5482a 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -487,15 +487,20 @@ static const char *defaultConnXML = " " "" "" -" test-scsi-host-vport" +" scsi_host1" " computer" " " " 1" +" 0" " " " 2000000012341234" " 1000000012341234" +" 2000000043214321" +" " +" " +" 127" +" 0" " " -" " " " "" ""; diff --git a/tests/objecteventtest.c b/tests/objecteventtest.c index d25a9e2c59..5df6ff91e7 100644 --- a/tests/objecteventtest.c +++ b/tests/objecteventtest.c @@ -63,11 +63,11 @@ static const char storagePoolDef[] = static const char nodeDeviceDef[] = "\n" -" test-scsi-host-vport\n" +" scsi_host1\n" " \n" " \n" -" 1111222233334444\n" -" 5555666677778888\n" +" 1000000023452345\n" +" 2000000023452345\n" " \n" " \n" "\n";