Beispiel #1
0
    def perform_post_submission_actions(self):
        self.dummyRTips = yield self.get_rtips()

        for rtip_desc in self.dummyRTips:
            yield rtip.create_comment(1,
                                      rtip_desc['receiver_id'],
                                      USER_PRV_KEY,
                                      rtip_desc['id'],
                                      'comment')

            yield rtip.create_message(1,
                                      rtip_desc['receiver_id'],
                                      USER_PRV_KEY,
                                      rtip_desc['id'],
                                      'message')

        self.dummyWBTips = yield self.get_wbtips()

        for wbtip_desc in self.dummyWBTips:
            yield wbtip.create_comment(1,
                                       wbtip_desc['id'],
                                       USER_PRV_KEY,
                                       'comment')

            for receiver_id in wbtip_desc['receivers_ids']:
                yield wbtip.create_message(1,
                                           wbtip_desc['id'],
                                           USER_PRV_KEY,
                                           receiver_id,
                                           'message')
Beispiel #2
0
    def perform_post_submission_actions(self):
        self.dummyRTips = yield self.get_rtips()

        for rtip_desc in self.dummyRTips:
            yield rtip.create_comment(1,
                                      rtip_desc['receiver_id'],
                                      USER_PRV_KEY,
                                      rtip_desc['id'],
                                      'comment')

            yield rtip.create_message(1,
                                      rtip_desc['receiver_id'],
                                      USER_PRV_KEY,
                                      rtip_desc['id'],
                                      'message')

        self.dummyWBTips = yield self.get_wbtips()

        for wbtip_desc in self.dummyWBTips:
            yield wbtip.create_comment(1,
                                       wbtip_desc['id'],
                                       USER_PRV_KEY,
                                       'comment')

            for receiver_id in wbtip_desc['receivers_ids']:
                yield wbtip.create_message(1,
                                           wbtip_desc['id'],
                                           USER_PRV_KEY,
                                           receiver_id,
                                           'message')
Beispiel #3
0
    def perform_post_submission_actions(self):
        commentCreation = {'content': 'comment!'}

        messageCreation = {'content': 'message!'}

        identityaccessrequestCreation = {
            'request_motivation': 'request motivation'
        }

        self.dummyRTips = yield self.get_rtips()

        for rtip_desc in self.dummyRTips:
            yield rtip.create_comment(1, rtip_desc['receiver_id'],
                                      rtip_desc['id'], commentCreation)

            yield rtip.create_message(1, rtip_desc['receiver_id'],
                                      rtip_desc['id'], messageCreation)

            yield rtip.create_identityaccessrequest(
                1, rtip_desc['receiver_id'], rtip_desc['id'],
                identityaccessrequestCreation)

        self.dummyWBTips = yield self.get_wbtips()

        for wbtip_desc in self.dummyWBTips:
            yield wbtip.create_comment(1, wbtip_desc['id'], commentCreation)

            for receiver_id in wbtip_desc['receivers_ids']:
                yield wbtip.create_message(1, wbtip_desc['id'], receiver_id,
                                           messageCreation)
Beispiel #4
0
    def receiver_RW_comments(self):
        self.commentCreation['content'] = unicode("Comment N1 by R1")
        yield rtip.create_comment(self.receiver1_desc['id'],
                                  self.rtip1_id,
                                  self.commentCreation)

        cl = yield rtip.get_comment_list(self.receiver1_desc['id'],
                                         self.rtip1_id)
        self.assertEqual(len(cl), 1)

        self.commentCreation['content'] = unicode("Comment N2 by R2")
        yield rtip.create_comment(self.receiver2_desc['id'],
                                  self.rtip2_id,
                                  self.commentCreation)

        cl = yield rtip.get_comment_list(self.receiver2_desc['id'],
                                         self.rtip2_id)
        self.assertEqual(len(cl), 2)
Beispiel #5
0
    def perform_post_submission_actions(self):
        commentCreation = {
            'content': 'comment!'
        }

        messageCreation = {
            'content': 'message!'
        }

        identityaccessrequestCreation = {
            'request_motivation': 'request motivation'
        }

        self.dummyRTips = yield self.get_rtips()

        for rtip_desc in self.dummyRTips:
            yield rtip.create_comment(rtip_desc['receiver_id'],
                                      rtip_desc['id'],
                                      commentCreation)

            yield rtip.create_message(rtip_desc['receiver_id'],
                                      rtip_desc['id'],
                                      messageCreation)

            yield self.emulate_file_append(rtip_desc['id'], 3)

            yield rtip.create_identityaccessrequest(rtip_desc['receiver_id'],
                                                    rtip_desc['id'],
                                                    identityaccessrequestCreation,
                                                    'en')

        self.dummyWBTips = yield self.get_wbtips()

        for wbtip_desc in self.dummyWBTips:
            yield wbtip.create_comment(wbtip_desc['id'],
                                       commentCreation)

            for receiver_id in wbtip_desc['receivers_ids']:
                yield wbtip.create_message(wbtip_desc['id'], receiver_id, messageCreation)
Beispiel #6
0
    def perform_post_submission_actions(self):
        identityaccessrequestCreation = {
            'request_motivation': u'request motivation'
        }

        self.dummyRTips = yield self.get_rtips()

        for rtip_desc in self.dummyRTips:
            yield rtip.create_comment(1,
                                      rtip_desc['receiver_id'],
                                      USER_PRV_KEY,
                                      rtip_desc['id'],
                                      'comment')

            yield rtip.create_message(1,
                                      rtip_desc['receiver_id'],
                                      USER_PRV_KEY,
                                      rtip_desc['id'],
                                      'message')

            yield rtip.create_identityaccessrequest(1,
                                                    rtip_desc['receiver_id'],
                                                    rtip_desc['id'],
                                                    identityaccessrequestCreation)

        self.dummyWBTips = yield self.get_wbtips()

        for wbtip_desc in self.dummyWBTips:
            yield wbtip.create_comment(1,
                                       wbtip_desc['id'],
                                       USER_PRV_KEY,
                                       'comment')

            for receiver_id in wbtip_desc['receivers_ids']:
                yield wbtip.create_message(1,
                                           wbtip_desc['id'],
                                           USER_PRV_KEY,
                                           receiver_id,
                                           'message')