[ftr] determine oss ciGroups by reading the yaml file (#32575)
This commit is contained in:
parent
c2230b2131
commit
b213f5551d
|
@ -1,7 +1,6 @@
|
|||
JOB:
|
||||
- kibana-intake
|
||||
- x-pack-intake
|
||||
# make sure all kibana-ciGRoups are listed in tasks/function_test_groups.js
|
||||
- kibana-ciGroup1
|
||||
- kibana-ciGroup2
|
||||
- kibana-ciGroup3
|
||||
|
|
|
@ -17,27 +17,18 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import { readFileSync } from 'fs';
|
||||
import { resolve } from 'path';
|
||||
|
||||
import execa from 'execa';
|
||||
import grunt from 'grunt';
|
||||
import { safeLoad } from 'js-yaml';
|
||||
|
||||
/**
|
||||
* The list of tags that we use in the functional tests, if we add a new group we need to add it to this list
|
||||
* and to the list of jobs in .ci/jobs.yml
|
||||
*/
|
||||
const TEST_TAGS = [
|
||||
'ciGroup1',
|
||||
'ciGroup2',
|
||||
'ciGroup3',
|
||||
'ciGroup4',
|
||||
'ciGroup5',
|
||||
'ciGroup6',
|
||||
'ciGroup7',
|
||||
'ciGroup8',
|
||||
'ciGroup9',
|
||||
'ciGroup10',
|
||||
'ciGroup11',
|
||||
'ciGroup12'
|
||||
];
|
||||
const JOBS_YAML = readFileSync(resolve(__dirname, '../.ci/jobs.yml'), 'utf8');
|
||||
const TEST_TAGS = safeLoad(JOBS_YAML)
|
||||
.JOB
|
||||
.filter(id => id.startsWith('kibana-ciGroup'))
|
||||
.map(id => id.replace(/^kibana-/, ''));
|
||||
|
||||
export function getFunctionalTestGroupRunConfigs({ esFrom, kibanaInstallDir } = {}) {
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue