예제 #1
0
    def receiver1_delete_tip(self):

        yield rtip.delete_internal_tip(self.receiver1_desc['id'],
            self.rtip1_id)

        self.assertFailure(rtip.get_tip(self.receiver1_desc['id'], self.rtip1_id, 'en'),
                           errors.TipIdNotFound)
예제 #2
0
    def receiver1_global_delete_tip(self):

        yield rtip.delete_internal_tip(self.receiver1_desc['id'],
            self.rtip1_id)

        self.assertFailure(rtip.get_tip(self.receiver1_desc['id'], self.rtip1_id, 'en'),
                           errors.TipIdNotFound)
예제 #3
0
    def receiver1_global_delete_tip(self):

        yield rtip.delete_internal_tip(self.receiver1_desc['id'],
                                       self.rtip1_id)

        try:
            # just one operation that fail if iTip is invalid
            yield rtip.get_internaltip_receiver(self.receiver1_desc['id'],
                                                self.rtip1_id)
            self.assertTrue(False)
        except errors.TipIdNotFound:
            self.assertTrue(True)
        except Exception, e:
            self.assertTrue(False)
            raise e
예제 #4
0
    def receiver1_global_delete_tip(self):

        yield rtip.delete_internal_tip(self.receiver1_desc['id'],
            self.rtip1_id)

        try:
            # just one operation that fail if iTip is invalid
            yield rtip.get_internaltip_receiver(
                        self.receiver1_desc['id'], self.rtip1_id)
            self.assertTrue(False)
        except errors.TipIdNotFound:
            self.assertTrue(True)
        except Exception, e:
            self.assertTrue(False)
            raise e
예제 #5
0
 def receiver2_fail_in_delete_internal_tip(self):
     yield self.assertFailure(rtip.delete_internal_tip(self.receiver2_desc['id'],
                                                       self.rtip2_id),
                              errors.ForbiddenOperation)
예제 #6
0
 def receiver2_fail_in_delete_internal_tip(self):
     yield self.assertFailure(
         rtip.delete_internal_tip(self.receiver2_desc['id'], self.rtip2_id),
         errors.ForbiddenOperation)