Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Inference preconfigured connector for EIS missing key #210953

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ xpack.dataUsage.enableExperimental: ['dataUsageDisabled']
xpack.stack_connectors.enableExperimental: ['inferenceConnectorOff']

# This is the definition introducing pre-configured Kibana Connector for Elastic default LLM
Elastic-Inference-Rainbow-Sprinkles:
xpack.actions.preconfigured:
Elastic-Inference-Rainbow-Sprinkles:
name: Elastic-Inference-Rainbow-Sprinkles
actionTypeId: .inference
exposeConfig: true
Expand Down
5 changes: 4 additions & 1 deletion x-pack/test/functional/services/actions/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ export function ActionsAPIServiceProvider({ getService }: FtrProviderContext) {
.get(`/api/actions/connectors`)
.set({ ...additionalRequestHeaders, 'kbn-xsrf': 'foo' })
.expect(200);

for (const connector of body) {
// preconfigured connectors cannot be deleted
if (connector.is_preconfigured) {
continue;
}
await this.deleteConnector(connector.id, additionalRequestHeaders);
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('server log connector screenshots', async () => {
await pageObjects.common.navigateToApp('connectors');
await pageObjects.header.waitUntilLoadingHasFinished();
await testSubjects.click('createFirstActionButton');
await testSubjects.click('createConnectorButton');
await testSubjects.click(`.server-log-card`);
await testSubjects.setValue('nameInput', 'Server log test connector');
await svlCommonScreenshots.takeScreenshot('serverlog-connector', screenshotDirectories);
Expand Down