mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Allow for cloud functional testing for 5.6 (#26790)
This commit is contained in:
parent
9a7a28b5dc
commit
b1a36044d1
2 changed files with 31 additions and 1 deletions
|
@ -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
25
test/scripts/jenkins_cloud.sh
Executable 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 $@
|
Loading…
Add table
Add a link
Reference in a new issue