-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM] E2E: Zero config for running e2e locally (#59152)
- Loading branch information
Showing
17 changed files
with
873 additions
and
708 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
cypress/ingest-data/events.json | ||
cypress/screenshots/* | ||
|
||
cypress/test-results | ||
tmp |
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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
# Kibana | ||
server.port: 5701 | ||
xpack.security.encryptionKey: 'something_at_least_32_characters' | ||
csp.strict: false | ||
logging.verbose: true | ||
|
||
# Elasticsearch | ||
# Started via apm-integration-testing | ||
# ./scripts/compose.py start master --no-kibana --elasticsearch-port 9201 --apm-server-port 8201 | ||
elasticsearch.hosts: http://localhost:9201 | ||
elasticsearch.username: 'kibana_system_user' | ||
elasticsearch.password: 'changeme' | ||
|
||
# APM index pattern | ||
apm_oss.indexPattern: apm-* | ||
|
||
# APM Indices | ||
apm_oss.errorIndices: apm-*-error* | ||
apm_oss.sourcemapIndices: apm-*-sourcemap | ||
apm_oss.transactionIndices: apm-*-transaction* | ||
apm_oss.spanIndices: apm-*-span* | ||
apm_oss.metricsIndices: apm-*-metric* | ||
apm_oss.onboardingIndices: apm-*-onboarding* | ||
|
||
# APM options | ||
xpack.apm.enabled: true | ||
xpack.apm.serviceMapEnabled: false | ||
xpack.apm.autocreateApmIndexPattern: true | ||
xpack.apm.ui.enabled: true | ||
xpack.apm.ui.transactionGroupBucketSize: 100 | ||
xpack.apm.ui.maxTraceItems: 1000 |
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 |
---|---|---|
@@ -1,24 +1,21 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
CYPRESS_DIR="x-pack/legacy/plugins/apm/e2e" | ||
E2E_DIR="x-pack/legacy/plugins/apm/e2e" | ||
|
||
echo "1/3 Install dependencies ..." | ||
# shellcheck disable=SC1091 | ||
source src/dev/ci_setup/setup_env.sh true | ||
yarn kbn bootstrap | ||
cp ${CYPRESS_DIR}/ci/kibana.dev.yml config/kibana.dev.yml | ||
echo 'elasticsearch:' >> config/kibana.dev.yml | ||
cp ${CYPRESS_DIR}/ci/kibana.dev.yml config/kibana.yml | ||
|
||
echo "2/3 Ingest test data ..." | ||
pushd ${CYPRESS_DIR} | ||
pushd ${E2E_DIR} | ||
yarn install | ||
curl --silent https://storage.googleapis.com/apm-ui-e2e-static-data/events.json --output ingest-data/events.json | ||
node ingest-data/replay.js --server-url http://localhost:8200 --secret-token abcd --events ./events.json > ingest-data.log | ||
node ingest-data/replay.js --server-url http://localhost:8201 --secret-token abcd --events ./events.json > ingest-data.log | ||
|
||
echo "3/3 Start Kibana ..." | ||
popd | ||
## Might help to avoid FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory | ||
export NODE_OPTIONS="--max-old-space-size=4096" | ||
nohup node scripts/kibana --no-base-path --csp.strict=false --optimize.watch=false> kibana.log 2>&1 & | ||
nohup node scripts/kibana --config "${E2E_DIR}/ci/kibana.e2e.yml" --no-base-path --optimize.watch=false> kibana.log 2>&1 & |
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
19 changes: 5 additions & 14 deletions
19
x-pack/legacy/plugins/apm/e2e/cypress/integration/snapshots.js
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 |
---|---|---|
@@ -1,19 +1,10 @@ | ||
module.exports = { | ||
"When clicking opbeans-go service": { | ||
"transaction duration charts": { | ||
"should have correct y-axis ticks": { | ||
"1": "3.7 min", | ||
"2": "1.8 min", | ||
"3": "0.0 min" | ||
} | ||
} | ||
}, | ||
"__version": "3.8.3", | ||
"APM": { | ||
"Transaction duration charts": { | ||
"1": "3.7 min", | ||
"2": "1.8 min", | ||
"3": "0.0 min" | ||
"1": "500 ms", | ||
"2": "250 ms", | ||
"3": "0 ms" | ||
} | ||
} | ||
}, | ||
"__version": "4.2.0" | ||
} |
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
Oops, something went wrong.