Skip to content

Commit eca638d

Browse files
committed
test: added tests
1 parent d44d817 commit eca638d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/aws-lambda/test/integration_test/test_definition.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ function registerTests(handlerDefinitionPath, reduced) {
453453
});
454454

455455
describeOrSkipIfReduced(reduced)('[with decryption] succeeds', () => {
456-
const AWS = require('@aws-sdk/client-ssm');
456+
const AWSssm = require('@aws-sdk/client-ssm');
457+
const AWSkms = require('@aws-sdk/client-kms');
457458
let kmsKeyId;
458459

459460
// - INSTANA_ENDPOINT_URL is configured
@@ -489,7 +490,7 @@ function registerTests(handlerDefinitionPath, reduced) {
489490
});
490491

491492
after(callback => {
492-
const kms = new AWS.KMS({ region: awsRegion });
493+
const kms = new AWSkms.KMS({ region: awsRegion });
493494
kms.scheduleKeyDeletion(
494495
{
495496
KeyId: kmsKeyId,
@@ -506,8 +507,8 @@ function registerTests(handlerDefinitionPath, reduced) {
506507
});
507508

508509
before(callback => {
509-
const ssm = new AWS.SSM({ region: awsRegion });
510-
const kms = new AWS.KMS({ region: awsRegion });
510+
const ssm = new AWSssm.SSM({ region: awsRegion });
511+
const kms = new AWSkms.KMS({ region: awsRegion });
511512

512513
kms.createKey({}, (kmsErr, data) => {
513514
if (kmsErr) {

0 commit comments

Comments
 (0)