Skip to content

Commit

Permalink
[Stack monitoring] Fix logstash functional tests for react (#114819)
Browse files Browse the repository at this point in the history
* update logstash pipelines test subject

* Add sorting to table options for pipelines table

* fix sorting in logstash node pipelines table

* remove commented code
  • Loading branch information
estermv authored Oct 14, 2021
1 parent b64604a commit 32f650f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const LogStashNodePipelinesPage: React.FC<ComponentProps> = ({ clusters }

const getPageData = useCallback(async () => {
const bounds = services.data?.query.timefilter.timefilter.getBounds();
const options: any = getPaginationRouteOptions();
const url = `../api/monitoring/v1/clusters/${clusterUuid}/logstash/node/${match.params.uuid}/pipelines`;
const response = await services.http?.fetch(url, {
method: 'POST',
Expand All @@ -68,8 +67,7 @@ export const LogStashNodePipelinesPage: React.FC<ComponentProps> = ({ clusters }
min: bounds.min.toISOString(),
max: bounds.max.toISOString(),
},
pagination: options.pagination,
queryText: options.queryText,
...getPaginationRouteOptions(),
}),
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export const LogStashPipelinesPage: React.FC<ComponentProps> = ({ clusters }) =>
const bounds = services.data?.query.timefilter.timefilter.getBounds();
const url = `../api/monitoring/v1/clusters/${clusterUuid}/logstash/pipelines`;

const options: any = getPaginationRouteOptions();
const response = await services.http?.fetch(url, {
method: 'POST',
body: JSON.stringify({
Expand All @@ -55,8 +54,7 @@ export const LogStashPipelinesPage: React.FC<ComponentProps> = ({ clusters }) =>
min: bounds.min.toISOString(),
max: bounds.max.toISOString(),
},
pagination: options.pagination,
queryText: options.queryText,
...getPaginationRouteOptions(),
}),
});

Expand Down Expand Up @@ -96,10 +94,10 @@ export const LogStashPipelinesPage: React.FC<ComponentProps> = ({ clusters }) =>
title={title}
pageTitle={pageTitle}
getPageData={getPageData}
data-test-subj="elasticsearchOverviewPage"
data-test-subj="logstashPipelinesListing"
cluster={cluster}
>
<div data-test-subj="elasticsearchOverviewPage">{renderOverview(data)}</div>
<div data-test-subj="logstashPipelinesListing">{renderOverview(data)}</div>
</LogstashTemplate>
);
};
Expand Down
4 changes: 0 additions & 4 deletions x-pack/test/functional/apps/monitoring/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export default function ({ loadTestFile }) {
loadTestFile(require.resolve('./kibana/instance'));
loadTestFile(require.resolve('./kibana/instance_mb'));

// loadTestFile(require.resolve('./logstash/overview'));
// loadTestFile(require.resolve('./logstash/nodes'));
// loadTestFile(require.resolve('./logstash/node'));

loadTestFile(require.resolve('./logstash/pipelines'));
loadTestFile(require.resolve('./logstash/pipelines_mb'));

Expand Down

0 comments on commit 32f650f

Please sign in to comment.