libvirt/tests
John Ferlan c5c96545c7 qemu: Use secret objects to pass iSCSI passwords
https://bugzilla.redhat.com/show_bug.cgi?id=1425757

The blockdev-add code provides a mechanism to sanely provide user
and password-secret arguments for iscsi without placing them on the
command line to be viewable by a 'ps -ef' type command or needing
to create separate -iscsi devices for each disk/volume found.

So modify the iSCSI command line building to check for the presence
of the capability in order properly setup and use the domain master
secret object to encrypt the password in a secret object and alter
the parameters for the command line to utilize.

Modify the xml2argvtest to exhibit the syntax for both disk and
hostdev configurations.
2017-11-24 11:47:26 -05:00
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
commanddata tests: fix typo 2017-11-20 13:22:48 +01:00
cputestdata cputest: Add data for Intel(R) Core(TM) i7-7700 CPU 2017-11-07 23:40:47 +01:00
domaincapsschemadata tests: Rename ppc64le caps to ppc64 2017-11-08 10:47:38 +01:00
domainconfdata
domainschemadata
domainsnapshotxml2xmlin storage: Store RBD image name as pool and image name 2017-11-07 14:58:04 +01:00
domainsnapshotxml2xmlout storage: Store RBD image name as pool and image name 2017-11-07 14:58:04 +01:00
fchostdata/fc_host
genericxml2xmlindata
genericxml2xmloutdata conf: fix formatting of udp chardev attributes 2017-09-26 13:36:51 +02:00
interfaceschemadata
libxlxml2domconfigdata libxlxml2domconfigtest: add test for vNUMA config 2017-11-12 19:39:57 -07:00
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevschemadata nodedev: add switchdev to NIC capabilities 2017-09-18 08:32:24 -04:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemuargv2xmldata conf: Add/Allow parsing the auth in the disk source 2017-10-19 15:26:49 -04:00
qemucapabilitiesdata qemu: Get capabilities to use iscsi password-secret argument 2017-11-24 11:47:26 -05:00
qemucaps2xmldata
qemuhelpdata
qemuhotplugtestcpus
qemuhotplugtestdevices qemuhotplugtest: Test user supplied alias 2017-10-27 14:43:21 +02:00
qemuhotplugtestdomains conf: Properly parse <backingStore/> 2017-11-13 13:13:29 +01:00
qemumemlockdata
qemumonitorjsondata
qemuxml2argvdata qemu: Use secret objects to pass iSCSI passwords 2017-11-24 11:47:26 -05:00
qemuxml2xmloutdata tests: changing network interface types when backend tag is defined. 2017-11-23 17:43:13 +01:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
sexpr2xmldata Terminate backing chains explicitly 2017-10-17 06:19:18 +02:00
storagepoolschemadata
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata
vboxsnapshotxmldata
vircaps2xmldata build: Fix make dist 2017-11-22 11:27:40 +01:00
vircgroupdata
virconfdata Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata
virnetdevtestdata/sys/class/net
virpcitestdata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata
xencapsdata
xlconfigdata xlconfigtest: add tests for vNUMA configuration 2017-11-12 19:39:24 -07:00
xmconfigdata
xml2sexprdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c virmacaddr: Track if MAC address is autogenerated 2017-10-04 17:10:12 +02:00
bhyveargv2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
bhyvexml2argvmock.c virmacaddr: Track if MAC address is autogenerated 2017-10-04 17:10:12 +02:00
bhyvexml2argvtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
bhyvexml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
check-file-access.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
commandhelper.c Fix commandhelper build on win32 2017-09-21 08:55:07 +01:00
commandtest.c tests: fix typo 2017-11-20 13:22:48 +01:00
cputest.c cputest: Add data for Intel(R) Core(TM) i7-7700 CPU 2017-11-07 23:40:47 +01:00
domaincapsmock.c
domaincapstest.c tests: Rename ppc64le caps to ppc64 2017-11-08 10:47:38 +01:00
domainconftest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
domainsnapshotxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
esxutilstest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
eventtest.c
fchosttest.c
fdstreamtest.c
file_access_whitelist.txt
genericxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
interfacexml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libvirtd-fail
libvirtd-pool
libxlxml2domconfigtest.c libxlxml2domconfigtest: add test for vNUMA config 2017-11-12 19:39:57 -07:00
lxcconf2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
lxcxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
Makefile.am tests: Remove pointless _CFLAGS variables 2017-11-18 10:45:10 +01:00
metadatatest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
networkxml2conftest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
networkxml2firewalltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
networkxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
networkxml2xmlupdatetest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
nodedevxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
nsslinktest.c
nssmock.c
nsstest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
nwfilterebiptablestest.c
nwfilterxml2firewalltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
nwfilterxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
objecteventtest.c storage: Add new events for *PoolBuild() and *PoolDelete(). 2017-09-20 11:52:56 +02:00
objectlocking.ml
oomtrace.pl perl: Don't hardcode interpreter path 2017-09-19 16:04:53 +02:00
openvzutilstest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
openvzutilstest.conf
pkix_asn1_tab.c
qemuagenttest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemuargv2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemublocktest.c tests: Add testing of storage backend JSON props formatter 2017-11-07 16:18:14 +01:00
qemucapabilitiestest.c tests: Add caps for QEMU 2.10.0 on ppc64 2017-11-08 10:47:40 +01:00
qemucaps2xmlmock.c
qemucaps2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemucapsprobe.c
qemucapsprobemock.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemucommandutiltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemucpumock.c
qemuhelptest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemuhotplugtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemumemlocktest.c
qemumonitorjsontest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemumonitortest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
qemumonitortestutils.c
qemumonitortestutils.h
qemuxml2argvmock.c
qemuxml2argvtest.c qemu: Use secret objects to pass iSCSI passwords 2017-11-24 11:47:26 -05:00
qemuxml2xmltest.c tests: qemuxml2xml: Run the 'disk-serial' test 2017-11-22 20:37:35 +01:00
scsihosttest.c
seclabeltest.c
secretxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
securityselinuxhelper.c
securityselinuxlabeltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
securityselinuxtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
sexpr2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
shunloadhelper.c
shunloadtest.c
sockettest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
ssh.c
storagebackendsheepdogtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
storagepoolxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
storagevolxml2argvtest.c storage: Convert virStoragePoolObj into virObjectLockable 2017-11-24 08:08:36 -05:00
storagevolxml2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
sysinfotest.c
test-lib.sh
test-wrap-argv.pl
testutils.c Only output initialized capabilities with VIR_TEST_DEBUG > 1 2017-11-18 10:45:10 +01:00
testutils.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
testutilshostcpus.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c
testutilsqemu.h
testutilsxen.c
testutilsxen.h
utiltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
vboxsnapshotxmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
viralloctest.c
viratomictest.c
virauthconfigtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virbitmaptest.c util: Reintroduce virBitmapSubtract 2017-11-18 10:45:10 +01:00
virbuftest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
vircaps2xmltest.c build: Fix make dist 2017-11-22 11:27:40 +01:00
vircapstest.c vircapstest: Avoid (im)possible strcmp call with NULL argument 2017-11-14 14:45:19 +01:00
vircgroupmock.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
vircgrouptest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virconftest.c virconf: properly set the end of content 2017-11-09 08:04:26 -07:00
vircryptotest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virdbusmock.c
virdbustest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virdeterministichashmock.c
virdrivermoduletest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virendiantest.c
virfilecachemock.c
virfilecachetest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virfiletest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virfilewrapper.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virfilewrapper.h
virfirewalltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virhashdata.h
virhashtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virhostcpumock.c
virhostcputest.c
virhostdevtest.c qemu: Remove private hostdev 2017-11-24 11:47:26 -05:00
viridentitytest.c
viriscsitest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virjsontest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virkeycodetest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virkeyfiletest.c
virkmodtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virlockspacetest.c
virlogtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virmacmaptest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virmock.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virmocklibxl.c libxlxml2domconfigtest: add test for vNUMA config 2017-11-12 19:39:57 -07:00
virnetdaemonmock.c
virnetdaemontest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virnetdevmock.c
virnetdevtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c
virnettlscontexttest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virnettlshelpers.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virnettlshelpers.h
virnettlssessiontest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virnumamock.c
virpcimock.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virpcitest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virpolkittest.c
virportallocatormock.c
virportallocatortest.c
virrandommock.c
virrotatingfiletest.c
virschematest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virscsitest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virstoragetest.c util: storage: Fix parsing of IPv6 portal address for iSCSI 2017-11-08 13:10:40 +01:00
virstorageutiltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virstringtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsystemdtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virt-aa-helper-test Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virt-admin-self-test
virtestmock.c
virtimetest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virtypedparamtest.c
viruritest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virusbmock.c tests: Fix build with clang 2017-10-05 09:09:50 +02:00
virusbtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
vmwarevertest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
vmx2xmltest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
xencapstest.c
xlconfigtest.c xlconfigtest: add tests for vNUMA configuration 2017-11-12 19:39:24 -07:00
xmconfigtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
xml2sexprtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
xml2vmxtest.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00