mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
# Backport This will backport the following commits from `main` to `8.13`: - [[Search] Fix native connector search results (#178003)](https://github.com/elastic/kibana/pull/178003) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Navarone Feekery","email":"13634519+navarone-feekery@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-03-06T08:34:12Z","message":"[Search] Fix native connector search results (#178003)\n\n## Summary\r\n\r\nThis fixes the search result to redirect to native connector pages if\r\nthe user is on cloud and the connector supports native. Otherwise the\r\nconnector page will be for a connector client.\r\n\r\nAlso consolidate the reference for connector integrations used for\r\nsearching the top search bar and the integrations page.\r\nThere's a lot of repetitiveness here, and because they are very similar\r\nin both use and design, it is ideal to have a single source of truth.","sha":"9262d96788dbf23c20f29b8f778accd862d07ca6","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.13.0","v8.14.0"],"title":"[Search] Fix native connector search results","number":178003,"url":"https://github.com/elastic/kibana/pull/178003","mergeCommit":{"message":"[Search] Fix native connector search results (#178003)\n\n## Summary\r\n\r\nThis fixes the search result to redirect to native connector pages if\r\nthe user is on cloud and the connector supports native. Otherwise the\r\nconnector page will be for a connector client.\r\n\r\nAlso consolidate the reference for connector integrations used for\r\nsearching the top search bar and the integrations page.\r\nThere's a lot of repetitiveness here, and because they are very similar\r\nin both use and design, it is ideal to have a single source of truth.","sha":"9262d96788dbf23c20f29b8f778accd862d07ca6"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178003","number":178003,"mergeCommit":{"message":"[Search] Fix native connector search results (#178003)\n\n## Summary\r\n\r\nThis fixes the search result to redirect to native connector pages if\r\nthe user is on cloud and the connector supports native. Otherwise the\r\nconnector page will be for a connector client.\r\n\r\nAlso consolidate the reference for connector integrations used for\r\nsearching the top search bar and the integrations page.\r\nThere's a lot of repetitiveness here, and because they are very similar\r\nin both use and design, it is ideal to have a single source of truth.","sha":"9262d96788dbf23c20f29b8f778accd862d07ca6"}}]}] BACKPORT--> Co-authored-by: Navarone Feekery <13634519+navarone-feekery@users.noreply.github.com>
47 lines
1.6 KiB
TypeScript
47 lines
1.6 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 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import expect from '@kbn/expect';
|
|
import { FtrProviderContext } from '../../ftr_provider_context';
|
|
|
|
export default function ({ getService }: FtrProviderContext) {
|
|
const supertest = getService('supertest');
|
|
|
|
describe('customIntegrations', () => {
|
|
describe('get list of append integrations', () => {
|
|
it('should return list of custom integrations that can be appended', async () => {
|
|
const resp = await supertest
|
|
.get(`/internal/customIntegrations/appendCustomIntegrations`)
|
|
.set('kbn-xsrf', 'kibana')
|
|
.expect(200);
|
|
|
|
expect(resp.body).to.be.an('array');
|
|
|
|
expect(resp.body.length).to.be(49);
|
|
|
|
// Test for sample data card
|
|
expect(resp.body.findIndex((c: { id: string }) => c.id === 'sample_data_all')).to.be.above(
|
|
-1
|
|
);
|
|
});
|
|
});
|
|
|
|
describe('get list of replacement integrations', () => {
|
|
it('should return list of custom integrations that can be used to replace EPR packages', async () => {
|
|
const resp = await supertest
|
|
.get(`/internal/customIntegrations/replacementCustomIntegrations`)
|
|
.set('kbn-xsrf', 'kibana')
|
|
.expect(200);
|
|
|
|
expect(resp.body).to.be.an('array');
|
|
|
|
expect(resp.body.length).to.be(109); // the beats
|
|
});
|
|
});
|
|
});
|
|
}
|