From 000598cfa3f93edab516231d8399c9f0ed065387 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 2 Jun 2022 21:20:34 +0200 Subject: [PATCH] refactor: Revert "refactor: add option endpoint to global config (#15843)" --- lib/config/global.ts | 1 - lib/config/types.ts | 2 -- lib/workers/repository/index.spec.ts | 11 +---------- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/config/global.ts b/lib/config/global.ts index 23eae864f9..ea336e2578 100644 --- a/lib/config/global.ts +++ b/lib/config/global.ts @@ -23,7 +23,6 @@ export class GlobalConfig { 'privateKey', 'privateKeyOld', 'gitTimeout', - 'endpoint', ]; private static config: RepoGlobalConfig = {}; diff --git a/lib/config/types.ts b/lib/config/types.ts index 4c70d89b68..739c606e32 100644 --- a/lib/config/types.ts +++ b/lib/config/types.ts @@ -95,7 +95,6 @@ export interface GlobalOnlyConfig { privateKeyPathOld?: string; redisUrl?: string; repositories?: RenovateRepository[]; - endpoint?: string; } // Config options used within the repository worker, but not user configurable @@ -121,7 +120,6 @@ export interface RepoGlobalConfig { privateKeyOld?: string; localDir?: string; cacheDir?: string; - endpoint?: string; } export interface LegacyAdminConfig { diff --git a/lib/workers/repository/index.spec.ts b/lib/workers/repository/index.spec.ts index f2f0f982a1..67f5578a27 100644 --- a/lib/workers/repository/index.spec.ts +++ b/lib/workers/repository/index.spec.ts @@ -19,6 +19,7 @@ describe('workers/repository/index', () => { beforeEach(() => { config = getConfig(); + GlobalConfig.set({ localDir: '' }); }); it('runs', async () => { @@ -26,15 +27,5 @@ describe('workers/repository/index', () => { const res = await renovateRepository(config); expect(res).toBeUndefined(); }); - - it('shows endpoint', async () => { - process.extractDependencies.mockResolvedValue(mock<ExtractResult>()); - const res = await renovateRepository({ - ...config, - endpoint: 'https://github.com', - }); - expect(GlobalConfig.get().endpoint).toBe('https://github.com'); - expect(res).toBeUndefined(); - }); }); }); -- GitLab