Skip to content

Commit

Permalink
Merge pull request ceph#5649 from ceph/wip-12764
Browse files Browse the repository at this point in the history
tests: fixed rbd cli cram integration tests

Reviewed-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Aug 24, 2015
2 parents 0347122 + fd72577 commit 9f2aad8
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions src/test/cli-integration/rbd/formatted-output.t
Original file line number Diff line number Diff line change
Expand Up @@ -379,19 +379,22 @@ 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'
<images>
<name>foo</name>
<name>quux</name>
<name>bar</name>
<name>baz</name>
<name>quuy</name>
</images>
$ rbd list -l
NAME SIZE PARENT FMT PROT LOCK
Expand All @@ -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/,$/, /'
[
{
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -493,6 +502,11 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
<format>2</format>
<lock_type>shared</lock_type>
</image>
<image>
<image>quuy</image>
<size>2147483648</size>
<format>2</format>
</image>
</images>
$ rbd list rbd_other
child
Expand Down Expand Up @@ -681,13 +695,13 @@ whenever it is run. grep -v to ignore it, but still work on other distros.
<size>536870912</size>
</snapshot>
</snapshots>
$ 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
<TOTAL> 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": [
Expand All @@ -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.
<stats>
<images>
Expand Down

0 comments on commit 9f2aad8

Please sign in to comment.