]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/test [tentacle]: add missing ceph and call_ceph shell functions 67923/head
authorOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 20 Mar 2026 17:36:16 +0000 (17:36 +0000)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 20 Mar 2026 17:37:50 +0000 (17:37 +0000)
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>
src/test/rgw/test-rgw-common.sh

index 4dc9438303fd7329fc63ff747f1d30ee1ec0e094..523ac89d0f6d94ac5f9e794d2ef1c72f2a0b959e 100644 (file)
@@ -92,6 +92,11 @@ function rgw {
   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
 
@@ -173,6 +178,13 @@ function call_rgw_rados {
   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