mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[DOCS] Automates xMatters connector screenshots (#165922)
This commit is contained in:
parent
e34f9ce937
commit
c7ab78eeb8
6 changed files with 50 additions and 0 deletions
|
@ -3,6 +3,10 @@
|
|||
++++
|
||||
<titleabbrev>xMatters</titleabbrev>
|
||||
++++
|
||||
:frontmatter-description: Add a connector that can send alerts to xMatters.
|
||||
:frontmatter-tags-products: [kibana]
|
||||
:frontmatter-tags-content-type: [how-to]
|
||||
:frontmatter-tags-user-goals: [configure]
|
||||
|
||||
The xMatters connector uses the https://help.xmatters.com/integrations/#cshid=Elastic[xMatters Workflow for Elastic] to send actionable alerts to on-call xMatters resources.
|
||||
|
||||
|
@ -15,9 +19,11 @@ or as needed when you're creating a rule. You must choose between basic and URL
|
|||
|
||||
[role="screenshot"]
|
||||
image::management/connectors/images/xmatters-connector-basic.png[xMatters connector with basic authentication]
|
||||
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
|
||||
|
||||
[role="screenshot"]
|
||||
image::management/connectors/images/xmatters-connector-url.png[xMatters connector with url authentication]
|
||||
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
|
||||
|
||||
[float]
|
||||
[[xmatters-connector-configuration]]
|
||||
|
@ -90,6 +96,7 @@ as you're creating or editing the connector in {kib}. For example:
|
|||
|
||||
[role="screenshot"]
|
||||
image::management/connectors/images/xmatters-params-test.png[xMatters params test]
|
||||
// NOTE: This is an autogenerated screenshot. Do not edit it directly.
|
||||
|
||||
xMatters rules have the following properties:
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 182 KiB |
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 154 KiB |
Binary file not shown.
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 100 KiB |
|
@ -56,5 +56,6 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {
|
|||
loadTestFile(require.resolve('./connectors'));
|
||||
loadTestFile(require.resolve('./connector_types'));
|
||||
loadTestFile(require.resolve('./generative_ai_connector'));
|
||||
loadTestFile(require.resolve('./xmatters_connector'));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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 { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const commonScreenshots = getService('commonScreenshots');
|
||||
const screenshotDirectories = ['response_ops_docs', 'stack_connectors'];
|
||||
const pageObjects = getPageObjects(['common', 'header']);
|
||||
const actions = getService('actions');
|
||||
const testSubjects = getService('testSubjects');
|
||||
|
||||
describe('xmatters connector', function () {
|
||||
beforeEach(async () => {
|
||||
await pageObjects.common.navigateToApp('connectors');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
});
|
||||
|
||||
it('generative ai connector screenshots', async () => {
|
||||
await pageObjects.common.navigateToApp('connectors');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
await actions.common.openNewConnectorForm('xmatters');
|
||||
await testSubjects.setValue('nameInput', 'xMatters test connector');
|
||||
await commonScreenshots.takeScreenshot('xmatters-connector-basic', screenshotDirectories);
|
||||
const authentication = await testSubjects.find('button-group');
|
||||
// a radio button consists of a div tag that contains an input, a div, and a label
|
||||
// we can't click the input directly, need to click the label
|
||||
const label = await authentication.findByCssSelector('label[title="URL Authentication"]');
|
||||
await label.click();
|
||||
await commonScreenshots.takeScreenshot('xmatters-connector-url', screenshotDirectories);
|
||||
await testSubjects.setValue('secrets.secretsUrl', 'https://example.com');
|
||||
await testSubjects.click('create-connector-flyout-save-test-btn');
|
||||
await testSubjects.click('toastCloseButton');
|
||||
await commonScreenshots.takeScreenshot('xmatters-params-test', screenshotDirectories);
|
||||
await testSubjects.click('euiFlyoutCloseButton');
|
||||
});
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue