Add ceph() and call_ceph() helper functions to test-rgw-common.sh
that were missed during the backport of commit
415a16c0.
The test_multi.py ceph_admin() method calls test-rgw-call.sh with
'call_ceph' which requires these shell functions to exist.
Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
echo "$mrgw $name $port $ssl_port $rgw_flags $@"
}
+function ceph {
+ [ $# -lt 1 ] && echo "ceph() needs atleast 1 param" && exit 1
+ echo "$mrun $1 ceph"
+}
+
function init_first_zone {
[ $# -ne 7 ] && echo "init_first_zone() needs 7 params" && exit 1
x $(rgw_rados $cid) "$@"
}
+function call_ceph {
+ cid=$1
+ shift 1
+ echo $@
+ x $(ceph $cid) "$@"
+}
+
function get_mstart_parameters {
[ $# -ne 1 ] && echo "get_mstart_parameters() needs 1 param" && exit 1
# bash arrays start from zero