mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 18:27:59 -04:00
## Summary This PR adds tiles for two connectors: - Jira Data Center - Confluence Data Center These connectors internally use same service types: `jira` and `confluence`. They re-use documentation for these connectors - it can be found in the same pages as for original Jira/Confluence connectors. The tiles are added to Enterprise Search connectors page + into integrations page. See screenshots. <img width="1217" alt="Screenshot 2024-02-21 at 14 10 20" src="da944de9
-828b-453b-ad38-1695ae3d557a"> <img width="1217" alt="Screenshot 2024-02-21 at 14 11 09" src="aaac975e
-e423-42a3-846b-628e9e673b5a"> ### Checklist Delete any items that are not applicable to this PR. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios\ ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@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(56);
|
|
|
|
// 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
|
|
});
|
|
});
|
|
});
|
|
}
|