Beispiel #1
0
    def test_veneno_recurring(self, description, messageInfo):
        detailsOfFilterListCreated = CampaignShardHelper.createFilterList(
            self.campaignId, 'test_list_{}'.format(int(time.time())))
        self.listId = detailsOfFilterListCreated['groupDetails']['id']
        authorizeResult = authorize.authorizeCampaign(self, messageInfo, False)
        authorize.assertAuthorize(authorizeResult['authorizeResponse'], 200)

        self.node.append(
            [self.listId, detailsOfFilterListCreated, authorizeResult])
Beispiel #2
0
 def test_campaignShard_loyalty_generic(self, campaignType):
     detailsOfFilterListCreated = CampaignShardHelper.createFilterList(
         self.campaignId[campaignType],
         'test_list_{}_{}'.format(campaignType, int(time.time())))
     userPayloadInfo = CampaignShardHelper.loyaltyUserDataConstructHelper()
     CampaignShardDBAssertion(
         self.campaignId[campaignType], campaignType,
         detailsOfFilterListCreated['listType'],
         detailsOfFilterListCreated['groupLabel'],
         detailsOfFilterListCreated['groupDetails']['id'],
         'firstName,lastName,mobile', userPayloadInfo).check()
Beispiel #3
0
 def setupListForTimelineExection(self):
     try:
         campaignResponse_ORG, campaignPayload_ORG = campaigns.createCampaign(
             {
                 'name': 'IRIS_' + str(int(time.time() * 100000)),
                 'goalId': constant.irisGenericValues['goalId'],
                 'objectiveId': constant.irisGenericValues['objectiveId'],
                 'testControl': {
                     'type': 'ORG',
                     'test': 90
                 }
             })
         detailsOfFilterListCreated = CampaignShardHelper.createFilterList(
             campaignResponse_ORG['json']['entity']['campaignId'],
             'test_timeline_list_{}_{}'.format('org', int(time.time())))
         return detailsOfFilterListCreated['groupLabel']
     except Exception, exp:
         return constant.timelineDetails[
             constant.config['cluster']]['segment']