Skip to content

Commit

Permalink
New events resolver (#82170)
Browse files Browse the repository at this point in the history
* Added Test for event.library

* renamed data directry and gzip data file

* rename expectedData file

* Changes per Charlie request

* Changes for the enable_APM-ci branch

* Update resolver.ts

* Added comment per Charlie request

* Update resolver.ts

* Added Alert Test for Resolver and fix for the APM enabled Run fail

* Added Alert Test for Resolver and fix for the APM enabled Run fail

* removed commented out code

* Fixing CI fail

* Fixing CI fail

* Removed Alert Resolver test

* aAdding Alert test back

* Adding Alert test back

* Adding Alert test back

* Adding info log for debuging

* Adding info log for debuging

* Adding info log for debuging

* Adding info log for debuging

* Adding info log for debuging

* Adding info log for debuging

* adding one more verification for Data

* stripedd Data file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
IgorGuz2000 and kibanamachine authored Nov 9, 2020
1 parent 04c583e commit bf75831
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
Binary file not shown.
23 changes: 23 additions & 0 deletions x-pack/test/security_solution_endpoint/apps/endpoint/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,29 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
}
await pageObjects.hosts.runNodeEvents(expectedLibraryData);
});

it('Check Related Events for event.alert Node', async () => {
await esArchiver.load('empty_kibana');
await esArchiver.load('endpoint/resolver_tree/alert_events', { useCreate: true });
await queryBar.setQuery('');
await queryBar.submitQuery();
const expectedAlertData = [
'1 library',
'157 file',
'520 registry',
'3 file',
'5 library',
'5 library',
];
await pageObjects.hosts.navigateToEventsPanel();
await pageObjects.hosts.executeQueryAndOpenResolver('event.dataset : endpoint.alerts');
await (await testSubjects.find('resolver:graph-controls:zoom-out')).click();
await browser.setWindowSize(2100, 1500);
for (let i = 0; i < 2; i++) {
await (await testSubjects.find('resolver:graph-controls:east-button')).click();
}
await pageObjects.hosts.runNodeEvents(expectedAlertData);
});
});
});
}
1 change: 0 additions & 1 deletion x-pack/test/security_solution_endpoint/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
['securitySolutionManagement']: {
pathname: '/app/security/administration',
},
...xpackFunctionalConfig.get('apps'),
['security']: {
pathname: '/app/security',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ export function SecurityHostsPageProvider({ getService, getPageObjects }: FtrPro
for (let i = 0; i < NodeSubmenuItems.length; i++) {
await (await testSubjects.findAll('resolver:map:node-submenu-item'))[i].click();
const Events = await testSubjects.findAll('resolver:map:node-submenu-item');
// this sleep is for the AMP enabled run
await pageObjects.common.sleep(300);
const EventName = await Events[i]._webElement.getText();
const LinkText = await testSubjects.find('resolver:breadcrumbs:last');
const linkText = await LinkText._webElement.getText();
Expand Down

0 comments on commit bf75831

Please sign in to comment.