Skip to content

Commit

Permalink
build(deps): update aws-sdk-js-v3 monorepo (#28644)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
renovate[bot] and viceice committed Apr 25, 2024
1 parent 9ea62de commit b56d488
Show file tree
Hide file tree
Showing 5 changed files with 1,017 additions and 893 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`modules/datasource/aws-machine-image/index getSortedAwsMachineImages() with 1 returned image 1`] = `
[
DescribeImagesCommand {
"deserialize": [Function],
"input": {
"Filters": [
{
"Name": "owner-id",
"Values": [
"602401143452",
],
},
{
"Name": "name",
"Values": [
"1image",
],
},
],
},
"middlewareStack": {
"add": [Function],
"addRelativeTo": [Function],
"applyToStack": [Function],
"clone": [Function],
"concat": [Function],
"identify": [Function],
"identifyOnResolve": [Function],
"remove": [Function],
"removeByTag": [Function],
"resolve": [Function],
"use": [Function],
},
"serialize": [Function],
},
]
`;

exports[`modules/datasource/aws-machine-image/index getSortedAwsMachineImages() with 3 returned images 1`] = `
[
DescribeImagesCommand {
"deserialize": [Function],
"input": {
"Filters": [
{
"Name": "owner-id",
"Values": [
"602401143452",
],
},
{
"Name": "name",
"Values": [
"3images",
],
},
],
},
"middlewareStack": {
"add": [Function],
"addRelativeTo": [Function],
"applyToStack": [Function],
"clone": [Function],
"concat": [Function],
"identify": [Function],
"identifyOnResolve": [Function],
"remove": [Function],
"removeByTag": [Function],
"resolve": [Function],
"use": [Function],
},
"serialize": [Function],
},
]
`;

exports[`modules/datasource/aws-machine-image/index getSortedAwsMachineImages() without returned images 1`] = `
[
DescribeImagesCommand {
"deserialize": [Function],
"input": {
"Filters": [
{
"Name": "owner-id",
"Values": [
"602401143452",
],
},
{
"Name": "name",
"Values": [
"noiamge",
],
},
],
},
"middlewareStack": {
"add": [Function],
"addRelativeTo": [Function],
"applyToStack": [Function],
"clone": [Function],
"concat": [Function],
"identify": [Function],
"identifyOnResolve": [Function],
"remove": [Function],
"removeByTag": [Function],
"resolve": [Function],
"use": [Function],
},
"serialize": [Function],
},
]
`;
105 changes: 3 additions & 102 deletions lib/modules/datasource/aws-machine-image/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,40 +146,7 @@ describe('modules/datasource/aws-machine-image/index', () => {
);
expect(res).toStrictEqual([image1, image2, image3]);
expect(ec2Mock.calls()).toHaveLength(1);
expect(ec2Mock.calls()[0].args).toMatchInlineSnapshot(`
[
DescribeImagesCommand {
"input": {
"Filters": [
{
"Name": "owner-id",
"Values": [
"602401143452",
],
},
{
"Name": "name",
"Values": [
"3images",
],
},
],
},
"middlewareStack": {
"add": [Function],
"addRelativeTo": [Function],
"applyToStack": [Function],
"clone": [Function],
"concat": [Function],
"identify": [Function],
"remove": [Function],
"removeByTag": [Function],
"resolve": [Function],
"use": [Function],
},
},
]
`);
expect(ec2Mock.calls()[0].args).toMatchSnapshot();
});

