mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
virstoragetest: Drop testing of NBD backends via parsing real images
We now have specific tests for the backing store parser and previous tests cover the extraction of the backing store string so there's no need for these particular tests. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
97d7177a11
commit
aea559fa74
@ -651,25 +651,6 @@ mymain(void)
|
||||
TEST_CHAIN(absqcow2, VIR_STORAGE_FILE_QCOW2, (&qcow2), EXP_FAIL);
|
||||
|
||||
|
||||
/* Rewrite qcow2 to use an nbd: protocol as backend */
|
||||
virCommandFree(cmd);
|
||||
cmd = virCommandNewArgList(qemuimg, "rebase", "-u", "-f", "qcow2",
|
||||
"-F", "raw", "-b", "nbd:example.org:6000:exportname=blah",
|
||||
"qcow2", NULL);
|
||||
if (virCommandRun(cmd, NULL) < 0)
|
||||
ret = -1;
|
||||
qcow2.expBackingStoreRaw = "nbd:example.org:6000:exportname=blah";
|
||||
|
||||
/* Qcow2 file with backing protocol instead of file */
|
||||
testFileData nbd = {
|
||||
.path = "blah",
|
||||
.type = VIR_STORAGE_TYPE_NETWORK,
|
||||
.format = VIR_STORAGE_FILE_RAW,
|
||||
.protocol = VIR_STORAGE_NET_PROTOCOL_NBD,
|
||||
.hostname = "example.org",
|
||||
};
|
||||
TEST_CHAIN(absqcow2, VIR_STORAGE_FILE_QCOW2, (&qcow2, &nbd), EXP_PASS);
|
||||
|
||||
/* Rewrite qcow2 to use an nbd: protocol as backend */
|
||||
virCommandFree(cmd);
|
||||
cmd = virCommandNewArgList(qemuimg, "rebase", "-u", "-f", "qcow2",
|
||||
@ -689,18 +670,6 @@ mymain(void)
|
||||
};
|
||||
TEST_CHAIN(absqcow2, VIR_STORAGE_FILE_QCOW2, (&qcow2, &nbd2), EXP_PASS);
|
||||
|
||||
/* Rewrite qcow2 to use an nbd: protocol without path as backend */
|
||||
virCommandFree(cmd);
|
||||
cmd = virCommandNewArgList(qemuimg, "rebase", "-u", "-f", "qcow2",
|
||||
"-F", "raw", "-b", "nbd://example.org",
|
||||
"qcow2", NULL);
|
||||
if (virCommandRun(cmd, NULL) < 0)
|
||||
ret = -1;
|
||||
qcow2.expBackingStoreRaw = "nbd://example.org";
|
||||
|
||||
nbd2.path = NULL;
|
||||
TEST_CHAIN(absqcow2, VIR_STORAGE_FILE_QCOW2, (&qcow2, &nbd2), EXP_PASS);
|
||||
|
||||
/* qed file */
|
||||
testFileData qed = {
|
||||
.expBackingStoreRaw = absraw,
|
||||
|
Loading…
Reference in New Issue
Block a user