Skip to content

Commit

Permalink
[Ingest]: ignore 404, check if there are transforms in results. (#80721)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamdifrankie authored and pzl committed Jan 21, 2021
1 parent 5cd8b04 commit 1fb9c7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ export const deleteTransforms = async (
// get the index the transform
const transformResponse: {
count: number;
transforms: Array<{
transforms?: Array<{
dest: {
index: string;
};
}>;
} = await callCluster('transport.request', {
method: 'GET',
path: `/_transform/${transformId}`,
ignore: [404],
});

await stopTransforms([transformId], callCluster);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ describe('test transform install', () => {
{
method: 'GET',
path: '/_transform/endpoint.metadata_current-default-0.15.0-dev.0',
ignore: [404],
},
],
[
Expand Down Expand Up @@ -450,6 +451,7 @@ describe('test transform install', () => {
{
method: 'GET',
path: '/_transform/endpoint.metadata-current-default-0.15.0-dev.0',
ignore: [404],
},
],
[
Expand Down

0 comments on commit 1fb9c7f

Please sign in to comment.