Skip to content

Commit 869c0e7

Browse files
committed
update proxy-url tests
1 parent 9f3bcd3 commit 869c0e7

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/config_test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ describe('KubeConfig', () => {
412412
const opts = {} as requestlib.Options;
413413

414414
await kc.applyToRequest(opts);
415-
console.log(opts);
416415

417416
expect(opts).to.deep.equal({
418417
headers: {},
@@ -427,9 +426,7 @@ describe('KubeConfig', () => {
427426
kc.loadFromFile(kcProxyUrl);
428427

429428
const opts = {} as requestlib.Options;
430-
431429
await kc.applyToRequest(opts);
432-
433430
expect(opts.agent).to.exist;
434431
});
435432
});

testdata/kubeconfig-proxy-url.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ clusters:
33
- cluster:
44
certificate-authority-data: Q0FEQVRA
55
server: http://example2.com
6-
proxy-url: https://example:1187
6+
proxy-url: socks://example:1187
77
name: clusterA
88

99
contexts:

testdata/kubeconfig.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ clusters:
99
certificate-authority-data: Q0FEQVRBMg==
1010
server: http://example2.com
1111
insecure-skip-tls-verify: true
12-
proxy-url: socks5://example2:8888
1312
name: cluster2
1413

1514
contexts:

0 commit comments

Comments
 (0)