Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(internal): apply host-rules in http module #6501

Merged
merged 9 commits into from Jun 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/datasource/docker/__snapshots__/index.spec.ts.snap
Expand Up @@ -152,6 +152,7 @@ exports[`api/docker getReleases adds library/ prefix for Docker Hub (implicit) 1
Array [
"https://index.docker.io/v2/",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand Down Expand Up @@ -416,6 +417,7 @@ exports[`api/docker getReleases uses custom registry in depName 1`] = `
Array [
"https://registry.company.com/v2/",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -432,6 +434,7 @@ exports[`api/docker getReleases uses custom registry in depName 1`] = `
Array [
"https://registry.company.com/v2/node/tags/list?n=10000",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -448,6 +451,7 @@ exports[`api/docker getReleases uses custom registry in depName 1`] = `
Array [
"https://registry.company.com/v2/",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand Down Expand Up @@ -493,6 +497,7 @@ Array [
Array [
"https://registry.company.com/v2/",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -509,6 +514,7 @@ Array [
Array [
"https://registry.company.com/v2/node/tags/list?n=10000",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -525,6 +531,7 @@ Array [
Array [
"https://api.github.com/user/9287/repos?page=3&per_page=100",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -541,6 +548,7 @@ Array [
Array [
"https://registry.company.com/v2/",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -557,6 +565,7 @@ Array [
Array [
"https://registry.company.com/v2/node/manifests/latest",
Object {
"auth": "some-username:some-password",
"headers": Object {
"accept": "application/vnd.docker.distribution.manifest.v2+json",
"user-agent": "https://github.com/renovatebot/renovate",
Expand All @@ -579,6 +588,7 @@ exports[`api/docker getReleases uses lower tag limit for ECR deps 1`] = `
Array [
"https://123456789.dkr.ecr.us-east-1.amazonaws.com/v2/",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -595,6 +605,7 @@ exports[`api/docker getReleases uses lower tag limit for ECR deps 1`] = `
Array [
"https://123456789.dkr.ecr.us-east-1.amazonaws.com/v2/node/tags/list?n=1000",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand All @@ -611,6 +622,7 @@ exports[`api/docker getReleases uses lower tag limit for ECR deps 1`] = `
Array [
"https://123456789.dkr.ecr.us-east-1.amazonaws.com/v2/",
Object {
"auth": "some-username:some-password",
"headers": Object {
"user-agent": "https://github.com/renovatebot/renovate",
},
Expand Down
1 change: 1 addition & 0 deletions lib/datasource/maven/index.spec.ts
Expand Up @@ -37,6 +37,7 @@ describe('datasource/maven', () => {
hostName: 'frontend_for_private_s3_repository',
username: 'username',
password: 'password',
timeout: 20000,
});
jest.resetAllMocks();
nock.cleanAll();
Expand Down
1 change: 1 addition & 0 deletions lib/manager/cargo/artifacts.spec.ts
Expand Up @@ -12,6 +12,7 @@ import * as cargo from './artifacts';
jest.mock('fs-extra');
jest.mock('child_process');
jest.mock('../../util/exec/env');
jest.mock('../../util/http');

const fs: jest.Mocked<typeof _fs> = _fs as any;
const exec: jest.Mock<typeof _exec> = _exec as any;
Expand Down
1 change: 1 addition & 0 deletions lib/manager/gomod/artifacts.spec.ts
Expand Up @@ -15,6 +15,7 @@ jest.mock('fs-extra');
jest.mock('child_process');
jest.mock('../../util/exec/env');
jest.mock('../../util/host-rules');
jest.mock('../../util/http');

const fs: jest.Mocked<typeof _fs> = _fs as any;
const exec: jest.Mock<typeof _exec> = _exec as any;
Expand Down
1 change: 1 addition & 0 deletions lib/manager/pipenv/artifacts.spec.ts
Expand Up @@ -14,6 +14,7 @@ jest.mock('fs-extra');
jest.mock('child_process');
jest.mock('../../util/exec/env');
jest.mock('../../util/host-rules');
jest.mock('../../util/http');

const fs: jest.Mocked<typeof _fs> = _fs as any;
const exec: jest.Mock<typeof _exec> = _exec as any;
Expand Down