standardize on @aws-sdk v3 versions for test stability

Signed-off-by: Andrew Ochsner <andrew.ochsner@cognizant.com>
This commit is contained in:
Andrew Ochsner
2023-05-08 16:21:36 -05:00
parent b66bfdf3d7
commit 3659c71c5d
11 changed files with 745 additions and 1324 deletions
+10
View File
@@ -0,0 +1,10 @@
---
'@backstage/plugin-events-backend-module-aws-sqs': patch
'@backstage/plugin-catalog-backend-module-aws': patch
'@backstage/integration-aws-node': patch
'@backstage/plugin-kubernetes-backend': patch
'@backstage/backend-common': patch
'@backstage/plugin-techdocs-node': patch
---
Standardize @aws-sdk v3 versions
+5 -5
View File
@@ -46,10 +46,10 @@
"test:kubernetes": "backstage-cli package test -t KubernetesContainerRunner --no-watch"
},
"dependencies": {
"@aws-sdk/abort-controller": "^3.208.0",
"@aws-sdk/client-s3": "^3.208.0",
"@aws-sdk/credential-providers": "^3.208.0",
"@aws-sdk/types": "^3.208.0",
"@aws-sdk/abort-controller": "^3.310.0",
"@aws-sdk/client-s3": "^3.310.0",
"@aws-sdk/credential-providers": "^3.310.0",
"@aws-sdk/types": "^3.310.0",
"@backstage/backend-app-api": "workspace:^",
"@backstage/backend-dev-utils": "workspace:^",
"@backstage/backend-plugin-api": "workspace:^",
@@ -114,7 +114,7 @@
}
},
"devDependencies": {
"@aws-sdk/util-stream-node": "^3.208.0",
"@aws-sdk/util-stream-node": "^3.329.0",
"@backstage/backend-test-utils": "workspace:^",
"@backstage/cli": "workspace:^",
"@types/archiver": "^5.1.0",
+5 -5
View File
@@ -32,11 +32,11 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@aws-sdk/client-sts": "^3.208.0",
"@aws-sdk/credential-provider-node": "^3.208.0",
"@aws-sdk/credential-providers": "^3.208.0",
"@aws-sdk/types": "^3.208.0",
"@aws-sdk/util-arn-parser": "^3.208.0",
"@aws-sdk/client-sts": "^3.310.0",
"@aws-sdk/credential-provider-node": "^3.310.0",
"@aws-sdk/credential-providers": "^3.310.0",
"@aws-sdk/types": "^3.310.0",
"@aws-sdk/util-arn-parser": "^3.310.0",
"@backstage/config": "workspace:^",
"@backstage/errors": "workspace:^"
},
@@ -45,11 +45,11 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@aws-sdk/client-eks": "^3.328.0",
"@aws-sdk/client-organizations": "^3.328.0",
"@aws-sdk/client-s3": "^3.208.0",
"@aws-sdk/credential-providers": "^3.326.0",
"@aws-sdk/middleware-endpoint": "^3.325.0",
"@aws-sdk/client-eks": "^3.310.0",
"@aws-sdk/client-organizations": "^3.310.0",
"@aws-sdk/client-s3": "^3.310.0",
"@aws-sdk/credential-providers": "^3.310.0",
"@aws-sdk/middleware-endpoint": "^3.310.0",
"@aws-sdk/types": "^3.310.0",
"@backstage/backend-common": "workspace:^",
"@backstage/backend-plugin-api": "workspace:^",
@@ -69,7 +69,7 @@
"winston": "^3.2.1"
},
"devDependencies": {
"@aws-sdk/util-stream-node": "^3.208.0",
"@aws-sdk/util-stream-node": "^3.310.0",
"@backstage/backend-test-utils": "workspace:^",
"@backstage/cli": "workspace:^",
"@types/lodash": "^4.14.151",
@@ -17,11 +17,11 @@
import { AwsEKSClusterProcessor } from './AwsEKSClusterProcessor';
import { mockClient } from 'aws-sdk-client-mock';
import {
EKS,
ListClustersResponse,
DescribeClusterResponse,
ListClustersCommand,
DescribeClusterCommand,
EKSClient,
} from '@aws-sdk/client-eks';
describe('AwsEKSClusterProcessor', () => {
@@ -46,7 +46,7 @@ describe('AwsEKSClusterProcessor', () => {
},
},
};
const mock = mockClient(EKS);
const mock = mockClient(EKSClient);
mock.on(ListClustersCommand).resolves(clusters);
mock.on(DescribeClusterCommand).resolves(cluster);
@@ -19,7 +19,7 @@ import 'aws-sdk-client-mock-jest';
import { AwsOrganizationCloudAccountProcessor } from './AwsOrganizationCloudAccountProcessor';
import {
ListAccountsCommand,
Organizations,
OrganizationsClient,
} from '@aws-sdk/client-organizations';
describe('AwsOrganizationCloudAccountProcessor', () => {
@@ -29,7 +29,7 @@ describe('AwsOrganizationCloudAccountProcessor', () => {
});
const location = { type: 'aws-cloud-accounts', target: '' };
const emit = jest.fn();
const mock = mockClient(Organizations);
const mock = mockClient(OrganizationsClient);
afterEach(() => {
jest.resetAllMocks();
@@ -25,7 +25,7 @@ import { EntityProviderConnection } from '@backstage/plugin-catalog-node';
import { AwsS3EntityProvider } from './AwsS3EntityProvider';
import { mockClient } from 'aws-sdk-client-mock';
import 'aws-sdk-client-mock-jest';
import { ListObjectsV2Command, S3 } from '@aws-sdk/client-s3';
import { ListObjectsV2Command, S3Client } from '@aws-sdk/client-s3';
class PersistingTaskRunner implements TaskRunner {
private tasks: TaskInvocationDefinition[] = [];
@@ -53,7 +53,7 @@ describe('AwsS3EntityProvider', () => {
};
const keys = ['key1.yaml', 'key2.yaml', 'key3.yaml', 'key 4.yaml'];
const mock = mockClient(S3);
const mock = mockClient(S3Client);
beforeEach(() => {
mock.on(ListObjectsV2Command).callsFake(async req => {
@@ -35,7 +35,7 @@
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@aws-sdk/client-sqs": "^3.208.0",
"@aws-sdk/client-sqs": "^3.310.0",
"@backstage/backend-common": "workspace:^",
"@backstage/backend-plugin-api": "workspace:^",
"@backstage/backend-tasks": "workspace:^",
@@ -46,7 +46,7 @@
"winston": "^3.2.1"
},
"devDependencies": {
"@aws-sdk/types": "^3.208.0",
"@aws-sdk/types": "^3.310.0",
"@backstage/backend-common": "workspace:^",
"@backstage/backend-test-utils": "workspace:^",
"@backstage/cli": "workspace:^",
+1 -1
View File
@@ -50,7 +50,7 @@
},
"dependencies": {
"@aws-crypto/sha256-js": "^3.0.0",
"@aws-sdk/credential-providers": "^3.208.0",
"@aws-sdk/credential-providers": "^3.310.0",
"@aws-sdk/signature-v4": "^3.310.0",
"@azure/identity": "^2.0.4",
"@backstage/backend-common": "workspace:^",
+5 -5
View File
@@ -39,11 +39,11 @@
"url": "https://github.com/backstage/backstage/issues"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.208.0",
"@aws-sdk/credential-providers": "^3.208.0",
"@aws-sdk/lib-storage": "^3.208.0",
"@aws-sdk/node-http-handler": "^3.208.0",
"@aws-sdk/types": "^3.208.0",
"@aws-sdk/client-s3": "^3.310.0",
"@aws-sdk/credential-providers": "^3.310.0",
"@aws-sdk/lib-storage": "^3.310.0",
"@aws-sdk/node-http-handler": "^3.310.0",
"@aws-sdk/types": "^3.310.0",
"@azure/identity": "^2.1.0",
"@azure/storage-blob": "^12.5.0",
"@backstage/backend-common": "workspace:^",
+705 -1294
View File
File diff suppressed because it is too large Load Diff