Skip to content

Commit

Permalink
Unskip Search Sessions Management UI test (#90110)
Browse files Browse the repository at this point in the history
* Unskip Search Sessions Management UI test

* more logging

* logging

* ci test

* skip reload test

* add tm task to archives used by dependent tests

* --wip-- [skip ci]

* revert jest affecting changes

* fix search sessions archive

* add pagination test

* test organize

* log cleanup

* fix async in tests

* remove obsolete test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
tsullivan and kibanamachine committed Feb 19, 2021
1 parent 269a633 commit 0c4c3c2
Show file tree
Hide file tree
Showing 13 changed files with 456 additions and 274 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/data_enhanced/common/search/session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@

export * from './status';
export * from './types';

export const SEARCH_SESSIONS_TABLE_ID = 'searchSessionsMgmtUiTable';
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ import { EuiButton, EuiInMemoryTable, EuiSearchBarProps } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { CoreStart } from 'kibana/public';
import moment from 'moment';
import React, { useCallback, useMemo, useRef, useEffect, useState } from 'react';
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import useDebounce from 'react-use/lib/useDebounce';
import useInterval from 'react-use/lib/useInterval';
import { TableText } from '../';
import { IManagementSectionsPluginsSetup, SessionsConfigSchema } from '../..';
import { SEARCH_SESSIONS_TABLE_ID } from '../../../../../common/search';
import { SearchSessionsMgmtAPI } from '../../lib/api';
import { getColumns } from '../../lib/get_columns';
import { UISession } from '../../types';
import { OnActionComplete } from '../actions';
import { getAppFilter } from './app_filter';
import { getStatusFilter } from './status_filter';

const TABLE_ID = 'searchSessionsMgmtTable';

interface Props {
core: CoreStart;
api: SearchSessionsMgmtAPI;
Expand Down Expand Up @@ -107,8 +106,8 @@ export function SearchSessionsMgmtTable({ core, api, timezone, config, plugins,
return (
<EuiInMemoryTable<UISession>
{...props}
id={TABLE_ID}
data-test-subj={TABLE_ID}
id={SEARCH_SESSIONS_TABLE_ID}
data-test-subj={SEARCH_SESSIONS_TABLE_ID}
rowProps={() => ({
'data-test-subj': 'searchSessionsRow',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,34 @@
}
}

{
"type": "doc",
"value": {
"id": "task:data_enhanced_search_sessions_monitor",
"index": ".kibana_task_manager_1",
"source": {
"references": [],
"task": {
"attempts": 0,
"ownerId": null,
"params": "{}",
"retryAt": "2020-11-30T15:43:39.626Z",
"runAt": "2020-11-30T15:43:08.277Z",
"scheduledAt": "2020-11-30T15:43:08.277Z",
"retryAt": null,
"schedule": {
"interval": "3s"
},
"scope": [
"testing"
],
"startedAt": null,
"state": "{}",
"status": "idle",
"taskType": "search_sessions_monitor"
},
"type": "task",
"updated_at": "2020-11-30T15:43:08.277Z"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,93 @@
}
}
}

{
"type": "index",
"value": {
"aliases": {
".kibana_task_manager": {
}
},
"index": ".kibana_task_manager_1",
"mappings": {
"dynamic": "strict",
"properties": {
"references": {
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"type": {
"type": "keyword"
}
},
"type": "nested"
},
"task": {
"properties": {
"attempts": {
"type": "integer"
},
"ownerId": {
"type": "keyword"
},
"params": {
"type": "text"
},
"retryAt": {
"type": "date"
},
"runAt": {
"type": "date"
},
"schedule": {
"properties": {
"interval": {
"type": "keyword"
}
}
},
"scheduledAt": {
"type": "date"
},
"scope": {
"type": "keyword"
},
"startedAt": {
"type": "date"
},
"state": {
"type": "text"
},
"status": {
"type": "keyword"
},
"taskType": {
"type": "keyword"
},
"user": {
"type": "keyword"
}
}
},
"type": {
"type": "keyword"
},
"updated_at": {
"type": "date"
}
}
},
"settings": {
"index": {
"auto_expand_replicas": "0-1",
"number_of_replicas": "0",
"number_of_shards": "1"
}
}
}
}
Binary file not shown.
Loading

0 comments on commit 0c4c3c2

Please sign in to comment.