Skip to content

Commit

Permalink
[Fix] Inference preconfigured connector for EIS missing key (elastic#…
Browse files Browse the repository at this point in the history
…210953)

Bug in configuration of the connector definition.
  • Loading branch information
YulNaumenko authored Feb 20, 2025
1 parent 7597353 commit ab4f043
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
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

0 comments on commit ab4f043

Please sign in to comment.