Skip to content

Commit

Permalink
Add ML UI permission test files
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Sep 1, 2020
1 parent bc654fb commit eabe6d9
Show file tree
Hide file tree
Showing 5 changed files with 996 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x-pack/test/functional/apps/ml/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,28 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
after(async () => {
await ml.securityCommon.cleanMlUsers();
await ml.securityCommon.cleanMlRoles();

await ml.testResources.deleteSavedSearches();
await ml.testResources.deleteDashboards();

await ml.testResources.deleteIndexPatternByTitle('ft_farequote');
await ml.testResources.deleteIndexPatternByTitle('ft_ecommerce');
await ml.testResources.deleteIndexPatternByTitle('ft_categorization');
await ml.testResources.deleteIndexPatternByTitle('ft_event_rate_gen_trend_nanos');
await ml.testResources.deleteIndexPatternByTitle('ft_bank_marketing');
await ml.testResources.deleteIndexPatternByTitle('ft_ihp_outlier');
await ml.testResources.deleteIndexPatternByTitle('ft_egs_regression');

await esArchiver.unload('ml/farequote');
await esArchiver.unload('ml/ecommerce');
await esArchiver.unload('ml/categorization');
await esArchiver.unload('ml/event_rate_nanos');
await esArchiver.unload('ml/bm_classification');
await esArchiver.unload('ml/ihp_outlier');
await esArchiver.unload('ml/egs_regression');

await ml.testResources.resetKibanaTimeZone();
await ml.securityUI.logout();
});

loadTestFile(require.resolve('./feature_controls'));
loadTestFile(require.resolve('./permissions'));
loadTestFile(require.resolve('./pages'));
loadTestFile(require.resolve('./anomaly_detection'));
loadTestFile(require.resolve('./data_visualizer'));
Expand Down
Loading

0 comments on commit eabe6d9

Please sign in to comment.