diff --git a/test/integration/__recordings__/FulfillmentInventory_2669788595/should-be-able-to-get-list-of-inventory-supply_3748596266/recording.har b/test/integration/__recordings__/FulfillmentInventory_2669788595/should-be-able-to-get-list-of-inventory-supply_3748596266/recording.har
index 3674ee93..2b0a3d7e 100644
--- a/test/integration/__recordings__/FulfillmentInventory_2669788595/should-be-able-to-get-list-of-inventory-supply_3748596266/recording.har
+++ b/test/integration/__recordings__/FulfillmentInventory_2669788595/should-be-able-to-get-list-of-inventory-supply_3748596266/recording.har
@@ -8,7 +8,7 @@
},
"entries": [
{
- "_id": "61055551b6bba2353de453ce691aaaee",
+ "_id": "f003c75b5d01c4497d79f6e7338d7f5e",
"_order": 0,
"cache": {},
"request": {
@@ -28,7 +28,7 @@
"value": "mws.amazonservices.ca"
}
],
- "headersSize": 579,
+ "headersSize": 557,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
@@ -45,16 +45,16 @@
"value": "x"
},
{
- "name": "QueryStartDateTime",
- "value": "2021-03-11T00:00:00.000Z"
+ "name": "SellerId",
+ "value": "x"
},
{
- "name": "SellerId",
+ "name": "SellerSkus.member.1",
"value": "x"
},
{
"name": "Signature",
- "value": "6PMHHjicdFffAos2+jYcm7PQUHgCsBI9/C4ESSf4MzA="
+ "value": "qN0dk+Gwk8SEA7N30l77nQ+DAtl+zm5/wcPTQ9sImHk="
},
{
"name": "SignatureMethod",
@@ -66,21 +66,21 @@
},
{
"name": "Timestamp",
- "value": "2021-09-18T06:29:25.302Z"
+ "value": "2021-09-18T06:51:34.780Z"
},
{
"name": "Version",
"value": "2010-10-01"
}
],
- "url": "https://mws.amazonservices.ca/FulfillmentInventory/2010-10-01?AWSAccessKeyId=x&Action=ListInventorySupply&MWSAuthToken=x&QueryStartDateTime=2021-03-11T00%3A00%3A00.000Z&SellerId=x&Signature=6PMHHjicdFffAos2%2BjYcm7PQUHgCsBI9%2FC4ESSf4MzA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2021-09-18T06%3A29%3A25.302Z&Version=2010-10-01"
+ "url": "https://mws.amazonservices.ca/FulfillmentInventory/2010-10-01?AWSAccessKeyId=x&Action=ListInventorySupply&MWSAuthToken=x&SellerId=x&SellerSkus.member.1=x&Signature=qN0dk%2BGwk8SEA7N30l77nQ%2BDAtl%2Bzm5%2FwcPTQ9sImHk%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2021-09-18T06%3A51%3A34.780Z&Version=2010-10-01"
},
"response": {
- "bodySize": 372,
+ "bodySize": 572,
"content": {
"mimeType": "text/xml;charset=utf-8",
- "size": 372,
- "text": "\n \n A2EUQ1WTGCTBG2\n \n \n \n c5f1f95c-26e5-4a39-975b-ec5b6e265b02\n \n\n"
+ "size": 572,
+ "text": "\n \n A2EUQ1WTGCTBG2\n \n \n 0\n 0\n x\n \n \n \n \n 12f08191-a9ea-48cd-8c5d-362a46ff0155\n \n\n"
},
"cookies": [],
"headers": [
@@ -90,7 +90,7 @@
},
{
"name": "date",
- "value": "Sat, 18 Sep 2021 06:29:25 GMT"
+ "value": "Sat, 18 Sep 2021 06:51:36 GMT"
},
{
"name": "content-type",
@@ -98,7 +98,7 @@
},
{
"name": "content-length",
- "value": "372"
+ "value": "572"
},
{
"name": "connection",
@@ -106,19 +106,19 @@
},
{
"name": "x-amz-rid",
- "value": "9JMG3580W1EKWZJMSYZY"
+ "value": "Q4HCDWFNPEYQ4VZKV8QC"
},
{
"name": "x-mws-request-id",
- "value": "c5f1f95c-26e5-4a39-975b-ec5b6e265b02"
+ "value": "12f08191-a9ea-48cd-8c5d-362a46ff0155"
},
{
"name": "x-mws-timestamp",
- "value": "2021-09-18T06:29:25.419Z"
+ "value": "2021-09-18T06:51:36.102Z"
},
{
"name": "x-mws-response-context",
- "value": "HbngUd/xkWSJlpIyfpWzJTcsXdYOw778/sn5TJp7Y1Al21Dsxp5H4BzbrCxsl5fYqlYlMI6GoBM="
+ "value": "Jwf0RFnYhH9U9t1R7jyKJhDQ0zO23vgEqOT1INE3E7flbBMQ9hUca+KZnb7aV3CUwJ7ZkUEl/no="
},
{
"name": "vary",
@@ -135,8 +135,8 @@
"status": 200,
"statusText": "OK"
},
- "startedDateTime": "2021-09-18T06:29:25.309Z",
- "time": 159,
+ "startedDateTime": "2021-09-18T06:51:34.792Z",
+ "time": 1311,
"timings": {
"blocked": -1,
"connect": -1,
@@ -144,7 +144,7 @@
"receive": 0,
"send": 0,
"ssl": -1,
- "wait": 159
+ "wait": 1311
}
}
],
diff --git a/test/integration/fulfillment-inventory.test.ts b/test/integration/fulfillment-inventory.test.ts
index 97816c46..61aade3d 100644
--- a/test/integration/fulfillment-inventory.test.ts
+++ b/test/integration/fulfillment-inventory.test.ts
@@ -1,6 +1,15 @@
+import { jestPollyConfigService } from '@scaleleap/jest-polly'
+
import { FulfillmentInventory, ListInventorySupplyRequestParameters } from '../../src'
import { Config } from './config'
+jestPollyConfigService.config.matchRequestsBy = {
+ ...jestPollyConfigService.config.matchRequestsBy,
+ url: {
+ query: false,
+ },
+}
+
const httpClient = new Config().createHttpClient()
describe(`${FulfillmentInventory.name}`, () => {
@@ -8,7 +17,7 @@ describe(`${FulfillmentInventory.name}`, () => {
expect.assertions(1)
const parameters: ListInventorySupplyRequestParameters = {
- QueryStartDateTime: new Date('2021-03-11'),
+ SellerSkus: ['x'],
}
const fulfillmentInventory = new FulfillmentInventory(httpClient)