Skip to content

Commit

Permalink
[aiops] Fix ML references.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Aug 10, 2022
1 parent 02fb0fc commit 5b14409
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion x-pack/test/functional/apps/aiops/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
...functionalConfig.getAll(),
testFiles: [require.resolve('.')],
junit: {
reportName: 'Chrome X-Pack UI Functional Tests - ML aiops',
reportName: 'Chrome X-Pack UI Functional Tests - aiops',
},
};
}
8 changes: 5 additions & 3 deletions x-pack/test/functional/apps/aiops/explain_log_rate_spikes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@

import type { FtrProviderContext } from '../../ftr_provider_context';
import type { TestData } from './types';
import { farequoteDataViewTestData } from '../ml/data_visualizer/index_test_data';
import { farequoteDataViewTestData } from './test_data';

export default function ({ getPageObject, getService }: FtrProviderContext) {
const headerPage = getPageObject('header');
const esArchiver = getService('esArchiver');
const aiops = getService('aiops');

// aiops / Explain Log Rate Spikes lives in the ML UI so we need some related services.
const ml = getService('ml');

function runTests(testData: TestData) {
Expand Down Expand Up @@ -57,8 +59,8 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
});
}

describe('index based', function () {
this.tags(['ml']);
describe('explain log rate spikes', function () {
this.tags(['aiops']);
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote');

Expand Down
6 changes: 4 additions & 2 deletions x-pack/test/functional/apps/aiops/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import type { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ getService, loadTestFile }: FtrProviderContext) {
const esArchiver = getService('esArchiver');

// aiops / Explain Log Rate Spikes lives in the ML UI so we need some related services.
const ml = getService('ml');

describe('machine learning - aiops', function () {
this.tags(['skipFirefox', 'ml', 'walterra']);
describe('aiops', function () {
this.tags(['skipFirefox', 'aiops']);

before(async () => {
await ml.securityCommon.createMlRoles();
Expand Down

0 comments on commit 5b14409

Please sign in to comment.