Skip to content

Commit

Permalink
Dependency upgrade (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmarty authored Jun 22, 2023
1 parent 8b74ff8 commit 022e891
Show file tree
Hide file tree
Showing 4 changed files with 1,466 additions and 5,752 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
npm ci
npm run test
- name: Codecov
uses: codecov/[email protected].2
uses: codecov/[email protected].4
11 changes: 4 additions & 7 deletions __tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ const TEST_NAME_1 = 'test/secret1';
const VALID_ARN_2 = 'arn:aws:secretsmanager:ap-south-1:123456789000:secret:test2-aBcdef';
const TEST_NAME_2 = 'test/secret2';

const NOT_MATCHING_ARN_3 = 'arn:aws:secretsmanager:us-east-1:123456789000:secret:alternativeSecret-aBcdef';
const NOT_MATCHING_TEST = 'alternativeSecret';

const INVALID_ARN = 'aws:secretsmanager:us-east-1:123456789000:secret:test3-aBcdef';

jest.mock('@actions/core');
Expand Down Expand Up @@ -87,7 +84,7 @@ describe('Test secret value retrieval', () => {
});

test('Throws an error if unable to retrieve the secret', async () => {
const error = new ResourceNotFoundException({$metadata: {} as any, Message: 'Error'});
const error = new ResourceNotFoundException({$metadata: {}, message: 'Error'});
smMockClient.on(GetSecretValueCommand).rejects(error);
await expect(getSecretValue(smClient, TEST_NAME)).rejects.toThrow(error);
});
Expand Down Expand Up @@ -177,7 +174,7 @@ describe('Test secret value retrieval', () => {
});

test('Throws an error if a prefix filter returns too many results', async () => {
let input = ["too/many/matches/*"];
const input = ["too/many/matches/*"];
const expectedParams = {
Filters: [
{
Expand Down Expand Up @@ -210,7 +207,7 @@ describe('Test secret value retrieval', () => {
});

test('Throws an error if a prefix filter has no results', async () => {
let input = ["no/matches/*"];
const input = ["no/matches/*"];
const expectedParams = {
Filters: [
{
Expand All @@ -233,7 +230,7 @@ describe('Test secret value retrieval', () => {
});

test('Throws an error if a prefix filter with an alias returns more than 1 result', async () => {
let input = ["SECRET_ALIAS,test/*"];
const input = ["SECRET_ALIAS,test/*"];
const expectedParams = {
Filters: [
{
Expand Down
Loading

0 comments on commit 022e891

Please sign in to comment.