Skip to content

Commit

Permalink
test: skip sb search term report test
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentoanit committed Apr 20, 2020
1 parent ff58ee9 commit d5858c9
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,35 @@ describe('SponsoredBrandsReportOperation', () => {
expect(res.status).toBe(ReportResponseStatusEnum.IN_PROGRESS)
expect(res.statusDetails).toBeDefined()
})

/**
* TODO: Need check on Production API again. Sandbox API returns an error:
* Could not find resource for full path: https://advertising-api-test.amazon.com/v2/hsa/searchTerms/report
*/
it.skip(`should return a in progress status with search term report`, async () => {
const res = await reportOperation.requestReport({
recordType: SponsoredBrandsReportTypeEnum.SEARCH_TERM,
metrics: [
'campaignId',
'campaignName',
'adGroupId',
'adGroupName',
'campaignBudgetType',
'campaignStatus',
'keywordId',
'keywordStatus',
'keywordBid',
'keywordText',
'matchType',
],
reportDate: '20200314',
})

expect(res.reportId).toBeDefined()
expect(res.recordType).toBeDefined()
expect(res.status).toBe(ReportResponseStatusEnum.IN_PROGRESS)
expect(res.statusDetails).toBeDefined()
})
})

describe('getReport', () => {
Expand Down

0 comments on commit d5858c9

Please sign in to comment.