def test_get(self): ndu = VNXNdu.get(t_cli(), '-VNXSnapshots') assert_that(ndu.name, equal_to('-VNXSnapshots')) assert_that(ndu.revision, equal_to('-')) assert_that(ndu.commit_required, equal_to(False)) assert_that(ndu.revert_possible, equal_to(False)) assert_that(ndu.active_state, equal_to(True)) assert_that(ndu.is_installation_completed, equal_to(True)) assert_that(ndu.is_this_system_software, equal_to(False))
def test_is_sancopy_enabled(self): assert_that(VNXNdu.is_sancopy_enabled(t_cli()), equal_to(True))
def test_is_mirror_view_enabled(self): assert_that(VNXNdu.is_mirror_view_enabled(t_cli()), equal_to(True))
def test_is_compression_enabled(self): assert_that(VNXNdu.is_compression_enabled(t_cli()), equal_to(True))
def test_is_dedup_enabled_false(self): assert_that(VNXNdu.is_dedup_enabled(t_cli()), equal_to(False))
def test_get_all(self): ndu_list = VNXNdu.get(t_cli()) assert_that(len(ndu_list), equal_to(16))
def test_is_fast_cache_enabled(self): assert_that(VNXNdu.is_fast_cache_enabled(t_cli()), equal_to(True))
def test_is_auto_tiering_enabled(self): assert_that(VNXNdu.is_auto_tiering_enabled(t_cli()), equal_to(True))
def get_ndu(self, name=None): return VNXNdu.get(self._cli, name)