mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ML] Anomaly Detection: Fix test to reflect model memory limit change. (#65967)
Adapt jest test mocks to consider update introduced in #65652.
This commit is contained in:
parent
af102afb7a
commit
e148eb4437
1 changed files with 10 additions and 3 deletions
|
@ -14,6 +14,13 @@ const callWithRequest: APICaller = (method: string) => {
|
|||
if (method === 'fieldCaps') {
|
||||
resolve({ fields: [] });
|
||||
return;
|
||||
} else if (method === 'ml.info') {
|
||||
resolve({
|
||||
limits: {
|
||||
effective_max_model_memory_limit: '100MB',
|
||||
max_model_memory_limit: '1GB',
|
||||
},
|
||||
});
|
||||
}
|
||||
resolve({});
|
||||
}) as Promise<any>;
|
||||
|
@ -291,7 +298,7 @@ describe('ML - validateJob', () => {
|
|||
});
|
||||
|
||||
// Failing https://github.com/elastic/kibana/issues/65865
|
||||
it.skip('basic validation passes, extended checks return some messages', () => {
|
||||
it('basic validation passes, extended checks return some messages', () => {
|
||||
const payload = getBasicPayload();
|
||||
return validateJob(callWithRequest, payload).then(messages => {
|
||||
const ids = messages.map(m => m.id);
|
||||
|
@ -305,7 +312,7 @@ describe('ML - validateJob', () => {
|
|||
});
|
||||
|
||||
// Failing https://github.com/elastic/kibana/issues/65866
|
||||
it.skip('categorization job using mlcategory passes aggregatable field check', () => {
|
||||
it('categorization job using mlcategory passes aggregatable field check', () => {
|
||||
const payload: any = {
|
||||
job: {
|
||||
job_id: 'categorization_test',
|
||||
|
@ -372,7 +379,7 @@ describe('ML - validateJob', () => {
|
|||
});
|
||||
|
||||
// Failing https://github.com/elastic/kibana/issues/65867
|
||||
it.skip('script field not reported as non aggregatable', () => {
|
||||
it('script field not reported as non aggregatable', () => {
|
||||
const payload: any = {
|
||||
job: {
|
||||
job_id: 'categorization_test',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue