44 */
55import * as assert from 'assert'
66import { ChildProcess } from '../../../shared/utilities/processUtils'
7- import { startSshAgent , testSshConnection } from '../../../shared/extensions/ssh'
7+ import { startSshAgent , testSsmConnection } from '../../../shared/extensions/ssh'
88import { createBoundProcess } from '../../../shared/remoteSession'
99import { createExecutableFile , createTestWorkspaceFolder } from '../../testUtil'
1010import { WorkspaceFolder } from 'vscode'
@@ -74,7 +74,7 @@ describe('testSshConnection', function () {
7474 } as SSM . StartSessionResponse
7575
7676 await createExecutableFile ( sshPath , echoEnvVarsCmd ( [ 'MY_VAR' ] ) )
77- const r = await testSshConnection ( process , 'localhost' , sshPath , 'test-user' , session )
77+ const r = await testSsmConnection ( process , 'localhost' , sshPath , 'test-user' , session )
7878 assertOutputContains ( r . stdout , 'yes' )
7979 } )
8080
@@ -97,15 +97,15 @@ describe('testSshConnection', function () {
9797 const process = createBoundProcess ( envProvider )
9898
9999 await createExecutableFile ( sshPath , echoEnvVarsCmd ( [ 'SESSION_ID' , 'STREAM_URL' , 'TOKEN' ] ) )
100- const r = await testSshConnection ( process , 'localhost' , sshPath , 'test-user' , newSession )
100+ const r = await testSsmConnection ( process , 'localhost' , sshPath , 'test-user' , newSession )
101101 assertOutputContains ( r . stdout , `${ newSession . SessionId } ${ newSession . StreamUrl } ${ newSession . TokenValue } ` )
102102 } )
103103
104104 it ( 'passes proper args to the ssh invoke' , async function ( ) {
105105 const executableFileContent = isWin ( ) ? `echo "%1 %2"` : `echo "$1 $2"`
106106 const process = createBoundProcess ( async ( ) => ( { } ) )
107107 await createExecutableFile ( sshPath , executableFileContent )
108- const r = await testSshConnection ( process , 'localhost' , sshPath , 'test-user' , { } as SSM . StartSessionResponse )
108+ const r = await testSsmConnection ( process , 'localhost' , sshPath , 'test-user' , { } as SSM . StartSessionResponse )
109109 assertOutputContains ( r . stdout , '-T' )
110110 assertOutputContains ( r . stdout , 'test-user@localhost' )
111111 } )
0 commit comments