Skip to content

Commit

Permalink
test: adds Polly recordings [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Scale Bot authored and nguyentoanit committed Apr 20, 2020
1 parent a489a57 commit 3b56f79
Show file tree
Hide file tree
Showing 2 changed files with 493 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,367 @@
{
"log": {
"_recordingName": "SponsoredBrandsReportOperation/downloadReport/should return the report uncompressed",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "4.0.4"
},
"entries": [
{
"_id": "504f4b6ead958badce9d578c87f678c7",
"_order": 0,
"cache": {},
"request": {
"bodySize": 86,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
},
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "user-agent",
"value": "@scaleleap/amazon-advertising-api-sdk/1.15.0"
},
{
"_fromType": "array",
"name": "amazon-advertising-api-scope",
"value": "2984328618318898"
},
{
"_fromType": "array",
"name": "bidding_controls_on",
"value": "true"
},
{
"_fromType": "array",
"name": "accept-encoding",
"value": "application/json"
},
{
"_fromType": "array",
"name": "content-length",
"value": "86"
},
{
"_fromType": "array",
"name": "connection",
"value": "close"
},
{
"name": "host",
"value": "advertising-api-test.amazon.com"
}
],
"headersSize": 1136,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"metrics\":\"campaignBudget,campaignBudgetType,campaignStatus\",\"reportDate\":\"20200314\"}"
},
"queryString": [],
"url": "https://advertising-api-test.amazon.com/v2/hsa/campaigns/report"
},
"response": {
"bodySize": 165,
"content": {
"mimeType": "text/plain",
"size": 165,
"text": "{\"reportId\":\"amzn1.clicksAPI.v1.m1.5E95DE2C.a3c03dba-4922-4e5a-871c-7354b4fb3dae\",\"recordType\":\"campaign\",\"status\":\"IN_PROGRESS\",\"statusDetails\":\"Generating report\"}"
},
"cookies": [],
"headers": [
{
"name": "server",
"value": "Server"
},
{
"name": "date",
"value": "Tue, 14 Apr 2020 16:00:44 GMT"
},
{
"name": "transfer-encoding",
"value": "chunked"
},
{
"name": "connection",
"value": "close"
},
{
"name": "vary",
"value": "Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent"
}
],
"headersSize": 206,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 202,
"statusText": "Accepted"
},
"startedDateTime": "2020-04-14T16:00:43.975Z",
"time": 211,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 211
}
},
{
"_id": "dafc3484a5289773c740b622c4c35ec6",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
},
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "user-agent",
"value": "@scaleleap/amazon-advertising-api-sdk/1.15.0"
},
{
"_fromType": "array",
"name": "amazon-advertising-api-scope",
"value": "2984328618318898"
},
{
"_fromType": "array",
"name": "bidding_controls_on",
"value": "true"
},
{
"_fromType": "array",
"name": "accept-encoding",
"value": "application/json"
},
{
"_fromType": "array",
"name": "connection",
"value": "close"
},
{
"name": "host",
"value": "advertising-api-test.amazon.com"
}
],
"headersSize": 1179,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://advertising-api-test.amazon.com/v2/reports/amzn1.clicksAPI.v1.m1.5E95DE2C.a3c03dba-4922-4e5a-871c-7354b4fb3dae/download"
},
"response": {
"bodySize": 0,
"content": {
"mimeType": "text/plain",
"size": 0
},
"cookies": [],
"headers": [
{
"name": "server",
"value": "Server"
},
{
"name": "date",
"value": "Tue, 14 Apr 2020 16:00:44 GMT"
},
{
"name": "content-length",
"value": "0"
},
{
"name": "connection",
"value": "close"
},
{
"name": "location",
"value": "https://sandboxreports.s3.amazonaws.com/amzn1.clicksAPI.v1.m1.5E95DE2C.a3c03dba-4922-4e5a-871c-7354b4fb3dae.json.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200414T160044Z&X-Amz-SignedHeaders=host&X-Amz-Expires=30&X-Amz-Credential=AKIA3P6LC7ARF26O7EHB%2F20200414%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=2700796ce40db8b2422ccc4e824f3d91032f4a6eb1b7a217d93d3e5d3e68cbc4"
},
{
"name": "x-amz-request-id",
"value": "4QE0156HZ7Z6PD8BB5Q3"
},
{
"name": "vary",
"value": "Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent"
}
],
"headersSize": 629,
"httpVersion": "HTTP/1.1",
"redirectURL": "https://sandboxreports.s3.amazonaws.com/amzn1.clicksAPI.v1.m1.5E95DE2C.a3c03dba-4922-4e5a-871c-7354b4fb3dae.json.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200414T160044Z&X-Amz-SignedHeaders=host&X-Amz-Expires=30&X-Amz-Credential=AKIA3P6LC7ARF26O7EHB%2F20200414%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=2700796ce40db8b2422ccc4e824f3d91032f4a6eb1b7a217d93d3e5d3e68cbc4",
"status": 307,
"statusText": "Temporary Redirect"
},
"startedDateTime": "2020-04-14T16:00:44.189Z",
"time": 73,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 73
}
},
{
"_id": "1e6413a6c08e17a81896187a0006e413",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "*/*"
},
{
"_fromType": "array",
"name": "user-agent",
"value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"
},
{
"_fromType": "array",
"name": "accept-encoding",
"value": "gzip,deflate"
},
{
"_fromType": "array",
"name": "connection",
"value": "close"
},
{
"name": "host",
"value": "sandboxreports.s3.amazonaws.com"
}
],
"headersSize": 567,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
{
"name": "X-Amz-Algorithm",
"value": "AWS4-HMAC-SHA256"
},
{
"name": "X-Amz-Date",
"value": "20200414T160044Z"
},
{
"name": "X-Amz-SignedHeaders",
"value": "host"
},
{
"name": "X-Amz-Expires",
"value": "30"
},
{
"name": "X-Amz-Credential",
"value": "AKIA3P6LC7ARF26O7EHB/20200414/us-east-1/s3/aws4_request"
},
{
"name": "X-Amz-Signature",
"value": "2700796ce40db8b2422ccc4e824f3d91032f4a6eb1b7a217d93d3e5d3e68cbc4"
}
],
"url": "https://sandboxreports.s3.amazonaws.com/amzn1.clicksAPI.v1.m1.5E95DE2C.a3c03dba-4922-4e5a-871c-7354b4fb3dae.json.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200414T160044Z&X-Amz-SignedHeaders=host&X-Amz-Expires=30&X-Amz-Credential=AKIA3P6LC7ARF26O7EHB%2F20200414%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=2700796ce40db8b2422ccc4e824f3d91032f4a6eb1b7a217d93d3e5d3e68cbc4"
},
"response": {
"bodySize": 22,
"content": {
"mimeType": "application/octet-stream",
"size": 22,
"text": "1f8b08000000000000008b8e050029bb4c0d02000000"
},
"cookies": [],
"headers": [
{
"name": "x-amz-id-2",
"value": "M+wDPhNw210E0+4M81hlBi7bQZztP6BI1BFmaLWHvXpj613elY7ZQncpO23QEdVvSOu3afw2nQA="
},
{
"name": "x-amz-request-id",
"value": "40A5854C575871BC"
},
{
"name": "date",
"value": "Tue, 14 Apr 2020 16:00:45 GMT"
},
{
"name": "last-modified",
"value": "Tue, 14 Apr 2020 16:00:45 GMT"
},
{
"name": "etag",
"value": "\"24d0a027ba0f276ca66203026eecc338\""
},
{
"name": "accept-ranges",
"value": "bytes"
},
{
"name": "content-type",
"value": "application/octet-stream"
},
{
"name": "content-length",
"value": "22"
},
{
"name": "server",
"value": "AmazonS3"
},
{
"name": "connection",
"value": "close"
}
],
"headersSize": 372,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2020-04-14T16:00:44.268Z",
"time": 51,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 51
}
}
],
"pages": [],
"version": "1.2"
}
}
Loading

0 comments on commit 3b56f79

Please sign in to comment.