@@ -80,28 +80,28 @@ const customSkips = [
80
80
]
81
81
const platinumBlackList = {
82
82
// file path: test name
83
- 'cat.aliases/10_basic.yml' : 'Empty cluster' ,
84
- 'index/10_with_id.yml' : 'Index with ID' ,
85
- 'indices.get_alias/10_basic.yml' : 'Get alias against closed indices' ,
86
- 'indices.get_alias/20_empty.yml' : 'Check empty aliases when getting all aliases via /_alias' ,
83
+ 'cat.aliases/10_basic.yml' : [ 'Empty cluster' ] ,
84
+ 'index/10_with_id.yml' : [ 'Index with ID' ] ,
85
+ 'indices.get_alias/10_basic.yml' : [ 'Get alias against closed indices' ] ,
86
+ 'indices.get_alias/20_empty.yml' : [ 'Check empty aliases when getting all aliases via /_alias' ] ,
87
87
// https://github.com/elastic/elasticsearch/pull/39400
88
- 'ml/jobs_crud.yml' : 'Test put job with id that is already taken' ,
88
+ 'ml/jobs_crud.yml' : [ 'Test put job with id that is already taken' ] ,
89
89
// TODO: investigate why this is failing
90
- 'monitoring/bulk/10_basic.yml' : '*' ,
91
- 'monitoring/bulk/20_privileges.yml' : '*' ,
92
- 'license/20_put_license.yml' : '*' ,
93
- 'snapshot/10_basic.yml' : '*' ,
90
+ 'monitoring/bulk/10_basic.yml' : [ '*' ] ,
91
+ 'monitoring/bulk/20_privileges.yml' : [ '*' ] ,
92
+ 'license/20_put_license.yml' : [ '*' ] ,
93
+ 'snapshot/10_basic.yml' : [ '*' ] ,
94
94
// the body is correct, but the regex is failing
95
- 'sql/sql.yml' : 'Getting textual representation' ,
95
+ 'sql/sql.yml' : [ 'Getting textual representation' ] ,
96
96
// we are setting two certificates in the docker config
97
- 'ssl/10_basic.yml' : '*' ,
97
+ 'ssl/10_basic.yml' : [ '*' ] ,
98
98
// docker issue?
99
- 'watcher/execute_watch/60_http_input.yml' : '*' ,
99
+ 'watcher/execute_watch/60_http_input.yml' : [ '*' ] ,
100
100
// the checks are correct, but for some reason the test is failing on js side
101
101
// I bet is because the backslashes in the rg
102
- 'watcher/execute_watch/70_invalid.yml' : '*' ,
103
- 'watcher/put_watch/10_basic.yml' : '*' ,
104
- 'xpack/15_basic.yml' : '*'
102
+ 'watcher/execute_watch/70_invalid.yml' : [ '*' ] ,
103
+ 'watcher/put_watch/10_basic.yml' : [ '*' ] ,
104
+ 'xpack/15_basic.yml' : [ '*' ]
105
105
}
106
106
107
107
function Runner ( opts ) {
@@ -130,7 +130,7 @@ Runner.prototype.waitCluster = function (callback, times = 0) {
130
130
this . client . cluster . health (
131
131
{ waitForStatus : 'green' , timeout : '50s' } ,
132
132
( err , res ) => {
133
- if ( ++ times < 10 ) {
133
+ if ( err && ++ times < 10 ) {
134
134
setTimeout ( ( ) => {
135
135
this . waitCluster ( callback , times )
136
136
} , 5000 )
@@ -221,10 +221,13 @@ Runner.prototype.start = function (opts) {
221
221
if ( opts . isPlatinum ) {
222
222
const list = Object . keys ( platinumBlackList )
223
223
for ( i = 0 ; i < list . length ; i ++ ) {
224
- if ( file . endsWith ( list [ i ] ) && ( name === platinumBlackList [ list [ i ] ] || platinumBlackList [ list [ i ] ] === '*' ) ) {
225
- const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
226
- tap . skip ( `Skipping test ${ testName } because is blacklisted in the platinum test` )
227
- return
224
+ const platTest = platinumBlackList [ list [ i ] ]
225
+ for ( var j = 0 ; j < platTest . length ; j ++ ) {
226
+ if ( file . endsWith ( list [ i ] ) && ( name === platTest [ j ] || platTest [ j ] === '*' ) ) {
227
+ const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
228
+ tap . skip ( `Skipping test ${ testName } because is blacklisted in the platinum test` )
229
+ return
230
+ }
228
231
}
229
232
}
230
233
}
0 commit comments