@@ -45,11 +45,11 @@ describe('Testing all functions in run file.', () => {
4545 ( arch ) => {
4646 jest . spyOn ( os , 'type' ) . mockReturnValue ( 'Linux' )
4747 const iamAuthLinuxUrl = util . format (
48- 'https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.6.2 /aws-iam-authenticator_0.6.2_linux_ %s' ,
48+ 'https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.7.12 /aws-iam-authenticator_0.7.12_linux_ %s' ,
4949 arch
5050 )
5151
52- expect ( getiamAuthDownloadURL ( '0.6.2 ' , arch ) ) . toBe ( iamAuthLinuxUrl )
52+ expect ( getiamAuthDownloadURL ( '0.7.12 ' , arch ) ) . toBe ( iamAuthLinuxUrl )
5353 expect ( os . type ) . toBeCalled ( )
5454 }
5555 )
@@ -59,11 +59,11 @@ describe('Testing all functions in run file.', () => {
5959 ( arch ) => {
6060 jest . spyOn ( os , 'type' ) . mockReturnValue ( 'Darwin' )
6161 const iamAuthDarwinUrl = util . format (
62- 'https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.6.2 /aws-iam-authenticator_0.6.2_darwin_ %s' ,
62+ 'https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.7.12 /aws-iam-authenticator_0.7.12_darwin_ %s' ,
6363 arch
6464 )
6565
66- expect ( getiamAuthDownloadURL ( '0.6.2 ' , arch ) ) . toBe ( iamAuthDarwinUrl )
66+ expect ( getiamAuthDownloadURL ( '0.7.12 ' , arch ) ) . toBe ( iamAuthDarwinUrl )
6767 expect ( os . type ) . toBeCalled ( )
6868 }
6969 )
@@ -74,10 +74,10 @@ describe('Testing all functions in run file.', () => {
7474 jest . spyOn ( os , 'type' ) . mockReturnValue ( 'Windows_NT' )
7575
7676 const iamAuthWindowsUrl = util . format (
77- 'https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.6.2 /aws-iam-authenticator_0.6.2_windows_ %s.exe' ,
77+ 'https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.7.12 /aws-iam-authenticator_0.7.12_windows_ %s.exe' ,
7878 arch
7979 )
80- expect ( getiamAuthDownloadURL ( '0.6.2 ' , arch ) ) . toBe ( iamAuthWindowsUrl )
80+ expect ( getiamAuthDownloadURL ( '0.7.12 ' , arch ) ) . toBe ( iamAuthWindowsUrl )
8181 expect ( os . type ) . toBeCalled ( )
8282 }
8383 )
@@ -86,9 +86,9 @@ describe('Testing all functions in run file.', () => {
8686 jest
8787 . spyOn ( toolCache , 'downloadTool' )
8888 . mockReturnValue ( Promise . resolve ( 'pathToTool' ) )
89- jest . spyOn ( fs , 'readFileSync' ) . mockReturnValue ( '{"tag_name":"v0.6.2 "}' )
89+ jest . spyOn ( fs , 'readFileSync' ) . mockReturnValue ( '{"tag_name":"v0.7.12 "}' )
9090
91- expect ( await run . getStableiamAuthVersion ( ) ) . toBe ( '0.6.2 ' )
91+ expect ( await run . getStableiamAuthVersion ( ) ) . toBe ( '0.7.12 ' )
9292 expect ( toolCache . downloadTool ) . toBeCalled ( )
9393 expect ( fs . readFileSync ) . toBeCalledWith ( 'pathToTool' , 'utf8' )
9494 } )
@@ -124,10 +124,10 @@ describe('Testing all functions in run file.', () => {
124124 jest . spyOn ( os , 'type' ) . mockReturnValue ( 'Windows_NT' )
125125 jest . spyOn ( fs , 'chmodSync' ) . mockImplementation ( ( ) => { } )
126126
127- expect ( await run . downloadiamAuth ( '0.6.2 ' ) ) . toBe (
127+ expect ( await run . downloadiamAuth ( '0.7.12 ' ) ) . toBe (
128128 path . join ( 'pathToCachedTool' , 'aws-iam-authenticator.exe' )
129129 )
130- expect ( toolCache . find ) . toBeCalledWith ( 'aws-iam-authenticator' , '0.6.2 ' )
130+ expect ( toolCache . find ) . toBeCalledWith ( 'aws-iam-authenticator' , '0.7.12 ' )
131131 expect ( toolCache . downloadTool ) . toBeCalled ( )
132132 expect ( toolCache . cacheFile ) . toBeCalled ( )
133133 expect ( os . type ) . toBeCalled ( )
@@ -143,10 +143,10 @@ describe('Testing all functions in run file.', () => {
143143 . spyOn ( toolCache , 'downloadTool' )
144144 . mockRejectedValue ( 'Unable to download aws-iam-authenticator.' )
145145
146- await expect ( run . downloadiamAuth ( '0.6.2 ' ) ) . rejects . toThrow (
146+ await expect ( run . downloadiamAuth ( '0.7.12 ' ) ) . rejects . toThrow (
147147 'DownloadiamAuthFailed'
148148 )
149- expect ( toolCache . find ) . toBeCalledWith ( 'aws-iam-authenticator' , '0.6.2 ' )
149+ expect ( toolCache . find ) . toBeCalledWith ( 'aws-iam-authenticator' , '0.7.12 ' )
150150 expect ( toolCache . downloadTool ) . toBeCalled ( )
151151 } )
152152
@@ -181,10 +181,10 @@ describe('Testing all functions in run file.', () => {
181181 jest . spyOn ( fs , 'chmodSync' ) . mockImplementation ( ( ) => { } )
182182 jest . spyOn ( toolCache , 'downloadTool' )
183183
184- expect ( await run . downloadiamAuth ( '0.6.2 ' ) ) . toBe (
184+ expect ( await run . downloadiamAuth ( '0.7.12 ' ) ) . toBe (
185185 path . join ( 'pathToCachedTool' , 'aws-iam-authenticator.exe' )
186186 )
187- expect ( toolCache . find ) . toBeCalledWith ( 'aws-iam-authenticator' , '0.6.2 ' )
187+ expect ( toolCache . find ) . toBeCalledWith ( 'aws-iam-authenticator' , '0.7.12 ' )
188188 expect ( os . type ) . toBeCalled ( )
189189 expect ( fs . chmodSync ) . toBeCalledWith (
190190 path . join ( 'pathToCachedTool' , 'aws-iam-authenticator.exe' ) ,
@@ -194,7 +194,7 @@ describe('Testing all functions in run file.', () => {
194194 } )
195195
196196 test ( 'run() - download specified version and set output' , async ( ) => {
197- jest . spyOn ( core , 'getInput' ) . mockReturnValue ( '0.6.2 ' )
197+ jest . spyOn ( core , 'getInput' ) . mockReturnValue ( '0.7.12 ' )
198198 jest . spyOn ( toolCache , 'find' ) . mockReturnValue ( 'pathToCachedTool' )
199199 jest . spyOn ( os , 'type' ) . mockReturnValue ( 'Windows_NT' )
200200 jest . spyOn ( fs , 'chmodSync' ) . mockImplementation ( )
@@ -216,7 +216,7 @@ describe('Testing all functions in run file.', () => {
216216 jest
217217 . spyOn ( toolCache , 'downloadTool' )
218218 . mockReturnValue ( Promise . resolve ( 'pathToTool' ) )
219- jest . spyOn ( fs , 'readFileSync' ) . mockReturnValue ( '{"tag_name":"v0.6.2 "}' )
219+ jest . spyOn ( fs , 'readFileSync' ) . mockReturnValue ( '{"tag_name":"v0.7.12 "}' )
220220 jest . spyOn ( toolCache , 'find' ) . mockReturnValue ( 'pathToCachedTool' )
221221 jest . spyOn ( os , 'type' ) . mockReturnValue ( 'Windows_NT' )
222222 jest . spyOn ( fs , 'chmodSync' ) . mockImplementation ( )
0 commit comments