@@ -26,36 +26,36 @@ describe('AuthUtil', async function () {
2626
2727 describe ( 'Auth state' , function ( ) {
2828 it ( 'login with BuilderId' , async function ( ) {
29- await auth . login_sso ( constants . builderIdStartUrl , constants . builderIdRegion )
29+ await auth . loginSso ( constants . builderIdStartUrl , constants . builderIdRegion )
3030 assert . ok ( auth . isConnected ( ) )
3131 assert . ok ( auth . isBuilderIdConnection ( ) )
3232 } )
3333
3434 it ( 'login with IDC' , async function ( ) {
35- await auth . login_sso ( 'https://example.awsapps.com/start' , 'us-east-1' )
35+ await auth . loginSso ( 'https://example.awsapps.com/start' , 'us-east-1' )
3636 assert . ok ( auth . isConnected ( ) )
3737 assert . ok ( auth . isIdcConnection ( ) )
3838 } )
3939
4040 it ( 'identifies internal users' , async function ( ) {
41- await auth . login_sso ( constants . internalStartUrl , 'us-east-1' )
41+ await auth . loginSso ( constants . internalStartUrl , 'us-east-1' )
4242 assert . ok ( auth . isInternalAmazonUser ( ) )
4343 } )
4444
4545 it ( 'identifies SSO session' , async function ( ) {
46- await auth . login_sso ( constants . internalStartUrl , 'us-east-1' )
46+ await auth . loginSso ( constants . internalStartUrl , 'us-east-1' )
4747 assert . strictEqual ( auth . isSsoSession ( ) , true )
4848 } )
4949
5050 it ( 'identifies non-SSO session' , async function ( ) {
51- await auth . login_iam ( 'accessKey' , 'secretKey' , 'sessionToken' )
51+ await auth . loginIam ( 'accessKey' , 'secretKey' , 'sessionToken' )
5252 assert . strictEqual ( auth . isSsoSession ( ) , false )
5353 } )
5454 } )
5555
5656 describe ( 'Token management' , function ( ) {
5757 it ( 'can get token when connected with SSO' , async function ( ) {
58- await auth . login_sso ( constants . builderIdStartUrl , constants . builderIdRegion )
58+ await auth . loginSso ( constants . builderIdStartUrl , constants . builderIdRegion )
5959 const token = await auth . getToken ( )
6060 assert . ok ( token )
6161 } )
@@ -68,14 +68,14 @@ describe('AuthUtil', async function () {
6868
6969 describe ( 'getTelemetryMetadata' , function ( ) {
7070 it ( 'returns valid metadata for BuilderId connection' , async function ( ) {
71- await auth . login_sso ( constants . builderIdStartUrl , constants . builderIdRegion )
71+ await auth . loginSso ( constants . builderIdStartUrl , constants . builderIdRegion )
7272 const metadata = await auth . getTelemetryMetadata ( )
7373 assert . strictEqual ( metadata . credentialSourceId , 'awsId' )
7474 assert . strictEqual ( metadata . credentialStartUrl , constants . builderIdStartUrl )
7575 } )
7676
7777 it ( 'returns valid metadata for IDC connection' , async function ( ) {
78- await auth . login_sso ( 'https://example.awsapps.com/start' , 'us-east-1' )
78+ await auth . loginSso ( 'https://example.awsapps.com/start' , 'us-east-1' )
7979 const metadata = await auth . getTelemetryMetadata ( )
8080 assert . strictEqual ( metadata . credentialSourceId , 'iamIdentityCenter' )
8181 assert . strictEqual ( metadata . credentialStartUrl , 'https://example.awsapps.com/start' )
@@ -96,7 +96,7 @@ describe('AuthUtil', async function () {
9696 } )
9797
9898 it ( 'returns BuilderId forms when using BuilderId' , async function ( ) {
99- await auth . login_sso ( constants . builderIdStartUrl , constants . builderIdRegion )
99+ await auth . loginSso ( constants . builderIdStartUrl , constants . builderIdRegion )
100100 const forms = await auth . getAuthFormIds ( )
101101 assert . deepStrictEqual ( forms , [ 'builderIdCodeWhisperer' ] )
102102 } )
@@ -112,13 +112,13 @@ describe('AuthUtil', async function () {
112112 } ,
113113 } )
114114
115- await auth . login_sso ( 'https://example.awsapps.com/start' , 'us-east-1' )
115+ await auth . loginSso ( 'https://example.awsapps.com/start' , 'us-east-1' )
116116 const forms = await auth . getAuthFormIds ( )
117117 assert . deepStrictEqual ( forms , [ 'identityCenterCodeWhisperer' ] )
118118 } )
119119
120120 it ( 'returns IDC forms with explorer when using IDC with SSO account access' , async function ( ) {
121- await auth . login_sso ( 'https://example.awsapps.com/start' , 'us-east-1' )
121+ await auth . loginSso ( 'https://example.awsapps.com/start' , 'us-east-1' )
122122 const session = ( auth as any ) . session
123123
124124 session &&
@@ -182,7 +182,7 @@ describe('AuthUtil', async function () {
182182 } )
183183
184184 it ( 'updates bearer token when state is refreshed' , async function ( ) {
185- await auth . login_sso ( constants . builderIdStartUrl , 'us-east-1' )
185+ await auth . loginSso ( constants . builderIdStartUrl , 'us-east-1' )
186186
187187 await ( auth as any ) . stateChangeHandler ( { state : 'refreshed' } )
188188
@@ -191,7 +191,7 @@ describe('AuthUtil', async function () {
191191 } )
192192
193193 it ( 'cleans up when connection expires' , async function ( ) {
194- await auth . login_sso ( constants . builderIdStartUrl , 'us-east-1' )
194+ await auth . loginSso ( constants . builderIdStartUrl , 'us-east-1' )
195195
196196 await ( auth as any ) . stateChangeHandler ( { state : 'expired' } )
197197
@@ -209,7 +209,7 @@ describe('AuthUtil', async function () {
209209 it ( 'updates bearer token and restores profile on reconnection' , async function ( ) {
210210 const restoreProfileSelectionSpy = sinon . spy ( regionProfileManager , 'restoreProfileSelection' )
211211
212- await auth . login_sso ( 'https://example.awsapps.com/start' , 'us-east-1' )
212+ await auth . loginSso ( 'https://example.awsapps.com/start' , 'us-east-1' )
213213
214214 await ( auth as any ) . stateChangeHandler ( { state : 'connected' } )
215215
@@ -221,7 +221,7 @@ describe('AuthUtil', async function () {
221221 const invalidateProfileSpy = sinon . spy ( regionProfileManager , 'invalidateProfile' )
222222 const clearCacheSpy = sinon . spy ( regionProfileManager , 'clearCache' )
223223
224- await auth . login_sso ( 'https://example.awsapps.com/start' , 'us-east-1' )
224+ await auth . loginSso ( 'https://example.awsapps.com/start' , 'us-east-1' )
225225
226226 await ( auth as any ) . stateChangeHandler ( { state : 'expired' } )
227227
@@ -410,7 +410,7 @@ describe('AuthUtil', async function () {
410410 } )
411411 } )
412412
413- describe ( 'login_iam ' , function ( ) {
413+ describe ( 'loginIam ' , function ( ) {
414414 it ( 'creates IAM session and logs in' , async function ( ) {
415415 const mockResponse = {
416416 id : 'test-credential-id' ,
@@ -431,7 +431,7 @@ describe('AuthUtil', async function () {
431431
432432 sinon . stub ( auth2 , 'IamLogin' ) . returns ( mockIamLogin as any )
433433
434- const response = await auth . login_iam ( 'accessKey' , 'secretKey' , 'sessionToken' )
434+ const response = await auth . loginIam ( 'accessKey' , 'secretKey' , 'sessionToken' )
435435
436436 assert . ok ( mockIamLogin . login . calledOnce )
437437 assert . ok (
0 commit comments