From 4cfb3aeff1bcdae049a23e5a8643af827880519c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 10 Nov 2020 16:10:35 -0500 Subject: cloner: more detailed error messages about supported network vols Signed-off-by: Cole Robinson --- tests/test_cli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/test_cli.py') diff --git a/tests/test_cli.py b/tests/test_cli.py index 51c7c7b4..5e69a135 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1336,7 +1336,8 @@ _CLONE_NVRAM = "--original-xml %s/clone-nvram-auto.xml" % _CLONEXMLDIR _CLONE_NVRAM_NEWPOOL = "--original-xml %s/clone-nvram-newpool.xml" % _CLONEXMLDIR _CLONE_NVRAM_MISSING = "--original-xml %s/clone-nvram-missing.xml" % _CLONEXMLDIR _CLONE_EMPTY = "--original-xml %s/clone-empty.xml" % _CLONEXMLDIR -_CLONE_NET = "--original-xml %s/clone-net.xml" % _CLONEXMLDIR +_CLONE_NET_RBD = "--original-xml %s/clone-net-rbd.xml" % _CLONEXMLDIR +_CLONE_NET_HTTP = "--original-xml %s/clone-net-http.xml" % _CLONEXMLDIR vclon = App("virt-clone") @@ -1373,7 +1374,9 @@ c.add_invalid("-o test --auto-clone", grep="shutoff") # VM is running c.add_invalid("--connect %(URI-TEST-FULL)s -o test-clone-simple -n newvm --file %(EXISTIMG1)s") # Should complain about overwriting existing file c.add_invalid("--connect %(URI-TEST-REMOTE)s -o test-clone-simple --auto-clone --file /dev/default-pool/testvol9.img --check all=off", grep="Clone onto existing storage volume") # hit a specific error message c.add_invalid("--connect %(URI-TEST-FULL)s -o test-clone-full --auto-clone", grep="not enough free space") # catch failure of clone path setting -c.add_invalid(_CLONE_NET + " --auto-clone", grep="'network' is not cloneable") +c.add_invalid(_CLONE_NET_HTTP + " --auto-clone", grep="'http' is not cloneable") +c.add_invalid(_CLONE_NET_RBD + " --auto-clone", grep="'rbd' requires managed storage") # connection doesn't have the referenced rbd volume +c.add_invalid(_CLONE_NET_RBD + " --connect %(URI-TEST-FULL)s --auto-clone", grep="Cloning rbd volumes is not yet supported") c = vclon.add_category("general", "-n clonetest") -- cgit v1.2.1