Example #1
0
 def f():
     UnityFileSystem.create(t_rest(),
                            'pool_1',
                            'nas_2',
                            'fs3',
                            3 * 1024**3,
                            proto=FSSupportedProtocolEnum.NFS)
Example #2
0
 def test_create_success(self):
     fs = UnityFileSystem.create(
         t_rest(),
         'pool_1',
         'nas_2',
         'fs3',
         3 * 1024**3,
         proto=FSSupportedProtocolEnum.CIFS,
         tiering_policy=TieringPolicyEnum.AUTOTIER_HIGH)
     assert_that(fs.get_id(), equal_to('fs_12'))
    def test_create_success_all_params(self):
        size = 3 * 1024 ** 3
        supplemented_size = (3 + 1.5) * 1024 ** 3
        desc = 'Test filesystem.'
        proto = FSSupportedProtocolEnum.NFS
        tiering_policy = TieringPolicyEnum.AUTOTIER_HIGH
        access_policy = AccessPolicyEnum.WINDOWS
        locking_policy = FSLockingPolicyEnum.MANDATORY

        fs = UnityFileSystem.create(
            t_rest(version='4.3.0'), 'pool_1', 'nas_2', 'fs13', size,
            proto=proto, is_thin=True, tiering_policy=tiering_policy,
            user_cap=True, is_compression=True, access_policy=access_policy,
            locking_policy=locking_policy,
            description=desc)

        assert_that(fs.get_id(), equal_to('fs_13'), )
        assert_that(fs.supported_protocols, equal_to(proto))
        assert_that(fs.size_total, equal_to(supplemented_size))
        assert_that(fs.tiering_policy, equal_to(tiering_policy))
        assert_that(fs.is_data_reduction_enabled, equal_to(True))
        assert_that(fs.access_policy, equal_to(access_policy))
        assert_that(fs.locking_policy, equal_to(locking_policy))
        assert_that(fs.description, equal_to(desc))
Example #4
0
 def f():
     UnityFileSystem.create(
         t_rest(), 'pool_1', 'nas_2', 'fs3', 3 * 1024 ** 3,
         proto=FSSupportedProtocolEnum.NFS)
Example #5
0
 def test_create_success(self):
     fs = UnityFileSystem.create(
         t_rest(), 'pool_1', 'nas_2', 'fs3', 3 * 1024 ** 3,
         proto=FSSupportedProtocolEnum.CIFS,
         tiering_policy=TieringPolicyEnum.AUTOTIER_HIGH)
     assert_that(fs.get_id(), equal_to('fs_12'))