Example #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)
Example #2
0
 def test_create_lun_with_muitl_property(self):
     pool = UnityPool(_id='pool_1', cli=t_rest())
     lun = pool.create_lun("LunName", 100,
                           description="Hello World", is_thin=True,
                           is_repl_dst=True,
                           tiering_policy=TieringPolicyEnum.AUTOTIER_HIGH)
     assert_that(lun, instance_of(UnityLun))
Example #3
0
 def test_create_lun_with_muitl_property(self):
     pool = UnityPool(_id='pool_1', cli=t_rest())
     lun = pool.create_lun("LunName", 100,
                           description="Hello World", is_thin=True,
                           is_repl_dst=True,
                           tiering_policy=TieringPolicyEnum.AUTOTIER_HIGH)
     assert_that(lun, instance_of(UnityLun))
Example #4
0
 def test_create_lun_with_snap_schedule(self):
     pool = UnityPool(_id='pool_1', cli=t_rest())
     schedule = UnitySnapSchedule(_id='snapSch_1', cli=t_rest())
     lun = pool.create_lun(
         lun_name='lun-with-snap-schedule',
         snap_schedule=schedule)
     assert_that(lun.get_id(), equal_to('sv_16455'))
Example #5
0
 def test_create_with_snap_schedule(self):
     cli = t_rest()
     schedule = UnitySnapSchedule(_id='snapSch_1', cli=cli)
     pool = UnityPool('pool_1', cli=cli)
     lun = pool.create_lun('lun-with-snap-schedule', snap_schedule=schedule)
     assert_that(lun.name, equal_to('lun-with-snap-schedule'))
     assert_that(lun.snap_schedule.get_id(), equal_to('snapSch_1'))
Example #6
0
 def test_create_with_dedup_enabled_compression_enabled(self):
     cli = t_rest(version='5.0.0')
     pool = UnityPool('pool_1', cli=cli)
     lun = pool.create_lun('lun_1',
                           is_compression=True,
                           is_advanced_dedup_enabled=True)
     assert_that(lun.name, equal_to('lun_1'))
     assert_that(lun.is_data_reduction_enabled, equal_to(True))
     assert_that(lun.is_advanced_dedup_enabled, equal_to(True))
Example #7
0
 def test_create_with_io_limit(self):
     cli = t_rest()
     policy = UnityIoLimitPolicy('qp_4', cli=cli)
     pool = UnityPool('pool_1', cli=cli)
     lun = pool.create_lun('Himalia', io_limit_policy=policy)
     assert_that(lun.name, equal_to('Himalia'))
     assert_that(lun.io_limit_policy.get_id(), equal_to('qp_4'))
     rule = lun.io_limit_rule
     assert_that(rule, instance_of(UnityIoLimitRuleSetting))
     assert_that(rule.max_kbps_density, equal_to(1100))
     assert_that(rule.name, equal_to('Density_1100_KBPS_rule'))
Example #8
0
 def test_create_lun_on_spb(self):
     pool = UnityPool(_id='pool_1', cli=t_rest())
     sp = UnityStorageProcessor(_id='spb', cli=t_rest())
     lun = pool.create_lun("LunName", 100, sp=sp)
     assert_that(lun, instance_of(UnityLun))
Example #9
0
 def test_create_lun(self):
     pool = UnityPool(_id='pool_1', cli=t_rest())
     lun = pool.create_lun("LunName", 100)
     assert_that(lun, instance_of(UnityLun))
Example #10
0
 def test_create_lun_on_spb(self):
     pool = UnityPool(_id='pool_1', cli=t_rest())
     sp = UnityStorageProcessor(_id='spb', cli=t_rest())
     lun = pool.create_lun("LunName", 100, sp=sp)
     assert_that(lun, instance_of(UnityLun))
Example #11
0
 def test_create_lun(self):
     pool = UnityPool(_id='pool_1', cli=t_rest())
     lun = pool.create_lun("LunName", 100)
     assert_that(lun, instance_of(UnityLun))
Example #12
0
 def test_create_lun_with_compression_enabled(self):
     pool = UnityPool(_id='pool_1', cli=t_rest(version='4.3'))
     lun = pool.create_lun("LunName", 100,
                           is_compression=True)
     assert_that(lun, instance_of(UnityLun))
Example #13
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)