Skip to content

Commit 65ceb90

Browse files
committed
inline deprecations in kbn-test
1 parent 71b9ded commit 65ceb90

File tree

2 files changed

+8
-35
lines changed

2 files changed

+8
-35
lines changed

packages/kbn-test/src/functional_test_runner/lib/config/read_config_file.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
*/
1919

2020
import { ToolingLog } from '@kbn/dev-utils';
21-
import { defaultsDeep } from 'lodash';
21+
import { get, unset, defaultsDeep } from 'lodash';
2222

2323
import { Config } from './config';
24-
import { transformDeprecations } from './transform_deprecations';
2524

2625
const cache = new WeakMap();
2726

@@ -53,7 +52,13 @@ async function getSettingsFromFile(log: ToolingLog, path: string, settingOverrid
5352
);
5453

5554
const logDeprecation = (error: string | Error) => log.error(error);
56-
return transformDeprecations(settingsWithDefaults, logDeprecation);
55+
56+
if (get(settingsWithDefaults, 'servers.webdriver') !== undefined) {
57+
logDeprecation('servers.webdriver is deprecated and is no longer used');
58+
unset(settingsWithDefaults, 'servers.webdriver');
59+
}
60+
61+
return settingsWithDefaults;
5762
}
5863

5964
export async function readConfigFile(log: ToolingLog, path: string, settingOverrides: any = {}) {

packages/kbn-test/src/functional_test_runner/lib/config/transform_deprecations.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)