Skip to content

Commit 5ae6ad8

Browse files
committed
Fixed format for azure_auth_test.ts
1 parent 14d2055 commit 5ae6ad8

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

src/azure_auth_test.ts

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -169,23 +169,22 @@ describe('AzureAuth', () => {
169169
});
170170

171171
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);
189188
});
190189

191190
it('should exec with expired token', async () => {

0 commit comments

Comments
 (0)