Skip to content

Commit 2608f8b

Browse files
Merge branch 'master' into fix-alert-generator
2 parents 36898d9 + 8a554f8 commit 2608f8b

File tree

25 files changed

+807
-1545
lines changed

25 files changed

+807
-1545
lines changed

docs/settings/ingest-manager-settings.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
experimental[]
99

1010
You can configure `xpack.ingestManager` settings in your `kibana.yml`.
11-
By default, {ingest-manager} is not enabled. You need to enable it. To use
12-
{fleet}, you also need to configure {kib} and {es} hosts.
11+
By default, {ingest-manager} is not enabled. You need to
12+
enable it. To use {fleet}, you also need to configure {kib} and {es} hosts.
13+
14+
See the {ingest-guide}/index.html[Ingest Management] docs for more information.
1315

1416
[[general-ingest-manager-settings-kb]]
1517
==== General {ingest-manager} settings

packages/kbn-dev-utils/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ export { run, createFailError, createFlagError, combineErrors, isFailError, Flag
3737
export { REPO_ROOT } from './repo_root';
3838
export { KbnClient } from './kbn_client';
3939
export * from './axios';
40+
export * from './stdio';
4041
export * from './ci_stats_reporter';

packages/kbn-dev-utils/src/proc_runner/proc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { promisify } from 'util';
2929
const treeKillAsync = promisify((...args: [number, string, any]) => treeKill(...args));
3030

3131
import { ToolingLog } from '../tooling_log';
32-
import { observeLines } from './observe_lines';
32+
import { observeLines } from '../stdio';
3333
import { createCliError } from './errors';
3434

3535
const SECOND = 1000;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
export * from './observe_lines';
21+
export * from './observe_readable';

packages/kbn-test/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@kbn/test",
3-
"main": "./target/index.js",
43
"version": "1.0.0",
5-
"license": "Apache-2.0",
64
"private": true,
5+
"license": "Apache-2.0",
6+
"main": "./target/index.js",
77
"scripts": {
88
"build": "babel src --out-dir target --delete-dir-on-start --extensions .ts,.js,.tsx --ignore *.test.js,**/__tests__/** --source-maps=inline",
99
"kbn:bootstrap": "yarn build",
@@ -13,6 +13,7 @@
1313
"@babel/cli": "^7.10.1",
1414
"@kbn/babel-preset": "1.0.0",
1515
"@kbn/dev-utils": "1.0.0",
16+
"@types/joi": "^13.4.2",
1617
"@types/parse-link-header": "^1.0.0",
1718
"@types/puppeteer": "^3.0.0",
1819
"@types/strip-ansi": "^5.2.1",
@@ -23,12 +24,14 @@
2324
"chalk": "^2.4.2",
2425
"dedent": "^0.7.0",
2526
"del": "^5.1.0",
27+
"exit-hook": "^2.2.0",
2628
"getopts": "^2.2.4",
2729
"glob": "^7.1.2",
30+
"joi": "^13.5.2",
2831
"parse-link-header": "^1.0.1",
2932
"puppeteer": "^3.3.0",
30-
"strip-ansi": "^5.2.0",
3133
"rxjs": "^6.5.3",
34+
"strip-ansi": "^5.2.0",
3235
"tar-fs": "^1.16.3",
3336
"tmp": "^0.1.0",
3437
"xml2js": "^0.4.22",

packages/kbn-test/src/functional_test_runner/cli.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919

2020
import { resolve } from 'path';
2121
import { inspect } from 'util';
22+
2223
import { run, createFlagError, Flags } from '@kbn/dev-utils';
24+
import exitHook from 'exit-hook';
25+
2326
import { FunctionalTestRunner } from './functional_test_runner';
2427

2528
const makeAbsolutePath = (v: string) => resolve(process.cwd(), v);
@@ -92,8 +95,7 @@ export function runFtrCli() {
9295
err instanceof Error ? err : new Error(`non-Error type rejection value: ${inspect(err)}`)
9396
)
9497
);
95-
process.on('SIGTERM', () => teardown());
96-
process.on('SIGINT', () => teardown());
98+
exitHook(teardown);
9799

98100
try {
99101
if (flags['test-stats']) {

packages/kbn-test/src/functional_test_runner/functional_test_runner.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
readProviderSpec,
3030
setupMocha,
3131
runTests,
32+
DockerServersService,
3233
Config,
3334
SuiteTracker,
3435
} from './lib';
@@ -130,12 +131,19 @@ export class FunctionalTestRunner {
130131
throw new Error('No tests defined.');
131132
}
132133

134+
const dockerServers = new DockerServersService(
135+
config.get('dockerServers'),
136+
this.log,
137+
this.lifecycle
138+
);
139+
133140
// base level services that functional_test_runner exposes
134141
const coreProviders = readProviderSpec('Service', {
135142
lifecycle: () => this.lifecycle,
136143
log: () => this.log,
137144
failureMetadata: () => this.failureMetadata,
138145
config: () => config,
146+
dockerServers: () => dockerServers,
139147
});
140148

141149
return await handler(config, coreProviders);

packages/kbn-test/src/functional_test_runner/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
export { FunctionalTestRunner } from './functional_test_runner';
2121
export { readConfigFile } from './lib';
2222
export { runFtrCli } from './cli';
23+
export * from './lib/docker_servers';

0 commit comments

Comments
 (0)