Skip to content

Commit 6be881b

Browse files
committed
Support for ES5
1 parent fbba50e commit 6be881b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/integration/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ const esFolder = join(__dirname, '..', '..', 'elasticsearch')
3434
const yamlFolder = join(esFolder, 'rest-api-spec', 'src', 'main', 'resources', 'rest-api-spec', 'test')
3535
const xPackYamlFolder = join(esFolder, 'x-pack', 'plugin', 'src', 'test', 'resources', 'rest-api-spec', 'test')
3636
const customSkips = [
37+
// fails with ES5 with x-pack enabled
38+
'cat.shards/10_basic.yaml',
39+
// fails with ES5,`repository` is a required field
40+
'cat.snapshots/10_basic.yaml',
41+
// fails with ES5 with x-pack enabled
42+
'cat.templates/10_basic.yaml',
43+
'get_source/55_parent_with_routing.yaml',
44+
'search/10_source_filtering.yaml',
45+
'delete/50_refresh.yaml',
3746
// skipping because we are booting ES with `discovery.type=single-node`
3847
// and this test will fail because of this configuration
3948
'nodes.stats/30_discovery.yml',
@@ -91,7 +100,7 @@ function Runner (opts) {
91100
Runner.prototype.waitCluster = function (callback, times = 0) {
92101
this.log.text = 'Waiting for ElasticSearch'
93102
this.client.cluster.health(
94-
{ waitForStatus: 'green', timeout: '50s' },
103+
{ waitForStatus: 'yellow', timeout: '50s' },
95104
(err, res) => {
96105
if (++times < 10) {
97106
setTimeout(() => {

0 commit comments

Comments
 (0)