class TestVolumeClient(CephFSTestCase):
# One for looking at the global filesystem, one for being
- # the VolumeClient, one for mounting the created shares
- CLIENTS_REQUIRED = 3
+ # the VolumeClient, two for mounting the created shares
+ CLIENTS_REQUIRED = 4
- def _volume_client_python(self, client, script):
+ def _volume_client_python(self, client, script, vol_prefix=None, ns_prefix=None):
# Can't dedent this *and* the script we pass in, because they might have different
# levels of indentation to begin with, so leave this string zero-indented
+ if vol_prefix:
+ vol_prefix = "\"" + vol_prefix + "\""
+ if ns_prefix:
+ ns_prefix = "\"" + ns_prefix + "\""
return client.run_python("""
from ceph_volume_client import CephFSVolumeClient, VolumePath
import logging