@@ -43,7 +43,7 @@ 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
// TODO: remove this once 'arbitrary_key' is implemented
48
48
// https://github.com/elastic/elasticsearch/pull/41492
49
49
'indices.split/30_copy_settings.yml' : [ '*' ] ,
@@ -57,7 +57,7 @@ const ossSkips = {
57
57
// while null is a valid json value, so the check will fail
58
58
'search/320_disallow_queries.yml' : [ 'Test disallow expensive queries' ]
59
59
}
60
- const xPackBlackList = {
60
+ const platinumBlackList = {
61
61
// this two test cases are broken, we should
62
62
// return on those in the future.
63
63
'analytics/top_metrics.yml' : [
@@ -68,6 +68,7 @@ const xPackBlackList = {
68
68
'index/10_with_id.yml' : [ 'Index with ID' ] ,
69
69
'indices.get_alias/10_basic.yml' : [ 'Get alias against closed indices' ] ,
70
70
'indices.get_alias/20_empty.yml' : [ 'Check empty aliases when getting all aliases via /_alias' ] ,
71
+ 'text_structure/find_structure.yml' : [ '*' ] ,
71
72
// https://github.com/elastic/elasticsearch/pull/39400
72
73
'ml/jobs_crud.yml' : [ 'Test put job with id that is already taken' ] ,
73
74
// object keys must me strings, and `0.0.toString()` is `0`
@@ -88,6 +89,7 @@ const xPackBlackList = {
88
89
'monitoring/bulk/20_privileges.yml' : [ '*' ] ,
89
90
'license/20_put_license.yml' : [ '*' ] ,
90
91
'snapshot/10_basic.yml' : [ '*' ] ,
92
+ 'snapshot/20_operator_privileges_disabled.yml' : [ '*' ] ,
91
93
// the body is correct, but the regex is failing
92
94
'sql/sql.yml' : [ 'Getting textual representation' ] ,
93
95
// we are setting two certificates in the docker config
@@ -161,9 +163,9 @@ async function start ({ client, isXPack }) {
161
163
log ( `Checking out sha ${ sha } ...` )
162
164
await withSHA ( sha )
163
165
164
- log ( `Testing ${ isXPack ? 'XPack ' : 'oss ' } api...` )
166
+ log ( `Testing ${ isXPack ? 'Platinum ' : 'Free ' } api...` )
165
167
const junit = createJunitReporter ( )
166
- const junitTestSuites = junit . testsuites ( `Integration test for ${ isXPack ? 'XPack ' : 'oss ' } api` )
168
+ const junitTestSuites = junit . testsuites ( `Integration test for ${ isXPack ? 'Platinum ' : 'Free ' } api` )
167
169
168
170
const stats = {
169
171
total : 0 ,
@@ -254,7 +256,7 @@ async function start ({ client, isXPack }) {
254
256
junitTestCase . end ( )
255
257
junitTestSuite . end ( )
256
258
junitTestSuites . end ( )
257
- generateJunitXmlReport ( junit , isXPack ? 'xpack ' : 'oss ' )
259
+ generateJunitXmlReport ( junit , isXPack ? 'platinum ' : 'free ' )
258
260
console . error ( err )
259
261
process . exit ( 1 )
260
262
}
@@ -282,7 +284,7 @@ async function start ({ client, isXPack }) {
282
284
}
283
285
}
284
286
junitTestSuites . end ( )
285
- generateJunitXmlReport ( junit , isXPack ? 'xpack ' : 'oss ' )
287
+ generateJunitXmlReport ( junit , isXPack ? 'platinum ' : 'free ' )
286
288
log ( `Total testing time: ${ ms ( now ( ) - totalTime ) } ` )
287
289
log ( `Test stats:
288
290
- Total: ${ stats . total }
@@ -425,26 +427,26 @@ if (require.main === module) {
425
427
}
426
428
427
429
const shouldSkip = ( isXPack , file , name ) => {
428
- var list = Object . keys ( ossSkips )
430
+ var list = Object . keys ( freeSkips )
429
431
for ( var i = 0 ; i < list . length ; i ++ ) {
430
- const ossTest = ossSkips [ list [ i ] ]
431
- for ( var j = 0 ; j < ossTest . length ; j ++ ) {
432
- 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 ] === '*' ) ) {
433
435
const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
434
- log ( `Skipping test ${ testName } because is blacklisted in the oss test` )
436
+ log ( `Skipping test ${ testName } because is blacklisted in the free test` )
435
437
return true
436
438
}
437
439
}
438
440
}
439
441
440
442
if ( file . includes ( 'x-pack' ) || isXPack ) {
441
- list = Object . keys ( xPackBlackList )
443
+ list = Object . keys ( platinumBlackList )
442
444
for ( i = 0 ; i < list . length ; i ++ ) {
443
- const platTest = xPackBlackList [ list [ i ] ]
445
+ const platTest = platinumBlackList [ list [ i ] ]
444
446
for ( j = 0 ; j < platTest . length ; j ++ ) {
445
447
if ( file . endsWith ( list [ i ] ) && ( name === platTest [ j ] || platTest [ j ] === '*' ) ) {
446
448
const testName = file . slice ( file . indexOf ( `${ sep } elasticsearch${ sep } ` ) ) + ' / ' + name
447
- log ( `Skipping test ${ testName } because is blacklisted in the XPack test` )
449
+ log ( `Skipping test ${ testName } because is blacklisted in the platinum test` )
448
450
return true
449
451
}
450
452
}
0 commit comments