On a Friday in 2022, Peter Krempa wrote:
From: Rohit Kumar <rohit.kumar3(a)nutanix.com>
This patch adds unit tests for remote NVRAM.
Examples:
<nvram type='network'>
<source protocol='iscsi'
name='iqn.2013-07.com.example:iscsi-nopool/0'>
<host name='example.com' port='6000'/>
<auth username='myname'>
<secret type='iscsi' usage='mycluster_myname'/>
</auth>
</source>
</nvram>
and
<nvram type='network'>
<source protocol='nbd' name='bar'>
<host name='example.org' port='6000'/>
</source>
</nvram>
and
<nvram type='file'>
<source file='/var/lib/libvirt/nvram/guest_VARS.fd'/>
</nvram>
Signed-off-by: Prerna Saxena <prerna.saxena(a)nutanix.com>
Signed-off-by: Florian Schmidt <flosch(a)nutanix.com>
Signed-off-by: Rohit Kumar <rohit.kumar3(a)nutanix.com>
---
.../bios-nvram-file.x86_64-latest.args | 37 ++++++++++++++++
tests/qemuxml2argvdata/bios-nvram-file.xml | 23 ++++++++++
.../bios-nvram-network-iscsi.x86_64-4.1.0.err | 1 +
...ios-nvram-network-iscsi.x86_64-latest.args | 38 ++++++++++++++++
.../bios-nvram-network-iscsi.xml | 31 +++++++++++++
.../bios-nvram-network-nbd.x86_64-latest.args | 37 ++++++++++++++++
.../bios-nvram-network-nbd.xml | 28 ++++++++++++
tests/qemuxml2argvtest.c | 4 ++
.../bios-nvram-file.x86_64-latest.xml | 39 ++++++++++++++++
...bios-nvram-network-iscsi.x86_64-latest.xml | 44 +++++++++++++++++++
.../bios-nvram-network-nbd.x86_64-latest.xml | 41 +++++++++++++++++
tests/qemuxml2xmltest.c | 3 ++
12 files changed, 326 insertions(+)
create mode 100644 tests/qemuxml2argvdata/bios-nvram-file.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/bios-nvram-file.xml
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-iscsi.x86_64-4.1.0.err
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-iscsi.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-iscsi.xml
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-nbd.x86_64-latest.args
create mode 100644 tests/qemuxml2argvdata/bios-nvram-network-nbd.xml
create mode 100644 tests/qemuxml2xmloutdata/bios-nvram-file.x86_64-latest.xml
create mode 100644 tests/qemuxml2xmloutdata/bios-nvram-network-iscsi.x86_64-latest.xml
create mode 100644 tests/qemuxml2xmloutdata/bios-nvram-network-nbd.x86_64-latest.xml
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano