Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(packages): revert consolidate middleware integ tests #4910

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
preset: "ts-jest",
testMatch: ["**/*.spec.ts"],
testMatch: ["**/*.integ.spec.ts"],
};
3 changes: 2 additions & 1 deletion packages/middleware-apply-body-checksum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"build:types": "tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
"test": "jest --coverage"
"test": "jest --coverage",
"test:integration": "jest --config jest.config.integ.js"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { S3Control } from "@aws-sdk/client-s3-control";

import { requireRequestsFrom } from "../../aws-util-test/src";
import { requireRequestsFrom } from "../../../private/aws-util-test/src";

describe("middleware-apply-body-checksum", () => {
describe(S3Control.name, () => {
Expand Down
4 changes: 4 additions & 0 deletions packages/middleware-content-length/jest.config.integ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: "ts-jest",
testMatch: ["**/*.integ.spec.ts"],
};
3 changes: 2 additions & 1 deletion packages/middleware-content-length/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"build:types": "tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
"test": "exit 0"
"test": "exit 0",
"test:integration": "jest --config jest.config.integ.js"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AccessAnalyzer } from "@aws-sdk/client-accessanalyzer";
import { S3 } from "@aws-sdk/client-s3";
import { XRay } from "@aws-sdk/client-xray";

import { requireRequestsFrom } from "../../aws-util-test/src";
import { requireRequestsFrom } from "../../../private/aws-util-test/src";

describe("middleware-content-length", () => {
describe(AccessAnalyzer.name, () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { S3 } from "@aws-sdk/client-s3";
import { S3Control } from "@aws-sdk/client-s3-control";

import { requireRequestsFrom } from "../../aws-util-test/src";
import { requireRequestsFrom } from "../../../private/aws-util-test/src";

describe("middleware-endpoint", () => {
// these are token examples because most endpoint
Expand Down
4 changes: 4 additions & 0 deletions packages/middleware-retry/jest.config.integ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: "ts-jest",
testMatch: ["**/*.integ.spec.ts"],
};
3 changes: 2 additions & 1 deletion packages/middleware-retry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
"extract:docs": "api-extractor run --local",
"test": "jest"
"test": "jest",
"test:integration": "jest -c jest.config.integ.js"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Lambda } from "@aws-sdk/client-lambda";

import { requireRequestsFrom } from "../../aws-util-test/src";
import { requireRequestsFrom } from "../../../private/aws-util-test/src";

describe("middleware-retry", () => {
describe(Lambda.name, () => {
Expand Down
4 changes: 4 additions & 0 deletions packages/middleware-serde/jest.config.integ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: "ts-jest",
testMatch: ["**/*.integ.spec.ts"],
};
3 changes: 2 additions & 1 deletion packages/middleware-serde/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"build:types": "tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
"test": "jest"
"test": "jest",
"test:integration": "jest -c jest.config.integ.js"
},
"main": "./dist-cjs/index.js",
"module": "./dist-es/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { S3 } from "@aws-sdk/client-s3";
import { SageMaker } from "@aws-sdk/client-sagemaker";
import { SageMakerRuntime } from "@aws-sdk/client-sagemaker-runtime";

import { requireRequestsFrom } from "../../aws-util-test/src";
import { requireRequestsFrom } from "../../../private/aws-util-test/src";

describe("middleware-serde", () => {
describe(S3.name, () => {
Expand Down
10 changes: 0 additions & 10 deletions private/aws-client-retry-test/README.md

This file was deleted.

7 changes: 2 additions & 5 deletions private/aws-client-retry-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
"module": "./dist-es/index.js",
"sideEffects": false,
"dependencies": {
"@aws-sdk/client-s3": "*",
"@aws-sdk/util-retry": "*",
"@smithy/protocol-http": "*",
"@smithy/types": "*",
"@aws-sdk/client-xray": "*",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down Expand Up @@ -60,6 +57,6 @@
"repository": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-js-v3.git",
"directory": "private/aws-client-retry-test"
"directory": "private/aws-client-api-test"
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @aws-sdk/aws-middleware-test
# @aws-sdk/aws-client-api-test

This is not a runtime or published package.

This is a test spec.

The purpose of this package is to perform integration tests on the AWS middleware.
The purpose of this package is to perform integration tests on the retry-middleware.

If tests in this package fail, the author should either fix their changes such that the API contract
is maintained, or appropriately announce and safely deprecate the interfaces affected by incoming changes.
4 changes: 0 additions & 4 deletions private/aws-middleware-test/CHANGELOG.md

This file was deleted.

67 changes: 0 additions & 67 deletions private/aws-middleware-test/package.json

This file was deleted.