],
"fsal": {
"name": "CEPH",
- "user_id": "test1",
+ "user_id": "nfs.test.1",
"fs_name": self.fs_name,
"sec_label_xattr": ''
},
'''
output = self._cmd('auth', 'ls')
if check_in:
- self.assertIn(f'client.{self.cluster_id}{export_id}', output)
+ self.assertIn(f'client.nfs.{self.cluster_id}.{export_id}', output)
else:
- self.assertNotIn(f'client-{self.cluster_id}', output)
+ self.assertNotIn(f'client.nfs.{self.cluster_id}.{export_id}', output)
def _test_idempotency(self, cmd_func, cmd_args):
'''
self.sample_export['export_id'] = 2
self.sample_export['pseudo'] = self.pseudo_path + '1'
self.sample_export['access_type'] = 'RO'
- self.sample_export['fsal']['user_id'] = self.cluster_id + '2'
+ self.sample_export['fsal']['user_id'] = f'nfs.{self.cluster_id}.2'
self.assertDictEqual(self.sample_export, nfs_output[1])
# Export-3 for subvolume with r only
self.sample_export['export_id'] = 3
self.sample_export['path'] = sub_vol_path
self.sample_export['pseudo'] = self.pseudo_path + '2'
- self.sample_export['fsal']['user_id'] = self.cluster_id + '3'
+ self.sample_export['fsal']['user_id'] = f'nfs.{self.cluster_id}.3'
self.assertDictEqual(self.sample_export, nfs_output[2])
# Export-4 for subvolume
self.sample_export['export_id'] = 4
self.sample_export['pseudo'] = self.pseudo_path + '3'
self.sample_export['access_type'] = 'RW'
- self.sample_export['fsal']['user_id'] = self.cluster_id + '4'
+ self.sample_export['fsal']['user_id'] = f'nfs.{self.cluster_id}.4'
self.assertDictEqual(self.sample_export, nfs_output[3])
def _get_export(self):
if not self._fetch_export(pseudo_path):
ex_id = self._gen_export_id()
- user_id = f"{cluster_id}{ex_id}"
+ user_id = f"nfs.{cluster_id}.{ex_id}"
user_out, key = self._create_user_key(user_id, path, fs_name, read_only)
if clients:
access_type = "none"