it('with 1 returned image', async () => {
Expand All @@ -190,40 +157,7 @@ describe('modules/datasource/aws-machine-image/index', () => {
);
expect(res).toStrictEqual([image3]);
expect(ec2Mock.calls()).toHaveLength(1);
expect(ec2Mock.calls()[0].args).toMatchInlineSnapshot(`
[
DescribeImagesCommand {
"input": {
"Filters": [
{
"Name": "owner-id",
"Values": [
"602401143452",
],
},
{
"Name": "name",
"Values": [
"1image",
],
},
],
},
"middlewareStack": {
"add": [Function],
"addRelativeTo": [Function],
"applyToStack": [Function],
"clone": [Function],
"concat": [Function],
"identify": [Function],
"remove": [Function],
"removeByTag": [Function],
"resolve": [Function],
"use": [Function],
},
},
]
`);
expect(ec2Mock.calls()[0].args).toMatchSnapshot();
});

it('without returned images', async () => {
Expand All @@ -234,40 +168,7 @@ describe('modules/datasource/aws-machine-image/index', () => {
);
expect(res).toStrictEqual([]);
expect(ec2Mock.calls()).toHaveLength(1);
expect(ec2Mock.calls()[0].args).toMatchInlineSnapshot(`
[
DescribeImagesCommand {
"input": {
"Filters": [
{
"Name": "owner-id",
"Values": [
"602401143452",
],
},
{
"Name": "name",
"Values": [
"noiamge",
],
},
],
},
"middlewareStack": {
"add": [Function],
"addRelativeTo": [Function],
"applyToStack": [Function],
"clone": [Function],
"concat": [Function],
"identify": [Function],
"remove": [Function],
"removeByTag": [Function],
"resolve": [Function],
"use": [Function],
},
},
]
`);
expect(ec2Mock.calls()[0].args).toMatchSnapshot();
});
});

Expand Down
38 changes: 20 additions & 18 deletions lib/modules/platform/codecommit/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import {
CodeCommitClient,
CreatePullRequestApprovalRuleCommand,
CreatePullRequestCommand,
type CreatePullRequestOutput,
DeleteCommentContentCommand,
GetCommentsForPullRequestCommand,
GetFileCommand,
GetPullRequestCommand,
type GetPullRequestOutput,
GetRepositoryCommand,
ListPullRequestsCommand,
ListRepositoriesCommand,
Expand Down Expand Up @@ -257,7 +259,7 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['1', '2'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'OPEN',
Expand Down Expand Up @@ -321,7 +323,7 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['1'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'OPEN',
Expand Down Expand Up @@ -352,7 +354,7 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['1'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'OPEN',
Expand Down Expand Up @@ -383,10 +385,10 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['1'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: '!open',
pullRequestStatus: 'CLOSED',
pullRequestTargets: [
{
sourceReference: 'refs/heads/sourceBranch',
Expand Down Expand Up @@ -414,10 +416,10 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['1'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'closed',
pullRequestStatus: 'CLOSED',
pullRequestTargets: [
{
sourceReference: 'refs/heads/sourceBranch',
Expand Down Expand Up @@ -455,7 +457,7 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['1'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'OPEN',
Expand All @@ -482,7 +484,7 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['1'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'OPEN',
Expand All @@ -502,7 +504,7 @@ describe('modules/platform/codecommit/index', () => {

describe('getPr()', () => {
it('gets pr', async () => {
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
description: 'body',
Expand All @@ -529,7 +531,7 @@ describe('modules/platform/codecommit/index', () => {
});

it('gets closed pr', async () => {
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'CLOSED',
Expand All @@ -555,7 +557,7 @@ describe('modules/platform/codecommit/index', () => {
});

it('gets merged pr', async () => {
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
title: 'someTitle',
pullRequestStatus: 'OPEN',
Expand Down Expand Up @@ -669,7 +671,7 @@ describe('modules/platform/codecommit/index', () => {

describe('createPr()', () => {
it('posts PR', async () => {
const prRes = {
const prRes: CreatePullRequestOutput = {
pullRequest: {
pullRequestId: '1',
pullRequestStatus: 'OPEN',
Expand Down Expand Up @@ -704,7 +706,7 @@ describe('modules/platform/codecommit/index', () => {
});

it('doesnt return a title', async () => {
const prRes = {
const prRes: CreatePullRequestOutput = {
pullRequest: {
pullRequestId: '1',
pullRequestStatus: 'OPEN',
Expand Down Expand Up @@ -985,9 +987,9 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['42'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
number: '42',
pullRequestId: '42',
title: 'someTitle',
pullRequestStatus: 'OPEN',
pullRequestTargets: [
Expand Down Expand Up @@ -1153,9 +1155,9 @@ describe('modules/platform/codecommit/index', () => {
codeCommitClient
.on(ListPullRequestsCommand)
.resolvesOnce({ pullRequestIds: ['42'] });
const prRes = {
const prRes: GetPullRequestOutput = {
pullRequest: {
number: '42',
pullRequestId: '42',
title: 'someTitle',
pullRequestStatus: 'OPEN',
pullRequestTargets: [
Expand Down
Loading

0 comments on commit b56d488

Please sign in to comment.