Exemple #1
0
 def f():
     cli = t_rest(version='5.0.0')
     pool = UnityPool('pool_1', cli=cli)
     pool.is_all_flash = False
     pool.create_lun('lun_3',
                     is_compression=True,
                     is_advanced_dedup_enabled=True)
 def test_is_advanced_dedup_supported(self, unity_version, unity_model,
                                      pool_id, is_all_flash, expected):
     with mock.patch.object(UnitySystem, 'model', create=True,
                            return_value=unity_model,
                            new_callable=mock.PropertyMock):
         cli = t_rest(unity_version)
         pool = UnityPool(_id=pool_id, cli=cli)
         pool.is_all_flash = is_all_flash
         assert_that(pool.is_advanced_dedup_supported(), equal_to(expected))
 def test_is_compression_supported(self, unity_version, pool_id,
                                   is_all_flash, expected):
     cli = t_rest(unity_version)
     pool = UnityPool(_id=pool_id, cli=cli)
     pool.is_all_flash = is_all_flash
     assert_that(pool.is_compression_supported(), equal_to(expected))
Exemple #4
0
 def f():
     cli = t_rest(version='5.0.0')
     pool = UnityPool('pool_1', cli=cli)
     pool.is_all_flash = False
     pool.create_lun('lun_3', is_thin=False, is_compression=True)