-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run sample uptime tests using @elastic/synthetics
- Loading branch information
Showing
19 changed files
with
4,581 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
source test/scripts/jenkins_test_setup_xpack.sh | ||
|
||
echo " -> Running Uptime @elastic/synthetics tests" | ||
cd "$XPACK_DIR" | ||
|
||
checks-reporter-with-killswitch "Uptime @elastic/synthetics Tests" \ | ||
node plugins/uptime/scripts/e2e.js | ||
|
||
echo "" | ||
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FtrConfigProviderContext } from '@kbn/test'; | ||
|
||
import { CA_CERT_PATH } from '@kbn/dev-utils'; | ||
async function config({ readConfigFile }: FtrConfigProviderContext) { | ||
const kibanaCommonTestsConfig = await readConfigFile( | ||
require.resolve('../../../../test/common/config.js') | ||
); | ||
const xpackFunctionalTestsConfig = await readConfigFile( | ||
require.resolve('../../../test/functional/config.js') | ||
); | ||
|
||
return { | ||
...kibanaCommonTestsConfig.getAll(), | ||
|
||
esTestCluster: { | ||
...xpackFunctionalTestsConfig.get('esTestCluster'), | ||
serverArgs: [ | ||
...xpackFunctionalTestsConfig.get('esTestCluster.serverArgs'), | ||
// define custom es server here | ||
// API Keys is enabled at the top level | ||
'xpack.security.enabled=true', | ||
], | ||
}, | ||
|
||
kbnTestServer: { | ||
...xpackFunctionalTestsConfig.get('kbnTestServer'), | ||
sourceArgs: [...xpackFunctionalTestsConfig.get('kbnTestServer.sourceArgs'), '--no-watch'], | ||
serverArgs: [ | ||
...xpackFunctionalTestsConfig.get('kbnTestServer.serverArgs'), | ||
'--csp.strict=false', | ||
'--home.disableWelcomeScreen=true', | ||
'--csp.warnLegacyBrowsers=false', | ||
// define custom kibana server args here | ||
`--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`, | ||
`--elasticsearch.ignoreVersionMismatch=true`, | ||
`--uiSettings.overrides.theme:darkMode=true`, | ||
`--elasticsearch.username=kibana_system`, | ||
`--elasticsearch.password=changeme`, | ||
'--migrations.enableV2=false', | ||
'--xpack.reporting.enabled=false', | ||
], | ||
}, | ||
}; | ||
} | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default config; |
Binary file added
BIN
+125 KB
x-pack/plugins/uptime/e2e/fixtures/es_archiver/full_heartbeat/data.json.gz
Binary file not shown.
Oops, something went wrong.