[7.17] Fix package tests (#163978)

https://github.com/elastic/kibana/pull/163363 backported the requirement
for functional tests to specify a `--config` file.

This adds a config file flag to package tests instead of relying on a
global tag. This also swaps the test suite from an ingest test to
reporting, the same as main.

Tested
[here](https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/2696).
This commit is contained in:
Jon 2023-08-16 09:43:43 -05:00 committed by GitHub
parent b698a91e3c
commit 91ee0ae974
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View file

@ -50,4 +50,6 @@ export TEST_KIBANA_URL="http://elastic:changeme@$KIBANA_IP_ADDRESS:5601"
export TEST_ES_URL=http://elastic:changeme@192.168.56.1:9200
cd x-pack
node scripts/functional_test_runner.js --include-tag=smoke
echo "--- FTR - Reporting"
node scripts/functional_test_runner.js --config test/functional/config.js --include-tag=smoke --quiet

View file

@ -24,3 +24,4 @@
ELASTICSEARCH_HOSTS: http://192.168.56.1:9200
ELASTICSEARCH_USERNAME: '{{ elasticsearch_username }}'
ELASTICSEARCH_PASSWORD: '{{ elasticsearch_password }}'
XPACK_REPORTING_CAPTURE_BROWSER_CHROMIUM_DISABLESANDBOX: 'true'

View file

@ -23,7 +23,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const retry = getService('retry');
describe('Ingest Pipelines', function () {
this.tags('smoke');
this.onlyEsVersion('<=7');
before(async () => {

View file

@ -30,6 +30,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
]);
describe('Visualize Reporting Screenshots', function () {
this.tags(['smoke']);
before('initialize tests', async () => {
log.debug('ReportingPage:initTests');
await browser.setWindowSize(1600, 850);