mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
qa/cephtool: add blacklist json output check
...not very elegantly because this is bash, but at least check the expected value is somewhere present in the JSON output. Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
parent
8ef6f8600e
commit
38a319d515
@ -893,8 +893,13 @@ function test_mon_osd()
|
|||||||
# osd blacklist
|
# osd blacklist
|
||||||
#
|
#
|
||||||
bl=192.168.0.1:0/1000
|
bl=192.168.0.1:0/1000
|
||||||
|
# Escaped form which may appear in JSON output
|
||||||
|
bl_json=192.168.0.1:0\\\\/1000
|
||||||
ceph osd blacklist add $bl
|
ceph osd blacklist add $bl
|
||||||
ceph osd blacklist ls | grep $bl
|
ceph osd blacklist ls | grep $bl
|
||||||
|
ceph osd blacklist ls --format=json-pretty | grep $bl_json
|
||||||
|
ceph osd dump --format=json-pretty | grep $bl
|
||||||
|
ceph osd dump | grep "^blacklist $bl"
|
||||||
ceph osd blacklist rm $bl
|
ceph osd blacklist rm $bl
|
||||||
expect_false "ceph osd blacklist ls | grep $bl"
|
expect_false "ceph osd blacklist ls | grep $bl"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user