Fixed integration test

This commit is contained in:
delvedor
2020-02-25 14:31:54 +01:00
parent 6261dd7909
commit 18a87fca82
2 changed files with 12 additions and 3 deletions

View File

@ -31,7 +31,10 @@ const ossSkips = {
'nodes.stats/30_discovery.yml': ['*'],
// the expected error is returning a 503,
// which triggers a retry and the node to be marked as dead
'search.aggregation/240_max_buckets.yml': ['*']
'search.aggregation/240_max_buckets.yml': ['*'],
// the yaml runner assumes that null means "does not exists",
// while null is a valid json value, so the check will fail
'search/320_disallow_queries.yml': ['Test disallow expensive queries']
}
const xPackBlackList = {
// file path: test name

View File

@ -42,13 +42,19 @@ function build (opts = {}) {
stash.clear()
try {
await client.indices.deleteAlias({ index: '_all', name: '_all' }, { ignore: 404 })
await client.indices.deleteAlias({
index: '_all',
name: '_all'
}, { ignore: 404 })
} catch (err) {
assert.ifError(err, 'should not error: indices.deleteAlias')
}
try {
await client.indices.delete({ index: '_all' }, { ignore: 404 })
await client.indices.delete({
index: '_all',
expand_wildcards: 'open,closed,hidden'
}, { ignore: 404 })
} catch (err) {
assert.ifError(err, 'should not error: indices.delete')
}