Skip to content

Commit

Permalink
[ML] Renable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Apr 20, 2021
1 parent 229b4fa commit ce159b0
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions x-pack/test/functional/apps/ml/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,49 +45,49 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
await ml.securityUI.logout();
});

// loadTestFile(require.resolve('./permissions'));
// loadTestFile(require.resolve('./pages'));
loadTestFile(require.resolve('./permissions'));
loadTestFile(require.resolve('./pages'));
loadTestFile(require.resolve('./anomaly_detection'));
// loadTestFile(require.resolve('./data_visualizer'));
// loadTestFile(require.resolve('./data_frame_analytics'));
loadTestFile(require.resolve('./data_visualizer'));
loadTestFile(require.resolve('./data_frame_analytics'));
});

// describe('', function () {
// this.tags('ciGroup13');
//
// before(async () => {
// await ml.securityCommon.createMlRoles();
// await ml.securityCommon.createMlUsers();
// });
//
// 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 ml.testResources.deleteIndexPatternByTitle('ft_module_sample_ecommerce');
// 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 esArchiver.unload('ml/module_sample_ecommerce');
// await ml.testResources.resetKibanaTimeZone();
// await ml.securityUI.logout();
// });
//
// loadTestFile(require.resolve('./feature_controls'));
// loadTestFile(require.resolve('./settings'));
// loadTestFile(require.resolve('./embeddables'));
// });
describe('', function () {
this.tags('ciGroup13');

before(async () => {
await ml.securityCommon.createMlRoles();
await ml.securityCommon.createMlUsers();
});

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 ml.testResources.deleteIndexPatternByTitle('ft_module_sample_ecommerce');
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 esArchiver.unload('ml/module_sample_ecommerce');
await ml.testResources.resetKibanaTimeZone();
await ml.securityUI.logout();
});

loadTestFile(require.resolve('./feature_controls'));
loadTestFile(require.resolve('./settings'));
loadTestFile(require.resolve('./embeddables'));
});
});
}

0 comments on commit ce159b0

Please sign in to comment.