Skip to content

Commit

Permalink
[Security Solution][Endpoint] Re enable endpoint permissions tests (e…
Browse files Browse the repository at this point in the history
…lastic#172540)

## Summary

Re-enable tests

closes elastic/issues/171649
closes elastic/issues/171650


## Flaky runner
-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4876
x 100 ( all pass )
### with all the FTR tests in the suite
-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4889
x 50 ( 25 fails due to timeout loading http://localhost:5620/app/home, 1
fail due to indexed data not being available for delete, rest are
skipped )
### with conditional delete of loaded data and start with login screen
(reorder)
-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4894
x 50 (all pass)

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
ashokaditya and kibanamachine authored Jan 17, 2024
1 parent 9746bab commit 267e627
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const testSubjects = getService('testSubjects');
const endpointTestResources = getService('endpointTestResources');

// FLAKY: https://github.com/elastic/kibana/issues/171649
// FLAKY: https://github.com/elastic/kibana/issues/171650
describe.skip('Endpoint permissions:', function () {
describe('Endpoint permissions:', function () {
targetTags(this, ['@ess']);

let indexedData: IndexedHostsAndAlertsResponse;
Expand All @@ -30,10 +28,20 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

// Force a logout so that we start from the login page
await PageObjects.security.forceLogout();

// ensure Security Solution is properly initialized
await PageObjects.security.login('system_indices_superuser', 'changeme');
await PageObjects.detections.navigateToAlerts();
await testSubjects.existOrFail('manage-alert-detection-rules');

// logout again
await PageObjects.security.forceLogout();
});

after(async () => {
await endpointTestResources.unloadEndpointData(indexedData);
if (indexedData) {
await endpointTestResources.unloadEndpointData(indexedData);
}
});

// Run the same set of tests against all of the Security Solution roles
Expand Down

0 comments on commit 267e627

Please sign in to comment.