From fd72577188ea55ffb40774e64f13225d2f5b294f Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 24 Aug 2015 11:42:26 -0400 Subject: [PATCH] tests: fixed rbd cli cram integration tests Fixes: #12764 Backport: infernalis Signed-off-by: Jason Dillaman --- .../cli-integration/rbd/formatted-output.t | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/test/cli-integration/rbd/formatted-output.t b/src/test/cli-integration/rbd/formatted-output.t index 0308903909115..4eacba86781f1 100644 --- a/src/test/cli-integration/rbd/formatted-output.t +++ b/src/test/cli-integration/rbd/formatted-output.t @@ -379,12 +379,14 @@ whenever it is run. grep -v to ignore it, but still work on other distros. quux bar baz + quuy $ rbd list --format json | python -mjson.tool | sed 's/,$/, /' [ "foo", "quux", "bar", - "baz" + "baz", + "quuy" ] $ rbd list --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp' @@ -392,6 +394,7 @@ whenever it is run. grep -v to ignore it, but still work on other distros. quux bar baz + quuy $ rbd list -l NAME SIZE PARENT FMT PROT LOCK @@ -402,6 +405,7 @@ whenever it is run. grep -v to ignore it, but still work on other distros. bar@snap 512M 2 yes bar@snap2 1024M 2 baz 2048M 2 shr + quuy 2048M 2 $ rbd list -l --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -446,6 +450,11 @@ whenever it is run. grep -v to ignore it, but still work on other distros. "image": "baz", "lock_type": "shared", "size": 2147483648 + }, + { + "format": 2, + "image": "quuy", + "size": 2147483648 } ] $ rbd list -l --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp' @@ -493,6 +502,11 @@ whenever it is run. grep -v to ignore it, but still work on other distros. 2 shared + + quuy + 2147483648 + 2 + $ rbd list rbd_other child @@ -681,13 +695,13 @@ whenever it is run. grep -v to ignore it, but still work on other distros. 536870912 - $ rbd disk-usage rbd_other + $ rbd disk-usage --pool rbd_other warning: fast-diff map is not enabled for child. operation may be slow. NAME PROVISIONED USED child@snap 512M 0 child 512M 4096k 512M 4096k - $ rbd disk-usage rbd_other --format json | python -mjson.tool | sed 's/,$/, /' + $ rbd disk-usage --pool rbd_other --format json | python -mjson.tool | sed 's/,$/, /' warning: fast-diff map is not enabled for child. operation may be slow. { "images": [ @@ -706,7 +720,7 @@ whenever it is run. grep -v to ignore it, but still work on other distros. "total_provisioned_size": 536870912, "total_used_size": 4194304 } - $ rbd disk-usage rbd_other --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp' + $ rbd disk-usage --pool rbd_other --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp' warning: fast-diff map is not enabled for child. operation may be slow. -- 2.39.5