Skip to content

Commit 65200e0

Browse files
committed
Fixed tests and added some lint corrections.
1 parent fe5e6f2 commit 65200e0

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"node/no-unsupported-features/es-syntax": ["off"]
1313
},
1414
"parserOptions": {
15+
"ecmaVersion": 2020,
1516
"sourceType": "module"
1617
}
1718
}

auth/.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../.eslintrc.json",
3+
"rules": {
4+
"no-unused-vars": "off"
5+
}
6+
}

auth/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"system-test": "c8 mocha -p -j 2 system-test/*.test.js --timeout=30000"
2020
},
2121
"dependencies": {
22+
"@aws-sdk/client-sts": "^3.58.0",
23+
"@aws-sdk/credential-providers": "^3.0.0",
24+
"dotenv": "^17.0.0",
25+
"gaxios": "^6.0.0",
2226
"@google-cloud/storage": "^7.0.0",
2327
"fix": "0.0.6",
2428
"google-auth-library": "^9.0.0",

auth/system-test/customCredentialSupplierAwsTest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
const assert = require('assert');
1818
const {
1919
authenticateWithAwsCredentials,
20-
} = require('../custom-credential-supplier-aws');
20+
} = require('../customCredentialSupplierAws');
2121

2222
describe('Custom Credential Supplier AWS', () => {
2323
const audience = process.env.GCP_WORKLOAD_AUDIENCE;
@@ -39,7 +39,7 @@ describe('Custom Credential Supplier AWS', () => {
3939
const metadata = await authenticateWithAwsCredentials(
4040
bucketName,
4141
audience,
42-
impersonationUrl,
42+
impersonationUrl
4343
);
4444

4545
assert.strictEqual(metadata.name, bucketName);

auth/system-test/customCredentialSupplierOktaTest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
const assert = require('assert');
1818
const {
1919
authenticateWithOktaCredentials,
20-
} = require('../custom-credential-supplier-okta');
20+
} = require('../customCredentialSupplierOkta');
2121

2222
describe('Custom Credential Supplier Okta', () => {
2323
const audience = process.env.GCP_WORKLOAD_AUDIENCE;
@@ -42,7 +42,7 @@ describe('Custom Credential Supplier Okta', () => {
4242
process.env.OKTA_DOMAIN,
4343
process.env.OKTA_CLIENT_ID,
4444
process.env.OKTA_CLIENT_SECRET,
45-
impersonationUrl,
45+
impersonationUrl
4646
);
4747

4848
assert.strictEqual(metadata.name, bucketName);

0 commit comments

Comments
 (0)