def test_create_success_all_params(self): offline_availability = CifsShareOfflineAvailabilityEnum.DOCUMENTS umask = '222' description = 'Test cifs share.' share = UnityCifsShare.create( t_rest(), 'cs61', 'fs_61', is_read_only=True, is_encryption_enabled=True, is_con_avail_enabled=True, is_abe_enabled=True, is_branch_cache_enabled=True, offline_availability=offline_availability, umask=umask, description=description) assert_that(share.name, equal_to('cs61')) assert_that(share.is_encryption_enabled, equal_to(True)) assert_that(share.is_continuous_availability_enabled, equal_to(True)) assert_that(share.is_abe_enabled, equal_to(True)) assert_that(share.is_branch_cache_enabled, equal_to(True)) assert_that(share.offline_availability, equal_to(offline_availability)) assert_that(share.umask, equal_to(umask)) assert_that(share.description, equal_to(description))
def f(): UnityCifsShare.create(t_rest(), 'cs2', 'fs_8')
def test_create_success(self): share = UnityCifsShare.create(t_rest(), 'cs1', 'fs_8') assert_that(share.name, equal_to('cs1'))
def f(): UnityCifsShare.create(t_rest(), 'cs1', 'fs_8', '/cs1')
def test_create_same_name_in_diff_fs(self): UnityCifsShare.create(t_rest(), 'cs1', 'fs_8') share = UnityCifsShare.create(t_rest(), 'cs1', 'fs_7') assert_that(share.name, equal_to('cs1')) assert_that(share.filesystem.name, equal_to('fs7'))