Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
- workunit:
clients:
client.0:
- - rgw/test_rgw_reshard.py
\ No newline at end of file
+ - rgw/run-reshard.sh
--- /dev/null
+#!/usr/bin/env bash
+set -ex
+
+#assume working ceph environment (radosgw-admin in path) and rgw on localhost:80
+
+mydir=`dirname $0`
+
+python3 -m venv $mydir
+source $mydir/bin/activate
+pip install pip --upgrade
+pip install boto3
+
+## run test
+$mydir/bin/python3 $mydir/test_rgw_reshard.py
+
+deactivate
+echo OK.
+
return False
-def install_reqs():
- out = exec_cmd('cat /etc/*release')
- result = {}
- for row in out.decode('utf8').split('\n'):
- if '=' in row:
- k, v = row.split('=')
- result[k.strip()] = v.strip('""')
- if result['NAME'] == 'Ubuntu':
- exec_cmd('sudo apt install -y python3-pip')
- else:
- exec_cmd('sudo yum install -y python3-pip')
- exec_cmd('sudo pip3 install boto3')
-
-
-install_reqs()
import boto3