Skip to content

Commit

Permalink
changes based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Oct 3, 2022
1 parent 77dd172 commit d3e417a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default ({ getService }: FtrProviderContext) => {
const adJobId = 'fq_single';
const idSpace1 = 'space1';
const idSpace2 = 'space2';
const defaultSpaceId = 'default';

const jobQuery = {
size: 1,
Expand Down Expand Up @@ -53,7 +52,6 @@ export default ({ getService }: FtrProviderContext) => {

describe('POST results/anomaly_search', () => {
before(async () => {
await ml.api.cleanMlIndices();
await ml.testResources.setKibanaTimeZoneToUTC();
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote');

Expand All @@ -63,11 +61,10 @@ export default ({ getService }: FtrProviderContext) => {

await ml.api.createAndRunAnomalyDetectionLookbackJob(
ml.commonConfig.getADFqSingleMetricJobConfig(adJobId),
ml.commonConfig.getADFqDatafeedConfig(adJobId)
ml.commonConfig.getADFqDatafeedConfig(adJobId),
idSpace1
);
// reassign spaces for job
await ml.api.updateJobSpaces(adJobId, 'anomaly-detector', [idSpace1], []);
await ml.api.assertJobSpaces(adJobId, 'anomaly-detector', [defaultSpaceId, idSpace1]);
await ml.api.assertJobSpaces(adJobId, 'anomaly-detector', [idSpace1]);
});

after(async () => {
Expand Down

0 comments on commit d3e417a

Please sign in to comment.