Skip to content

Commit 022e891

Browse files
authored
Dependency upgrade (#55)
1 parent 8b74ff8 commit 022e891

File tree

4 files changed

+1466
-5752
lines changed

4 files changed

+1466
-5752
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
npm ci
2020
npm run test
2121
- name: Codecov
22-
uses: codecov/[email protected].2
22+
uses: codecov/[email protected].4

__tests__/utils.test.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ const TEST_NAME_1 = 'test/secret1';
3131
const VALID_ARN_2 = 'arn:aws:secretsmanager:ap-south-1:123456789000:secret:test2-aBcdef';
3232
const TEST_NAME_2 = 'test/secret2';
3333

34-
const NOT_MATCHING_ARN_3 = 'arn:aws:secretsmanager:us-east-1:123456789000:secret:alternativeSecret-aBcdef';
35-
const NOT_MATCHING_TEST = 'alternativeSecret';
36-
3734
const INVALID_ARN = 'aws:secretsmanager:us-east-1:123456789000:secret:test3-aBcdef';
3835

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

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

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

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

235232
test('Throws an error if a prefix filter with an alias returns more than 1 result', async () => {
236-
let input = ["SECRET_ALIAS,test/*"];
233+
const input = ["SECRET_ALIAS,test/*"];
237234
const expectedParams = {
238235
Filters: [
239236
{

0 commit comments

Comments
 (0)