@@ -149,73 +149,72 @@ export default function ({ getService }: FtrProviderContext) {
149149 } ,
150150 } ,
151151 } ,
152- // skipping categorization tests, see https://github.com/elastic/kibana/issues/101056
153- // {
154- // suiteTitle: 'with categorization detector and default datafeed settings',
155- // jobSource: 'ft_ecommerce',
156- // jobId: `ec_advanced_2_${Date.now()}`,
157- // get jobIdClone(): string {
158- // return `${this.jobId}_clone`;
159- // },
160- // jobDescription:
161- // 'Create advanced job from ft_ecommerce dataset with a categorization detector and default datafeed settings',
162- // jobGroups: ['automated', 'ecommerce', 'advanced'],
163- // get jobGroupsClone(): string[] {
164- // return [...this.jobGroups, 'clone'];
165- // },
166- // pickFieldsConfig: {
167- // categorizationField: 'products.product_name',
168- // detectors: [
169- // {
170- // identifier: 'count by mlcategory',
171- // function: 'count',
172- // byField: 'mlcategory',
173- // } as Detector,
174- // ],
175- // influencers: ['mlcategory'],
176- // bucketSpan: '4h',
177- // memoryLimit: '100mb',
178- // } as PickFieldsConfig,
179- // datafeedConfig: {} as DatafeedConfig,
180- // expected: {
181- // wizard: {
182- // timeField: 'order_date',
183- // },
184- // row: {
185- // recordCount: '4,675',
186- // memoryStatus: 'ok',
187- // jobState: 'closed',
188- // datafeedState: 'stopped',
189- // latestTimestamp: '2019-07-12 23:45:36',
190- // },
191- // counts: {
192- // processed_record_count: '4,675',
193- // processed_field_count: '4,675',
194- // input_bytes: '354.2 KB',
195- // input_field_count: '4,675',
196- // invalid_date_count: '0',
197- // missing_field_count: '0',
198- // out_of_order_timestamp_count: '0',
199- // empty_bucket_count: '0',
200- // sparse_bucket_count: '0',
201- // bucket_count: '185',
202- // earliest_record_timestamp: '2019-06-12 00:04:19',
203- // latest_record_timestamp: '2019-07-12 23:45:36',
204- // input_record_count: '4,675',
205- // latest_bucket_timestamp: '2019-07-12 20:00:00',
206- // },
207- // modelSizeStats: {
208- // result_type: 'model_size_stats',
209- // model_bytes_exceeded: '0.0 B',
210- // // not checking total_by_field_count as the number of categories might change
211- // total_over_field_count: '0',
212- // total_partition_field_count: '2',
213- // bucket_allocation_failures_count: '0',
214- // memory_status: 'ok',
215- // timestamp: '2019-07-12 16:00:00',
216- // },
217- // },
218- // },
152+ {
153+ suiteTitle : 'with categorization detector and default datafeed settings' ,
154+ jobSource : 'ft_ecommerce' ,
155+ jobId : `ec_advanced_2_${ Date . now ( ) } ` ,
156+ get jobIdClone ( ) : string {
157+ return `${ this . jobId } _clone` ;
158+ } ,
159+ jobDescription :
160+ 'Create advanced job from ft_ecommerce dataset with a categorization detector and default datafeed settings' ,
161+ jobGroups : [ 'automated' , 'ecommerce' , 'advanced' ] ,
162+ get jobGroupsClone ( ) : string [ ] {
163+ return [ ...this . jobGroups , 'clone' ] ;
164+ } ,
165+ pickFieldsConfig : {
166+ categorizationField : 'products.product_name' ,
167+ detectors : [
168+ {
169+ identifier : 'count by mlcategory' ,
170+ function : 'count' ,
171+ byField : 'mlcategory' ,
172+ } as Detector ,
173+ ] ,
174+ influencers : [ 'mlcategory' ] ,
175+ bucketSpan : '4h' ,
176+ memoryLimit : '100mb' ,
177+ } as PickFieldsConfig ,
178+ datafeedConfig : { } as DatafeedConfig ,
179+ expected : {
180+ wizard : {
181+ timeField : 'order_date' ,
182+ } ,
183+ row : {
184+ recordCount : '4,675' ,
185+ memoryStatus : 'ok' ,
186+ jobState : 'closed' ,
187+ datafeedState : 'stopped' ,
188+ latestTimestamp : '2019-07-12 23:45:36' ,
189+ } ,
190+ counts : {
191+ processed_record_count : '4,675' ,
192+ processed_field_count : '4,675' ,
193+ input_bytes : '354.2 KB' ,
194+ input_field_count : '4,675' ,
195+ invalid_date_count : '0' ,
196+ missing_field_count : '0' ,
197+ out_of_order_timestamp_count : '0' ,
198+ empty_bucket_count : '0' ,
199+ sparse_bucket_count : '0' ,
200+ bucket_count : '185' ,
201+ earliest_record_timestamp : '2019-06-12 00:04:19' ,
202+ latest_record_timestamp : '2019-07-12 23:45:36' ,
203+ input_record_count : '4,675' ,
204+ latest_bucket_timestamp : '2019-07-12 20:00:00' ,
205+ } ,
206+ modelSizeStats : {
207+ result_type : 'model_size_stats' ,
208+ model_bytes_exceeded : '0.0 B' ,
209+ // not checking total_by_field_count as the number of categories might change
210+ total_over_field_count : '0' ,
211+ total_partition_field_count : '2' ,
212+ bucket_allocation_failures_count : '0' ,
213+ memory_status : 'ok' ,
214+ timestamp : '2019-07-12 16:00:00' ,
215+ } ,
216+ } ,
217+ } ,
219218 ] ;
220219
221220 const calendarId = `wizard-test-calendar_${ Date . now ( ) } ` ;
0 commit comments