Ejemplo n.º 1
0
 def createRemoteCampaignsForSocialThrift(campaignId):
     connObj = SocialHelper.getConnObj(newConnection=True)
     return connObj.createCampaign(
         constant.config['orgId'],
         SocialObject().SocialChannel['facebook'],
         SocialObject.SocialCampaign(
             'SocialCampaign_{}'.format(int(time.time() * 1000)),
             constant.config['orgId'],
             campaignId), 'requestId_automationthriftCall_{}'.format(
                 int(time.time() * 1000))).remoteCampaignId
Ejemplo n.º 2
0
 def test_socialThrift_createCampaign_Sanity(self, socialStatus):
     SocialCampaign = self.connObj.createCampaign(
         constant.config['orgId'],
         SocialObject().SocialChannel['facebook'],
         SocialObject.SocialCampaign('SocialCampaign_{}'.format(
             int(time.time() * 1000)),
                                     constant.config['orgId'],
                                     self.campaigns['ORG'],
                                     socialCampaignStatus=socialStatus),
         'requestId_automationthriftCall_{}'.format(int(time.time() *
                                                        1000)))
     SocialHelper.assertCreateCampaignForSocial(self.campaigns['ORG'],
                                                SocialCampaign)