Skip to content

Commit 7c967ce

Browse files
committed
Add Scout API tests
1 parent 707c5a2 commit 7c967ce

18 files changed

Lines changed: 359 additions & 6 deletions

File tree

.buildkite/scout_ci_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ packages:
7777
enabled:
7878
- core
7979
- kbn-scout
80+
- kbn-security-hardening
8081
- kbn-streamlang-tests
8182
- user-storage
8283
disabled:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/observability_complete.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/observability_logs_essentials.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/search.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/security_complete.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/security_ease.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/security_essentials.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/vectordb.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import { servers as defaultConfig } from '../../default/serverless/workplaceai.serverless.config';
13+
import type { ScoutServerConfig } from '../../../../../types';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
import { resolve } from 'path';
11+
import { REPO_ROOT } from '@kbn/repo-info';
12+
import type { ScoutServerConfig } from '../../../../../types';
13+
import { defaultConfig } from '../../default/stateful/base.config';
14+
15+
const pluginPath = `--plugin-path=${resolve(
16+
REPO_ROOT,
17+
'src/platform/test/plugin_functional/plugins/hardening'
18+
)}`;
19+
20+
export const servers: ScoutServerConfig = {
21+
...defaultConfig,
22+
kbnTestServer: {
23+
...defaultConfig.kbnTestServer,
24+
serverArgs: [...defaultConfig.kbnTestServer.serverArgs, pluginPath],
25+
},
26+
};

0 commit comments

Comments
 (0)