Skip to content

Commit

Permalink
[Monitoring] Fix newly added cloud link (#89067) (#89257)
Browse files Browse the repository at this point in the history
* Fix cloud link

* Update link

* Fix tests

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
chrisronline and kibanamachine authored Jan 26, 2021
1 parent c41f1be commit b4a94a7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import React from 'react';
import { EuiText, EuiTextColor, EuiLink } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { Legacy } from '../../../legacy_shims';

export const CloudDeployment = () => {
const { ELASTIC_WEBSITE_URL } = Legacy.shims.docLinks;
return (
<EuiTextColor color="subdued">
<EuiText>
Expand All @@ -32,7 +34,7 @@ export const CloudDeployment = () => {
defaultMessage="section for a deployment to configure monitoring. For more information visit "
/>
<EuiLink
href="https://www.elastic.co/guide/en/cloud/current/ec-enable-monitoring.html"
href={`${ELASTIC_WEBSITE_URL}guide/en/cloud/current/ec-enable-logging-and-monitoring.html`}
target="_blank"
>
the documentation page.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import React from 'react';
import { renderWithIntl } from '@kbn/test/jest';
import { ExplainExporters, ExplainExportersCloud } from './exporters';

jest.mock('../../../../legacy_shims', () => ({
Legacy: {
shims: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
},
},
},
}));

describe('ExplainExporters', () => {
test('should explain about xpack.monitoring.exporters setting', () => {
const reason = {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import React from 'react';
import { renderWithIntl } from '@kbn/test/jest';
import { ReasonFound } from '.';

jest.mock('../../../legacy_shims', () => ({
Legacy: {
shims: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
},
},
},
}));

const enabler = {};

describe('ReasonFound', () => {
Expand Down

0 comments on commit b4a94a7

Please sign in to comment.