Skip to content

Commit

Permalink
[ML] Fixing broken test due to job_type 7.17 (#179604)
Browse files Browse the repository at this point in the history
Removes `job_type` from test data, similar to
#178715

Fixes #179167
Fixes #179181
  • Loading branch information
jgowdyelastic authored Mar 28, 2024
1 parent 2e3e346 commit 297556f
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function ({ getService }: FtrProviderContext) {
// @ts-expect-error not convertable to Job type
jobConfig: {
job_id: `fq_supported_aggs_${ts}`,
job_type: 'anomaly_detector',
description: '',
analysis_config: {
bucket_span: '30m',
Expand Down Expand Up @@ -106,7 +105,6 @@ export default function ({ getService }: FtrProviderContext) {
// @ts-expect-error not convertable to Job type
jobConfig: {
job_id: `fq_supported_script_${ts}`,
job_type: 'anomaly_detector',
description: '',
analysis_config: {
bucket_span: '15m',
Expand Down Expand Up @@ -181,7 +179,6 @@ export default function ({ getService }: FtrProviderContext) {
// @ts-expect-error not convertable to Job type
jobConfig: {
job_id: `fq_unsupported_aggs_${ts}`,
job_type: 'anomaly_detector',
description: '',
analysis_config: {
bucket_span: '15m',
Expand Down Expand Up @@ -286,7 +283,6 @@ export default function ({ getService }: FtrProviderContext) {
// @ts-expect-error not convertable to Job type
jobConfig: {
job_id: `fq_unsupported_script_${ts}`,
job_type: 'anomaly_detector',
description: '',
analysis_config: {
bucket_span: '15m',
Expand Down Expand Up @@ -363,8 +359,7 @@ export default function ({ getService }: FtrProviderContext) {
},
];

// Failing: See https://github.com/elastic/kibana/issues/179181
describe.skip('aggregated or scripted job', function () {
describe('aggregated or scripted job', function () {
this.tags(['mlqa']);
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote');
Expand All @@ -381,8 +376,7 @@ export default function ({ getService }: FtrProviderContext) {
await ml.testResources.deleteIndexPatternByTitle('ft_ecommerce');
});
for (const testData of supportedTestSuites) {
// FAILING ES FORWARD COMPATIBILITY: https://github.com/elastic/kibana/issues/179167
describe.skip(testData.suiteTitle, function () {
describe(testData.suiteTitle, function () {
before(async () => {
await ml.api.createAndRunAnomalyDetectionLookbackJob(
testData.jobConfig,
Expand Down

0 comments on commit 297556f

Please sign in to comment.