@@ -43,28 +43,28 @@ const customSkips = [
43
43
]
44
44
const platinumBlackList = {
45
45
// file path: test name
46
- 'cat.aliases/10_basic.yml' : 'Empty cluster' ,
47
- 'index/10_with_id.yml' : 'Index with ID' ,
48
- 'indices.get_alias/10_basic.yml' : 'Get alias against closed indices' ,
49
- 'indices.get_alias/20_empty.yml' : 'Check empty aliases when getting all aliases via /_alias' ,
46
+ 'cat.aliases/10_basic.yml' : [ 'Empty cluster' ] ,
47
+ 'index/10_with_id.yml' : [ 'Index with ID' ] ,
48
+ 'indices.get_alias/10_basic.yml' : [ 'Get alias against closed indices' ] ,
49
+ 'indices.get_alias/20_empty.yml' : [ 'Check empty aliases when getting all aliases via /_alias' ] ,
50
50
// https://github.com/elastic/elasticsearch/pull/39400
51
- 'ml/jobs_crud.yml' : 'Test put job with id that is already taken' ,
51
+ 'ml/jobs_crud.yml' : [ 'Test put job with id that is already taken' ] ,
52
52
// TODO: investigate why this is failing
53
- 'monitoring/bulk/10_basic.yml' : '*' ,
54
- 'monitoring/bulk/20_privileges.yml' : '*' ,
55
- 'license/20_put_license.yml' : '*' ,
56
- 'snapshot/10_basic.yml' : '*' ,
53
+ 'monitoring/bulk/10_basic.yml' : [ '*' ] ,
54
+ 'monitoring/bulk/20_privileges.yml' : [ '*' ] ,
55
+ 'license/20_put_license.yml' : [ '*' ] ,
56
+ 'snapshot/10_basic.yml' : [ '*' ] ,
57
57
// the body is correct, but the regex is failing
58
- 'sql/sql.yml' : 'Getting textual representation' ,
58
+ 'sql/sql.yml' : [ 'Getting textual representation' ] ,
59
59
// we are setting two certificates in the docker config
60
- 'ssl/10_basic.yml' : '*' ,
60
+ 'ssl/10_basic.yml' : [ '*' ] ,
61
61
// docker issue?
62
- 'watcher/execute_watch/60_http_input.yml' : '*' ,
62
+ 'watcher/execute_watch/60_http_input.yml' : [ '*' ] ,
63
63
// the checks are correct, but for some reason the test is failing on js side
64
64
// I bet is because the backslashes in the rg
65
- 'watcher/execute_watch/70_invalid.yml' : '*' ,
66
- 'watcher/put_watch/10_basic.yml' : '*' ,
67
- 'xpack/15_basic.yml' : '*'
65
+ 'watcher/execute_watch/70_invalid.yml' : [ '*' ] ,
66
+ 'watcher/put_watch/10_basic.yml' : [ '*' ] ,
67
+ 'xpack/15_basic.yml' : [ '*' ]
68
68
}
69
69
70
70
function Runner ( opts ) {
@@ -93,7 +93,7 @@ Runner.prototype.waitCluster = function (callback, times = 0) {
93
93
this . client . cluster . health (
94
94
{ waitForStatus : 'green' , timeout : '50s' } ,
95
95
( err , res ) => {
96
- if ( ++ times < 10 ) {
96
+ if ( err && ++ times < 10 ) {
97
97
setTimeout ( ( ) => {
98
98
this . waitCluster ( callback , times )
99
99
} , 5000 )
@@ -184,10 +184,13 @@ Runner.prototype.start = function (opts) {
184
184
if ( opts . isPlatinum ) {
185
185
const list = Object . keys ( platinumBlackList )
186
186
for ( i = 0 ; i < list . length ; i ++ ) {
187
- if ( file . endsWith ( list [ i ] ) && ( name === platinumBlackList [ list [ i ] ] || platinumBlackList [ list [ i ] ] === '*' ) ) {
188
- const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
189
- tap . skip ( `Skipping test ${ testName } because is blacklisted in the platinum test` )
190
- return
187
+ const platTest = platinumBlackList [ list [ i ] ]
188
+ for ( var j = 0 ; j < platTest . length ; j ++ ) {
189
+ if ( file . endsWith ( list [ i ] ) && ( name === platTest [ j ] || platTest [ j ] === '*' ) ) {
190
+ const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
191
+ tap . skip ( `Skipping test ${ testName } because is blacklisted in the platinum test` )
192
+ return
193
+ }
191
194
}
192
195
}
193
196
}
0 commit comments