Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)