Allow for cloud functional testing for 5.6 (#26790)

This commit is contained in:
liza-mae 2018-12-07 09:31:48 -07:00 committed by GitHub
parent 9a7a28b5dc
commit b1a36044d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 1 deletions

View file

@ -18,6 +18,11 @@ const urlPartsSchema = () => Joi.object().keys({
hash: Joi.string().regex(/^\//, 'start with a /')
}).default();
const appUrlPartsSchema = () => Joi.object().keys({
pathname: Joi.string().regex(/^\//, 'start with a /'),
hash: Joi.string().regex(/^\//, 'start with a /')
}).default();
const defaultRelativeToConfigPath = path => {
const makeDefault = (locals, options) => (
resolve(dirname(options.context.path), path)
@ -86,7 +91,7 @@ export const schema = Joi.object().keys({
// definition of apps that work with `common.navigateToApp()`
apps: Joi.object().pattern(
ID_PATTERN,
urlPartsSchema()
appUrlPartsSchema()
).default(),
// settings for the esArchiver module

25
test/scripts/jenkins_cloud.sh Executable file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# This script runs kibana tests compatible with cloud.
#
# The cloud instance setup is done in the elastic/elastic-stack-testing framework,
# where the following environment variables are set pointing to the cloud instance.
#
# export TEST_KIBANA_HOSTNAME
# export TEST_KIBANA_PROTOCOL=
# export TEST_KIBANA_PORT=
# export TEST_KIBANA_USER=
# export TEST_KIBANA_PASS=
#
# export TEST_ES_HOSTNAME=
# export TEST_ES_PROTOCOL=
# export TEST_ES_PORT=
# export TEST_ES_USER=
# export TEST_ES_PASS=
#
set -e
source "$(dirname $0)/../../src/dev/ci_setup/setup.sh"
xvfb-run node scripts/functional_test_runner --debug --grep @skipcloud --invert $@