@@ -43,9 +43,10 @@ const MAX_API_TIME = 1000 * 90
43
43
const MAX_FILE_TIME = 1000 * 30
44
44
const MAX_TEST_TIME = 1000 * 3
45
45
46
- const ossSkips = {
46
+ const freeSkips = {
47
47
'cat.indices/10_basic.yml' : [ 'Test cat indices output for closed index (pre 7.2.0)' ] ,
48
48
'cluster.health/10_basic.yml' : [ 'cluster health with closed index (pre 7.2.0)' ] ,
49
+
49
50
// TODO: remove this once 'arbitrary_key' is implemented
50
51
// https://github.com/elastic/elasticsearch/pull/41492
51
52
'indices.split/30_copy_settings.yml' : [ '*' ] ,
@@ -56,12 +57,18 @@ const ossSkips = {
56
57
// which triggers a retry and the node to be marked as dead
57
58
'search.aggregation/240_max_buckets.yml' : [ '*' ]
58
59
}
59
- const xPackBlackList = {
60
- // file path: test name
60
+ const platinumBlackList = {
61
+ // this two test cases are broken, we should
62
+ // return on those in the future.
63
+ 'analytics/top_metrics.yml' : [
64
+ 'sort by keyword field fails' ,
65
+ 'sort by string script fails'
66
+ ] ,
61
67
'cat.aliases/10_basic.yml' : [ 'Empty cluster' ] ,
62
68
'index/10_with_id.yml' : [ 'Index with ID' ] ,
63
69
'indices.get_alias/10_basic.yml' : [ 'Get alias against closed indices' ] ,
64
70
'indices.get_alias/20_empty.yml' : [ 'Check empty aliases when getting all aliases via /_alias' ] ,
71
+ 'text_structure/find_structure.yml' : [ '*' ] ,
65
72
// https://github.com/elastic/elasticsearch/pull/39400
66
73
'ml/jobs_crud.yml' : [ 'Test put job with id that is already taken' ] ,
67
74
// object keys must me strings, and `0.0.toString()` is `0`
@@ -82,6 +89,7 @@ const xPackBlackList = {
82
89
'monitoring/bulk/20_privileges.yml' : [ '*' ] ,
83
90
'license/20_put_license.yml' : [ '*' ] ,
84
91
'snapshot/10_basic.yml' : [ '*' ] ,
92
+ 'snapshot/20_operator_privileges_disabled.yml' : [ '*' ] ,
85
93
// the body is correct, but the regex is failing
86
94
'sql/sql.yml' : [ 'Getting textual representation' ] ,
87
95
// we are setting two certificates in the docker config
@@ -155,9 +163,9 @@ async function start ({ client, isXPack }) {
155
163
log ( `Checking out sha ${ sha } ...` )
156
164
await withSHA ( sha )
157
165
158
- log ( `Testing ${ isXPack ? 'XPack ' : 'oss ' } api...` )
166
+ log ( `Testing ${ isXPack ? 'Platinum ' : 'Free ' } api...` )
159
167
const junit = createJunitReporter ( )
160
- const junitTestSuites = junit . testsuites ( `Integration test for ${ isXPack ? 'XPack ' : 'oss ' } api` )
168
+ const junitTestSuites = junit . testsuites ( `Integration test for ${ isXPack ? 'Platinum ' : 'Free ' } api` )
161
169
162
170
const stats = {
163
171
total : 0 ,
@@ -248,7 +256,7 @@ async function start ({ client, isXPack }) {
248
256
junitTestCase . end ( )
249
257
junitTestSuite . end ( )
250
258
junitTestSuites . end ( )
251
- generateJunitXmlReport ( junit , isXPack ? 'xpack ' : 'oss ' )
259
+ generateJunitXmlReport ( junit , isXPack ? 'platinum ' : 'free ' )
252
260
console . error ( err )
253
261
process . exit ( 1 )
254
262
}
@@ -276,7 +284,7 @@ async function start ({ client, isXPack }) {
276
284
}
277
285
}
278
286
junitTestSuites . end ( )
279
- generateJunitXmlReport ( junit , isXPack ? 'xpack ' : 'oss ' )
287
+ generateJunitXmlReport ( junit , isXPack ? 'platinum ' : 'free ' )
280
288
log ( `Total testing time: ${ ms ( now ( ) - totalTime ) } ` )
281
289
log ( `Test stats:
282
290
- Total: ${ stats . total }
@@ -419,26 +427,26 @@ if (require.main === module) {
419
427
}
420
428
421
429
const shouldSkip = ( isXPack , file , name ) => {
422
- var list = Object . keys ( ossSkips )
430
+ var list = Object . keys ( freeSkips )
423
431
for ( var i = 0 ; i < list . length ; i ++ ) {
424
- const ossTest = ossSkips [ list [ i ] ]
425
- for ( var j = 0 ; j < ossTest . length ; j ++ ) {
426
- if ( file . endsWith ( list [ i ] ) && ( name === ossTest [ j ] || ossTest [ j ] === '*' ) ) {
432
+ const freeTest = freeSkips [ list [ i ] ]
433
+ for ( var j = 0 ; j < freeTest . length ; j ++ ) {
434
+ if ( file . endsWith ( list [ i ] ) && ( name === freeTest [ j ] || freeTest [ j ] === '*' ) ) {
427
435
const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
428
- log ( `Skipping test ${ testName } because is blacklisted in the oss test` )
436
+ log ( `Skipping test ${ testName } because is blacklisted in the free test` )
429
437
return true
430
438
}
431
439
}
432
440
}
433
441
434
442
if ( file . includes ( 'x-pack' ) || isXPack ) {
435
- list = Object . keys ( xPackBlackList )
443
+ list = Object . keys ( platinumBlackList )
436
444
for ( i = 0 ; i < list . length ; i ++ ) {
437
- const platTest = xPackBlackList [ list [ i ] ]
445
+ const platTest = platinumBlackList [ list [ i ] ]
438
446
for ( j = 0 ; j < platTest . length ; j ++ ) {
439
447
if ( file . endsWith ( list [ i ] ) && ( name === platTest [ j ] || platTest [ j ] === '*' ) ) {
440
448
const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
441
- log ( `Skipping test ${ testName } because is blacklisted in the XPack test` )
449
+ log ( `Skipping test ${ testName } because is blacklisted in the platinum test` )
442
450
return true
443
451
}
444
452
}
0 commit comments