Esempio n. 1
0
 def cg(self):
     if self.is_cg_member and self._cg is None:
         from storops.unity.resource.cg import UnityConsistencyGroup
         self._cg = UnityConsistencyGroup(cli=self._cli,
                                          _id=self.storage_resource.id)
     return self._cg
Esempio n. 2
0
 def test_get_properties(self):
     cg = UnityConsistencyGroup(_id='res_13', cli=t_rest())
     assert_that(cg.id, equal_to('res_13'))
     assert_that(cg.type, equal_to(self.cg_type))
Esempio n. 3
0
 def f():
     cg = UnityConsistencyGroup(cli=t_rest(), _id='res_119')
     cg.delete()
Esempio n. 4
0
 def get_cg():
     return UnityConsistencyGroup(cli=t_rest(), _id='res_19')
Esempio n. 5
0
 def test_delete_cg_normal(self):
     cg = UnityConsistencyGroup(cli=t_rest(), _id='res_18')
     resp = cg.delete()
     assert_that(resp.is_ok(), equal_to(True))