Skip to content

Commit 24919b7

Browse files
committed
add test for minimum ssm actions
1 parent edd90ca commit 24919b7

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

packages/core/src/shared/remoteSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface MissingTool {
3030
readonly reason?: string
3131
}
3232

33-
const minimumSsmActions = [
33+
export const minimumSsmActions = [
3434
'ssmmessages:CreateControlChannel',
3535
'ssmmessages:CreateDataChannel',
3636
'ssmmessages:OpenControlChannel',
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*!
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
import assert from 'assert'
6+
import { minimumSsmActions } from '../../shared/remoteSession'
7+
8+
describe('minimumSsmActions', function () {
9+
it('should contain minimal actions needed for ssm connection', function () {
10+
assert.strictEqual(minimumSsmActions, [
11+
'ssmmessages:CreateControlChannel',
12+
'ssmmessages:CreateDataChannel',
13+
'ssmmessages:OpenControlChannel',
14+
'ssmmessages:OpenDataChannel',
15+
'ssm:DescribeAssociation',
16+
'ssm:ListAssociations',
17+
'ssm:UpdateInstanceInformation',
18+
])
19+
})
20+
})

0 commit comments

Comments
 (0)