class CapsHelper(CephFSTestCase):
def run_mon_cap_tests(self, moncap, keyring):
- keyring_path = self.create_keyring_file(self.fs.admin_remote, keyring)
+ keyring_path = self.fs.admin_remote.mktemp(data=keyring)
fsls = self.run_cluster_cmd(f'fs ls --id {self.client_id} -k '
f'{keyring_path}')
self.assertEqual(data, contents1)
def conduct_neg_test_for_write_caps(self, filepaths, mounts):
- cmdargs = ['echo', 'some random data', Raw('|'), 'sudo', 'tee']
+ cmdargs = ['echo', 'some random data', Raw('|'), 'tee']
for mount in mounts:
for path in filepaths: