mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Functional tests - stabilize categorization examples endpoint test (#115910)
This PR stabilizes the categorization example endpoint tests by using a different esArchive.
This commit is contained in:
parent
5890a01896
commit
729481ed59
4 changed files with 44 additions and 2 deletions
|
@ -44,6 +44,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
|
|||
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/categorization');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/categorization_small');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_apache');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_auditbeat');
|
||||
await esArchiver.unload('x-pack/test/functional/es_archives/ml/module_apm');
|
||||
|
|
|
@ -64,7 +64,7 @@ const analyzer = {
|
|||
],
|
||||
};
|
||||
const defaultRequestBody = {
|
||||
indexPatternTitle: 'ft_categorization',
|
||||
indexPatternTitle: 'ft_categorization_small',
|
||||
query: { bool: { must: [{ match_all: {} }] } },
|
||||
size: 5,
|
||||
timeField: '@timestamp',
|
||||
|
@ -286,7 +286,7 @@ export default ({ getService }: FtrProviderContext) => {
|
|||
|
||||
describe('Categorization example endpoint - ', function () {
|
||||
before(async () => {
|
||||
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization');
|
||||
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization_small');
|
||||
await ml.testResources.setKibanaTimeZoneToUTC();
|
||||
});
|
||||
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"type": "index",
|
||||
"value": {
|
||||
"aliases": {},
|
||||
"index": "ft_categorization_small",
|
||||
"mappings": {
|
||||
"properties": {
|
||||
"@timestamp": {
|
||||
"type": "date"
|
||||
},
|
||||
"field1": {
|
||||
"type": "text"
|
||||
},
|
||||
"field2": {
|
||||
"type": "text"
|
||||
},
|
||||
"field3": {
|
||||
"type": "text"
|
||||
},
|
||||
"field4": {
|
||||
"type": "text"
|
||||
},
|
||||
"field5": {
|
||||
"type": "text"
|
||||
},
|
||||
"field6": {
|
||||
"type": "text"
|
||||
},
|
||||
"field7": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"index": {
|
||||
"number_of_replicas": "0",
|
||||
"number_of_shards": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue