File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -169,23 +169,22 @@ describe('AzureAuth', () => {
169
169
} ) ;
170
170
171
171
it ( 'should exec when no cmd and token is not expired' , async ( ) => {
172
- const config = new KubeConfig ( ) ;
173
- const expireOn = ( new Date ( ) . getTime ( ) / 1000 ) + 1000 ;
174
- console . log ( 'expireOn' , expireOn )
175
- config . loadFromClusterAndUser (
176
- { skipTLSVerify : false } as Cluster ,
177
- {
178
- authProvider : {
179
- name : 'azure' ,
180
- config : {
181
- 'access-token' : 'token' ,
182
- 'expires-on' : expireOn . toString ( ) ,
183
- } ,
184
- } ,
185
- } as User ,
186
- ) ;
187
- const opts = { } as requestlib . Options ;
188
- await config . applyToRequest ( opts ) ;
172
+ const config = new KubeConfig ( ) ;
173
+ const expireOn = new Date ( ) . getTime ( ) / 1000 + 1000 ;
174
+ config . loadFromClusterAndUser (
175
+ { skipTLSVerify : false } as Cluster ,
176
+ {
177
+ authProvider : {
178
+ name : 'azure' ,
179
+ config : {
180
+ 'access-token' : 'token' ,
181
+ 'expires-on' : expireOn . toString ( ) ,
182
+ } ,
183
+ } ,
184
+ } as User ,
185
+ ) ;
186
+ const opts = { } as requestlib . Options ;
187
+ await config . applyToRequest ( opts ) ;
189
188
} ) ;
190
189
191
190
it ( 'should exec with expired token' , async ( ) => {
You can’t perform that action at this time.
0 commit comments