mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
## Summary Part of https://github.com/elastic/kibana-team/issues/1271 This PR introduces the first set of end to end integration test for the inference APIs, and the tooling required to do so (see issue for more context) - Add a dedicated pipeline for ai-infra GenAI tests. pipeline is triggered when: - genAI stack connectors, or ai-infra owned code is changed - when the `ci:all-gen-ai-suites` label is present on a PR - on merge - adapt the `ftr_configs.sh` script to load GenAI connector configuration from vault when a specific var env is set - create the `@kbn/gen-ai-functional-testing` package, which for now only contains utilities to load the GenAI connector configuration in FTR tests - Add FTR integration tests for the `chatComplete` API of the `inference` plugin --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import type { FtrConfigProviderContext } from '@kbn/test';
|
|
import { getPreconfiguredConnectorConfig } from '@kbn/gen-ai-functional-testing';
|
|
import { services } from './ftr_provider_context';
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const xpackFunctionalConfig = await readConfigFile(
|
|
require.resolve('../../functional/config.base.js')
|
|
);
|
|
|
|
const preconfiguredConnectors = getPreconfiguredConnectorConfig();
|
|
|
|
return {
|
|
...xpackFunctionalConfig.getAll(),
|
|
services,
|
|
testFiles: [require.resolve('./tests')],
|
|
kbnTestServer: {
|
|
...xpackFunctionalConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xpackFunctionalConfig.get('kbnTestServer.serverArgs'),
|
|
`--xpack.actions.preconfigured=${JSON.stringify(preconfiguredConnectors)}`,
|
|
],
|
|
},
|
|
};
|
|
}
|