From 5b00e147ef1d097fbeffa0c77191843dcb5c430b Mon Sep 17 00:00:00 2001 From: George Fu Date: Tue, 8 Oct 2024 20:47:41 +0000 Subject: [PATCH] test: update integ test assertions for user agents --- .../src/middleware-flexible-checksums.integ.spec.ts | 2 +- .../src/s3-express/middleware-s3-express.integ.spec.ts | 2 +- .../src/middleware-user-agent.integ.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/middleware-flexible-checksums/src/middleware-flexible-checksums.integ.spec.ts b/packages/middleware-flexible-checksums/src/middleware-flexible-checksums.integ.spec.ts index 027e8ad74b1f3..40b0d1a045d27 100644 --- a/packages/middleware-flexible-checksums/src/middleware-flexible-checksums.integ.spec.ts +++ b/packages/middleware-flexible-checksums/src/middleware-flexible-checksums.integ.spec.ts @@ -137,7 +137,7 @@ describe("middleware-flexible-checksums", () => { requireRequestsFrom(client).toMatch({ headers: { - "user-agent": new RegExp(`(.*?) m\/${id}$`), + "user-agent": new RegExp(`(.*?) m\/${id},E$`), }, }); diff --git a/packages/middleware-sdk-s3/src/s3-express/middleware-s3-express.integ.spec.ts b/packages/middleware-sdk-s3/src/s3-express/middleware-s3-express.integ.spec.ts index a73facfe5d8cf..e969678effe77 100644 --- a/packages/middleware-sdk-s3/src/s3-express/middleware-s3-express.integ.spec.ts +++ b/packages/middleware-sdk-s3/src/s3-express/middleware-s3-express.integ.spec.ts @@ -93,7 +93,7 @@ describe("middleware-s3-express", () => { requireRequestsFrom(client).toMatch({ headers: { - "user-agent": /(.*?) m\/J$/, + "user-agent": /(.*?) m\/J,E$/, }, }); diff --git a/packages/middleware-user-agent/src/middleware-user-agent.integ.spec.ts b/packages/middleware-user-agent/src/middleware-user-agent.integ.spec.ts index 04ba7015c472e..2ee442d5bf280 100644 --- a/packages/middleware-user-agent/src/middleware-user-agent.integ.spec.ts +++ b/packages/middleware-user-agent/src/middleware-user-agent.integ.spec.ts @@ -36,7 +36,7 @@ describe("middleware-user-agent", () => { requireRequestsFrom(doc).toMatch({ headers: { - "user-agent": /(.*?) m\/d,O,R$/, + "user-agent": /(.*?) m\/d,E,O,R$/, }, });