Exemple #1
0
    def test_modify_snap_nfs_share_success(self):
        share = UnityCifsShare(cli=t_rest(), _id='SMBShare_72')

        offline_availability = CifsShareOfflineAvailabilityEnum.PROGRAMS
        umask = '202'
        description = 'Modified snap cifs share.'

        share.modify(is_read_only=False,
                     is_encryption_enabled=False,
                     is_con_avail_enabled=False,
                     is_abe_enabled=True,
                     is_branch_cache_enabled=True,
                     offline_availability=offline_availability,
                     umask=umask,
                     description=description)

        assert_that(share.is_encryption_enabled, equal_to(False))
        assert_that(share.is_continuous_availability_enabled, equal_to(False))
        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))
Exemple #2
0
 def test_modify_snap_cifs_share_no_param(self):
     share = UnityCifsShare(cli=t_rest(), _id='SMBShare_72')
     share.modify()