Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
cb949aa
fix logic for determining processor input
alisonelizabeth Aug 24, 2020
405278d
clean up workflow when adding/editing sample docs and rerunning simul…
alisonelizabeth Aug 25, 2020
74ba900
Merge branch 'master' of github.com:elastic/kibana into ingest_pipeli…
alisonelizabeth Aug 26, 2020
d05c366
add ability to simulate pipeline while editing processor config
alisonelizabeth Aug 27, 2020
0a2ea82
refactor test_pipeline_flyout with container component
alisonelizabeth Aug 29, 2020
65be40a
UX improvements
alisonelizabeth Aug 29, 2020
d55f580
Merge branch 'master' of github.com:elastic/kibana into ingest_pipeli…
alisonelizabeth Aug 31, 2020
5401173
cleanup
alisonelizabeth Sep 1, 2020
f48508d
more UX improvements
alisonelizabeth Sep 1, 2020
a684940
fix TS and update tests
alisonelizabeth Sep 2, 2020
9ac03c1
Merge branch 'master' of github.com:elastic/kibana into ingest_pipeli…
alisonelizabeth Sep 2, 2020
bad7913
fix i18n + cleanup
alisonelizabeth Sep 2, 2020
d8107bc
fix i18n + TS
alisonelizabeth Sep 2, 2020
9616142
Merge branch 'master' of github.com:elastic/kibana into ingest_pipeli…
alisonelizabeth Sep 4, 2020
53f278b
Merge branch 'master' of github.com:elastic/kibana into ingest_pipeli…
alisonelizabeth Sep 14, 2020
1aa0ef4
address review feedback
alisonelizabeth Sep 14, 2020
7f87c1a
address design feedback
alisonelizabeth Sep 15, 2020
b03f2d2
Merge branch 'master' into ingest_pipelines/polish
elasticmachine Sep 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const createActions = (testBed: TestBed<TestSubject>) => {
});
});
await act(async () => {
find('processorSettingsForm.submitButton').simulate('click');
find('addProcessorForm.submitButton').simulate('click');
});
},

Expand Down Expand Up @@ -166,7 +166,7 @@ const createActions = (testBed: TestBed<TestSubject>) => {
});
});
await act(async () => {
find('processorSettingsForm.submitButton').simulate('click');
find('addProcessorForm.submitButton').simulate('click');
});
},

Expand Down Expand Up @@ -202,8 +202,10 @@ type TestSubject =
| 'pipelineEditorDoneButton'
| 'pipelineEditorOnFailureToggle'
| 'addProcessorsButtonLevel1'
| 'processorSettingsForm'
| 'processorSettingsForm.submitButton'
| 'editProcessorForm'
| 'editProcessorForm.submitButton'
| 'addProcessorForm.submitButton'
| 'addProcessorForm'
| 'processorOptionsEditor'
| 'processorSettingsFormFlyout'
| 'processorTypeSelector'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ describe('Pipeline Editor', () => {
it('prevents moving a processor while in edit mode', () => {
const { find, exists } = testBed;
find('processors>0.manageItemButton').simulate('click');
expect(exists('processorSettingsForm')).toBe(true);
expect(exists('editProcessorForm')).toBe(true);
expect(find('processors>0.moveItemButton').props().disabled).toBe(true);
expect(find('processors>1.moveItemButton').props().disabled).toBe(true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ const createActions = (testBed: TestBed<TestSubject>) => {
component.update();
},

clickProcessorOutputTab() {
act(() => {
async clickProcessorOutputTab() {
await act(async () => {
find('outputTab').simulate('click');
});
component.update();
Expand Down Expand Up @@ -224,7 +224,8 @@ type TestSubject =
| 'processorStatusIcon'
| 'documentsTab'
| 'manageItemButton'
| 'processorSettingsForm'
| 'addProcessorForm'
| 'editProcessorForm'
| 'configurationTab'
| 'outputTab'
| 'processorOutputTabContent'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Test pipeline', () => {

describe('Test pipeline actions', () => {
it('should successfully add sample documents and execute the pipeline', async () => {
const { find, actions, exists } = testBed;
const { actions, exists } = testBed;

httpRequestsMockHelpers.setSimulatePipelineResponse(SIMULATE_RESPONSE);

Expand All @@ -59,7 +59,6 @@ describe('Test pipeline', () => {
expect(exists('testPipelineFlyout')).toBe(true);
expect(exists('documentsTabContent')).toBe(true);
expect(exists('outputTabContent')).toBe(false);
expect(find('outputTab').props().disabled).toEqual(true);

// Add sample documents and click run
actions.addDocumentsJson(JSON.stringify(DOCUMENTS));
Expand Down Expand Up @@ -89,21 +88,25 @@ describe('Test pipeline', () => {
});

// Verify output tab is active
expect(find('outputTab').props().disabled).toEqual(false);
expect(exists('documentsTabContent')).toBe(false);
expect(exists('outputTabContent')).toBe(true);

// Click reload button and verify request
const totalRequests = server.requests.length;
await actions.clickRefreshOutputButton();
expect(server.requests.length).toBe(totalRequests + 1);
// There will be two requests made to the simulate API
// the second request will have verbose enabled to update the processor results
expect(server.requests.length).toBe(totalRequests + 2);
expect(server.requests[server.requests.length - 2].url).toBe(
'/api/ingest_pipelines/simulate'
);
expect(server.requests[server.requests.length - 1].url).toBe(
'/api/ingest_pipelines/simulate'
);

// Click verbose toggle and verify request
await actions.toggleVerboseSwitch();
expect(server.requests.length).toBe(totalRequests + 2);
expect(server.requests.length).toBe(totalRequests + 3);
expect(server.requests[server.requests.length - 1].url).toBe(
'/api/ingest_pipelines/simulate'
);
Expand Down Expand Up @@ -228,10 +231,10 @@ describe('Test pipeline', () => {
// Click processor to open manage flyout
await actions.clickProcessor('processors>0');
// Verify flyout opened
expect(exists('processorSettingsForm')).toBe(true);
expect(exists('editProcessorForm')).toBe(true);

// Navigate to "Output" tab
actions.clickProcessorOutputTab();
await actions.clickProcessorOutputTab();
// Verify content
expect(exists('processorOutputTabContent')).toBe(true);
});
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

export {
ManageProcessorForm,
ManageProcessorFormOnSubmitArg,
OnSubmitHandler,
} from './manage_processor_form';
export { ProcessorForm, ProcessorFormOnSubmitArg, OnSubmitHandler } from './processor_form';

export { ProcessorsTree, ProcessorInfo, OnActionHandler } from './processors_tree';

Expand All @@ -22,6 +18,4 @@ export { OnDoneLoadJsonHandler, LoadFromJsonButton } from './load_from_json';

export { TestPipelineActions } from './test_pipeline';

export { DocumentsDropdown } from './documents_dropdown';

export { PipelineProcessorsItemTooltip, Position } from './pipeline_processors_editor_item_tooltip';

This file was deleted.

Loading