[ftr] determine oss ciGroups by reading the yaml file (#32575)

This commit is contained in:
Spencer 2019-03-06 13:11:07 -08:00 committed by GitHub
parent c2230b2131
commit b213f5551d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 19 deletions

View file

@ -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

View file

@ -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 {