@elastic/synthetics 1.0.0-beta.3 → 1.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/cli.js +99 -162
- package/dist/cli.js.map +1 -1
- package/dist/common_types.d.ts +156 -34
- package/dist/common_types.d.ts.map +1 -1
- package/dist/config.d.ts +2 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -5
- package/dist/config.js.map +1 -1
- package/dist/core/browser-service.js +5 -5
- package/dist/core/browser-service.js.map +1 -1
- package/dist/core/gatherer.d.ts +4 -8
- package/dist/core/gatherer.d.ts.map +1 -1
- package/dist/core/gatherer.js +46 -14
- package/dist/core/gatherer.js.map +1 -1
- package/dist/core/index.d.ts +5 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +23 -11
- package/dist/core/index.js.map +1 -1
- package/dist/core/logger.d.ts +0 -1
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +3 -16
- package/dist/core/logger.js.map +1 -1
- package/dist/core/runner.d.ts +21 -65
- package/dist/core/runner.d.ts.map +1 -1
- package/dist/core/runner.js +211 -93
- package/dist/core/runner.js.map +1 -1
- package/dist/dsl/journey.d.ts +7 -3
- package/dist/dsl/journey.d.ts.map +1 -1
- package/dist/dsl/journey.js +22 -6
- package/dist/dsl/journey.js.map +1 -1
- package/{src/reporters/reporter.ts → dist/dsl/locations.d.ts} +12 -10
- package/dist/dsl/locations.d.ts.map +1 -0
- package/dist/dsl/locations.js +41 -0
- package/dist/dsl/locations.js.map +1 -0
- package/dist/dsl/monitor.d.ts +65 -0
- package/dist/dsl/monitor.d.ts.map +1 -0
- package/dist/dsl/monitor.js +63 -0
- package/dist/dsl/monitor.js.map +1 -0
- package/dist/dsl/step.d.ts +3 -2
- package/dist/dsl/step.d.ts.map +1 -1
- package/dist/dsl/step.js +2 -1
- package/dist/dsl/step.js.map +1 -1
- package/dist/formatter/javascript.d.ts +98 -0
- package/dist/formatter/javascript.d.ts.map +1 -0
- package/dist/formatter/javascript.js +295 -0
- package/dist/formatter/javascript.js.map +1 -0
- package/dist/generator/index.d.ts +21 -0
- package/dist/generator/index.d.ts.map +1 -0
- package/dist/generator/index.js +169 -0
- package/dist/generator/index.js.map +1 -0
- package/dist/{reporters/reporter.d.ts → generator/utils.d.ts} +4 -9
- package/dist/generator/utils.d.ts.map +1 -0
- package/dist/generator/utils.js +57 -0
- package/dist/generator/utils.js.map +1 -0
- package/dist/helpers.d.ts +20 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +98 -18
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -26
- package/dist/index.js.map +1 -1
- package/dist/{parse_args.d.ts → loader.d.ts} +2 -5
- package/dist/loader.d.ts.map +1 -0
- package/dist/loader.js +144 -0
- package/dist/loader.js.map +1 -0
- package/dist/options.d.ts +34 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/options.js +162 -0
- package/dist/options.js.map +1 -0
- package/dist/plugins/browser-console.d.ts +5 -4
- package/dist/plugins/browser-console.d.ts.map +1 -1
- package/dist/plugins/browser-console.js +27 -8
- package/dist/plugins/browser-console.js.map +1 -1
- package/dist/plugins/network.d.ts +20 -33
- package/dist/plugins/network.d.ts.map +1 -1
- package/dist/plugins/network.js +173 -214
- package/dist/plugins/network.js.map +1 -1
- package/dist/plugins/performance.d.ts +4 -19
- package/dist/plugins/performance.d.ts.map +1 -1
- package/dist/plugins/performance.js +5 -5
- package/dist/plugins/performance.js.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +9 -5
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.js +44 -29
- package/dist/plugins/plugin-manager.js.map +1 -1
- package/dist/plugins/tracing.d.ts +6 -6
- package/dist/plugins/tracing.d.ts.map +1 -1
- package/dist/plugins/tracing.js +8 -7
- package/dist/plugins/tracing.js.map +1 -1
- package/dist/push/bundler.d.ts +34 -0
- package/dist/push/bundler.d.ts.map +1 -0
- package/dist/push/bundler.js +114 -0
- package/dist/push/bundler.js.map +1 -0
- package/dist/{reporters/reporter.js → push/index.d.ts} +4 -3
- package/dist/push/index.d.ts.map +1 -0
- package/dist/push/index.js +55 -0
- package/dist/push/index.js.map +1 -0
- package/dist/push/monitor.d.ts +32 -0
- package/dist/push/monitor.d.ts.map +1 -0
- package/dist/push/monitor.js +62 -0
- package/dist/push/monitor.js.map +1 -0
- package/dist/push/plugin.d.ts +33 -0
- package/dist/push/plugin.d.ts.map +1 -0
- package/dist/push/plugin.js +124 -0
- package/dist/push/plugin.js.map +1 -0
- package/dist/push/request.d.ts +42 -0
- package/dist/push/request.d.ts.map +1 -0
- package/dist/push/request.js +84 -0
- package/dist/push/request.js.map +1 -0
- package/dist/reporters/base.d.ts +14 -6
- package/dist/reporters/base.d.ts.map +1 -1
- package/dist/reporters/base.js +54 -48
- package/dist/reporters/base.js.map +1 -1
- package/dist/reporters/index.d.ts +18 -8
- package/dist/reporters/index.d.ts.map +1 -1
- package/dist/reporters/index.js.map +1 -1
- package/dist/reporters/json.d.ts +18 -67
- package/dist/reporters/json.d.ts.map +1 -1
- package/dist/reporters/json.js +153 -175
- package/dist/reporters/json.js.map +1 -1
- package/dist/reporters/junit.d.ts +7 -1
- package/dist/reporters/junit.d.ts.map +1 -1
- package/dist/reporters/junit.js +94 -89
- package/dist/reporters/junit.js.map +1 -1
- package/dist/sdk/lh-trace-processor.d.ts +35 -9
- package/dist/sdk/lh-trace-processor.d.ts.map +1 -1
- package/dist/sdk/lh-trace-processor.js +114 -53
- package/dist/sdk/lh-trace-processor.js.map +1 -1
- package/dist/sdk/trace-metrics.d.ts +4 -4
- package/dist/sdk/trace-metrics.d.ts.map +1 -1
- package/dist/sdk/trace-metrics.js +5 -6
- package/dist/sdk/trace-metrics.js.map +1 -1
- package/dist/sdk/trace-processor.d.ts +11 -3
- package/dist/sdk/trace-processor.d.ts.map +1 -1
- package/dist/sdk/trace-processor.js +17 -9
- package/dist/sdk/trace-processor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1888
- package/package.json +31 -19
- package/src/cli.ts +187 -154
- package/src/common_types.ts +188 -34
- package/src/config.ts +2 -5
- package/src/core/gatherer.ts +55 -27
- package/src/core/index.ts +36 -15
- package/src/core/logger.ts +1 -12
- package/src/core/runner.ts +216 -152
- package/src/dsl/journey.ts +29 -5
- package/src/dsl/locations.ts +38 -0
- package/src/dsl/monitor.ts +87 -0
- package/src/dsl/step.ts +9 -2
- package/src/formatter/javascript.ts +367 -0
- package/src/generator/index.ts +212 -0
- package/src/generator/utils.ts +54 -0
- package/src/helpers.ts +106 -10
- package/src/index.ts +21 -22
- package/src/loader.ts +162 -0
- package/src/options.ts +173 -0
- package/src/plugins/browser-console.ts +30 -8
- package/src/plugins/network.ts +208 -267
- package/src/plugins/performance.ts +6 -22
- package/src/plugins/plugin-manager.ts +49 -31
- package/src/plugins/tracing.ts +8 -9
- package/src/push/bundler.ts +95 -0
- package/src/push/index.ts +59 -0
- package/src/push/monitor.ts +68 -0
- package/src/push/plugin.ts +114 -0
- package/src/push/request.ts +111 -0
- package/src/reporters/base.ts +63 -52
- package/src/reporters/index.ts +26 -3
- package/src/reporters/json.ts +203 -206
- package/src/reporters/junit.ts +98 -93
- package/src/sdk/lh-trace-processor.ts +132 -68
- package/src/sdk/trace-metrics.ts +10 -6
- package/src/sdk/trace-processor.ts +28 -13
- package/templates/.github/workflows/run-synthetics.yml +26 -0
- package/templates/README.md +21 -0
- package/templates/journeys/advanced-example-helpers.ts +54 -0
- package/templates/journeys/advanced-example.journey.ts +43 -0
- package/templates/journeys/example.journey.ts +18 -0
- package/templates/synthetics.config.ts +26 -0
- package/CHANGELOG.md +0 -102
- package/NOTICE.txt +0 -221
- package/dist/parse_args.d.ts.map +0 -1
- package/dist/parse_args.js +0 -89
- package/dist/parse_args.js.map +0 -1
- package/dist/reporters/reporter.d.ts.map +0 -1
- package/dist/reporters/reporter.js.map +0 -1
- package/src/parse_args.ts +0 -127
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
[](https://apm-ci.elastic.co/job/apm-agent-rum/job/elastic-synthetics/job/main/)
|
|
2
|
+
|
|
2
3
|
# Experimental Synthetics Agent
|
|
3
4
|
|
|
4
5
|
Synthetic Monitoring with Real Browsers.
|
|
5
|
-
**Please note this is
|
|
6
|
+
**Please note this is project is in beta status. Expect things to break and change!**
|
|
6
7
|
|
|
7
8
|
## Usage
|
|
8
9
|
|
|
@@ -20,7 +21,7 @@ npx @elastic/synthetics [options] [dir] [files] file
|
|
|
20
21
|
|
|
21
22
|
## Documentation
|
|
22
23
|
|
|
23
|
-
- [Introduction](https://www.elastic.co/guide/en/observability/current/
|
|
24
|
+
- [Introduction](https://www.elastic.co/guide/en/observability/current/monitor-uptime-synthetics.html#monitoring-synthetics)
|
|
24
25
|
- [CLI Options](https://www.elastic.co/guide/en/observability/current/synthetics-command-reference.html#elastic-synthetics-command)
|
|
25
26
|
- [Syntax](https://www.elastic.co/guide/en/observability/current/synthetics-create-test.html#synthetics-syntax)
|
|
26
27
|
- [Creating a Journey](https://www.elastic.co/guide/en/observability/current/synthetics-create-test.html#synthetics-create-journey)
|
package/dist/cli.js
CHANGED
|
@@ -24,180 +24,117 @@
|
|
|
24
24
|
* THE SOFTWARE.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
|
-
if (k2 === undefined) k2 = k;
|
|
29
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
30
|
-
}) : (function(o, m, k, k2) {
|
|
31
|
-
if (k2 === undefined) k2 = k;
|
|
32
|
-
o[k2] = m[k];
|
|
33
|
-
}));
|
|
34
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
35
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
36
|
-
}) : function(o, v) {
|
|
37
|
-
o["default"] = v;
|
|
38
|
-
});
|
|
39
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
40
|
-
if (mod && mod.__esModule) return mod;
|
|
41
|
-
var result = {};
|
|
42
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
43
|
-
__setModuleDefault(result, mod);
|
|
44
|
-
return result;
|
|
45
|
-
};
|
|
46
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
47
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
48
|
-
};
|
|
49
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
const commander_1 = require("commander");
|
|
50
29
|
const process_1 = require("process");
|
|
51
|
-
const
|
|
52
|
-
const
|
|
30
|
+
const reporters_1 = require("./reporters");
|
|
31
|
+
const options_1 = require("./options");
|
|
32
|
+
const loader_1 = require("./loader");
|
|
33
|
+
const _1 = require("./");
|
|
53
34
|
const core_1 = require("./core");
|
|
54
|
-
const
|
|
55
|
-
const
|
|
35
|
+
const monitor_1 = require("./dsl/monitor");
|
|
36
|
+
const push_1 = require("./push");
|
|
37
|
+
const path_1 = require("path");
|
|
38
|
+
const generator_1 = require("./generator");
|
|
56
39
|
const helpers_1 = require("./helpers");
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
for
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const suites = new Set();
|
|
94
|
-
const addSuite = absPath => {
|
|
95
|
-
logger_1.log(`Processing file: ${absPath}`);
|
|
96
|
-
suites.add(require.resolve(absPath));
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Match all files inside the directory with the
|
|
100
|
-
* .journey.{mjs|cjs|js|ts) extensions
|
|
101
|
-
*/
|
|
102
|
-
const pattern = parse_args_1.options.pattern
|
|
103
|
-
? new RegExp(parse_args_1.options.pattern, 'i')
|
|
104
|
-
: /.+\.journey\.([mc]js|[jt]s?)$/;
|
|
105
|
-
/**
|
|
106
|
-
* Ignore node_modules by default when running suites
|
|
107
|
-
*/
|
|
108
|
-
const ignored = /node_modules/i;
|
|
109
|
-
for (const input of inputs) {
|
|
110
|
-
const absPath = path_1.resolve(resolvedCwd, input);
|
|
40
|
+
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
|
|
41
|
+
const { name, version } = require('../package.json');
|
|
42
|
+
commander_1.program
|
|
43
|
+
.name(`npx ${name}`)
|
|
44
|
+
.usage('[options] [dir] [files] file')
|
|
45
|
+
.option('-c, --config <path>', 'configuration path (default: synthetics.config.js)')
|
|
46
|
+
.option('-p, --params <jsonstring>', 'JSON object that gets injected to all journeys', JSON.parse)
|
|
47
|
+
.addOption(new commander_1.Option('--reporter <value>', `output repoter format`).choices(Object.keys(reporters_1.reporters)))
|
|
48
|
+
.option('--pattern <pattern>', 'RegExp file patterns to search inside directory')
|
|
49
|
+
.option('--inline', 'Run inline journeys from heartbeat')
|
|
50
|
+
.option('-r, --require <modules...>', 'module(s) to preload')
|
|
51
|
+
.option('--no-headless', 'run browser in headful mode')
|
|
52
|
+
.option('--sandbox', 'enable chromium sandboxing')
|
|
53
|
+
.option('--rich-events', 'Mimics a heartbeat run')
|
|
54
|
+
.option('--capability <features...>', 'Enable capabilities through feature flags')
|
|
55
|
+
.addOption(new commander_1.Option('--screenshots [flag]', 'take screenshots at end of each step')
|
|
56
|
+
.choices(['on', 'off', 'only-on-failure'])
|
|
57
|
+
.default('on'))
|
|
58
|
+
.option('--dry-run', "don't actually execute anything, report only registered journeys")
|
|
59
|
+
.option('--tags <name...>', 'run only journeys with a tag that matches the glob')
|
|
60
|
+
.option('--match <name>', 'run only journeys with a name or tag that matches the glob')
|
|
61
|
+
.option('--outfd <fd>', 'specify a file descriptor for logs. Default is stdout', parseInt)
|
|
62
|
+
.option('--ws-endpoint <endpoint>', 'Browser WebSocket endpoint to connect to')
|
|
63
|
+
.option('--pause-on-error', 'pause on error until a keypress is made in the console. Useful during development')
|
|
64
|
+
.option('--ignore-https-errors', 'ignores any HTTPS errors in sites being tested, including ones related to unrecognized certs or signatures. This can be insecure!')
|
|
65
|
+
.option('--quiet-exit-code', 'always return 0 as an exit code status, regardless of test pass / fail. Only return > 0 exit codes on internal errors where the suite could not be run')
|
|
66
|
+
.option('--throttling <config>', 'JSON object to throttle network conditions for download and upload throughput in megabits/second and latency in milliseconds. Ex: { "download": 10, "upload": 5, "latency": 200 }.', options_1.parseThrottling, {})
|
|
67
|
+
.option('--no-throttling', 'Turns off default network throttling.')
|
|
68
|
+
.option('--playwright-options <jsonstring>', 'JSON object to pass in custom Playwright options for the agent. Options passed will be merged with Playwright options defined in your synthetics.config.js file. Options defined via --playwright-options take precedence.', JSON.parse)
|
|
69
|
+
.version(version)
|
|
70
|
+
.description('Run synthetic tests')
|
|
71
|
+
.action(async (cliArgs) => {
|
|
72
|
+
try {
|
|
73
|
+
await (0, loader_1.loadTestFiles)(cliArgs, commander_1.program.args);
|
|
74
|
+
const options = (0, options_1.normalizeOptions)(cliArgs);
|
|
75
|
+
const results = await (0, _1.run)(options);
|
|
111
76
|
/**
|
|
112
|
-
*
|
|
113
|
-
* the suites
|
|
77
|
+
* Exit with error status if any journey fails
|
|
114
78
|
*/
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
addSuite(abs);
|
|
79
|
+
if (!options.quietExitCode) {
|
|
80
|
+
for (const result of Object.values(results)) {
|
|
81
|
+
if (result.status === 'failed') {
|
|
82
|
+
process.exit(1);
|
|
120
83
|
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
addSuite(absPath);
|
|
84
|
+
}
|
|
125
85
|
}
|
|
126
86
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
(
|
|
130
|
-
if (parse_args_1.options.inline) {
|
|
131
|
-
const source = await readStdin();
|
|
132
|
-
loadInlineScript(source);
|
|
87
|
+
catch (e) {
|
|
88
|
+
console.error(e);
|
|
89
|
+
process.exit(1);
|
|
133
90
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
91
|
+
});
|
|
92
|
+
// Push command
|
|
93
|
+
commander_1.program
|
|
94
|
+
.command('push')
|
|
95
|
+
.description('Push journeys in the current directory to create monitors within the Kibana monitor management UI')
|
|
96
|
+
.option('--pattern <pattern>', 'RegExp file patterns to push inside current directory')
|
|
97
|
+
.option('--tags <name...>', 'push only journeys with a tag that matches the glob')
|
|
98
|
+
.option('--match <name>', 'push only journeys with a name or tag that matches the glob')
|
|
99
|
+
.option('--schedule <time-in-minutes>', "schedule in minutes for the pushed monitors. Setting `10`, for example, configures monitors which don't have an interval defined to run every 10 minutes.", parseInt)
|
|
100
|
+
.addOption(new commander_1.Option('--locations <locations...>', 'default list of locations from which your monitors will run.').choices(monitor_1.SyntheticsLocations))
|
|
101
|
+
.requiredOption('--project <project-id>', 'id that will be used for logically grouping monitors')
|
|
102
|
+
.requiredOption('--url <url>', 'kibana URL to upload the monitors')
|
|
103
|
+
.requiredOption('--auth <auth>', 'API key used for Kibana authentication(https://www.elastic.co/guide/en/kibana/master/api-keys.html).')
|
|
104
|
+
.option('--space <space>', 'the target Kibana spaces for the pushed monitors — spaces help you organise pushed monitors.', 'default')
|
|
105
|
+
.action(async (cmdOpts) => {
|
|
106
|
+
try {
|
|
107
|
+
await (0, loader_1.loadTestFiles)({ inline: false }, [(0, process_1.cwd)()]);
|
|
108
|
+
const options = (0, options_1.normalizeOptions)({ ...commander_1.program.opts(), ...cmdOpts });
|
|
109
|
+
if (!options.schedule) {
|
|
110
|
+
throw (0, helpers_1.error)(`Set default schedule in minutes for all monitors via '--schedule <time-in-minutes>' OR
|
|
111
|
+
configure via Synthetics config file under 'monitors.schedule' field.`);
|
|
146
112
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
* TS files without doing any extensive type checks
|
|
151
|
-
*/
|
|
152
|
-
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
|
|
153
|
-
require('ts-node').register({
|
|
154
|
-
transpileOnly: true,
|
|
155
|
-
compilerOptions: {
|
|
156
|
-
esModuleInterop: true,
|
|
157
|
-
allowJs: true,
|
|
158
|
-
target: 'es2018',
|
|
159
|
-
},
|
|
160
|
-
});
|
|
161
|
-
/**
|
|
162
|
-
* Handle piped files by reading the STDIN
|
|
163
|
-
* ex: ls example/suites/*.js | npx @elastic/synthetics
|
|
164
|
-
*/
|
|
165
|
-
const files = parse_args_1.default.args.length > 0
|
|
166
|
-
? parse_args_1.default.args
|
|
167
|
-
: (await readStdin()).split('\n').filter(Boolean);
|
|
168
|
-
const suites = await prepareSuites(files);
|
|
169
|
-
requireSuites(suites);
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Use the NODE_ENV variable to control the environment if its not explicity
|
|
173
|
-
* passed from either CLI or through the API
|
|
174
|
-
*/
|
|
175
|
-
const environment = parse_args_1.options.environment || process.env['NODE_ENV'];
|
|
176
|
-
/**
|
|
177
|
-
* Validate and handle configs
|
|
178
|
-
*/
|
|
179
|
-
const config = config_1.readConfig(environment, parse_args_1.options.config);
|
|
180
|
-
const params = deepmerge_1.default(config.params, JSON.parse(parse_args_1.options.suiteParams));
|
|
181
|
-
/**
|
|
182
|
-
* use JSON reporter if json flag is enabled
|
|
183
|
-
*/
|
|
184
|
-
const reporter = parse_args_1.options.json ? 'json' : parse_args_1.options.reporter;
|
|
185
|
-
const results = await _1.run({
|
|
186
|
-
params: Object.freeze(params),
|
|
187
|
-
environment,
|
|
188
|
-
reporter,
|
|
189
|
-
...parse_args_1.options,
|
|
190
|
-
});
|
|
191
|
-
/**
|
|
192
|
-
* Exit with error status if any journey fails
|
|
193
|
-
*/
|
|
194
|
-
for (const result of Object.values(results)) {
|
|
195
|
-
if (result.status === 'failed') {
|
|
196
|
-
process.exit(1);
|
|
113
|
+
if (!options.locations) {
|
|
114
|
+
throw (0, helpers_1.error)(`Set default location for all monitors via CLI as '--locations <locations...>' OR
|
|
115
|
+
configure via Synthetics config file under 'monitors.locations' field.`);
|
|
197
116
|
}
|
|
117
|
+
const monitors = core_1.runner.buildMonitors(options);
|
|
118
|
+
await (0, push_1.push)(monitors, cmdOpts);
|
|
119
|
+
}
|
|
120
|
+
catch (e) {
|
|
121
|
+
e && console.error(e);
|
|
122
|
+
process.exit(1);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
// Init command
|
|
126
|
+
commander_1.program
|
|
127
|
+
.command('init <project-dir>')
|
|
128
|
+
.description('Initalize Elastic synthetics project')
|
|
129
|
+
.action(async (dir) => {
|
|
130
|
+
try {
|
|
131
|
+
const generator = await new generator_1.Generator((0, path_1.resolve)(process.cwd(), dir));
|
|
132
|
+
await generator.setup();
|
|
133
|
+
}
|
|
134
|
+
catch (e) {
|
|
135
|
+
e && (0, helpers_1.error)(e);
|
|
136
|
+
process.exit(1);
|
|
198
137
|
}
|
|
199
|
-
})().catch(e => {
|
|
200
|
-
console.error(e);
|
|
201
|
-
process.exit(1);
|
|
202
138
|
});
|
|
139
|
+
commander_1.program.parse(process.argv);
|
|
203
140
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;AAEH,yCAA4C;AAC5C,qCAA8B;AAE9B,2CAAwC;AACxC,uCAA8D;AAC9D,qCAAyC;AACzC,yBAAyB;AACzB,iCAAgC;AAChC,2CAAoD;AACpD,iCAA8B;AAC9B,+BAA+B;AAC/B,2CAAwC;AACxC,uCAAkC;AAElC,iEAAiE;AACjE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAErD,mBAAO;KACJ,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC;KACnB,KAAK,CAAC,8BAA8B,CAAC;KACrC,MAAM,CACL,qBAAqB,EACrB,oDAAoD,CACrD;KACA,MAAM,CACL,2BAA2B,EAC3B,gDAAgD,EAChD,IAAI,CAAC,KAAK,CACX;KACA,SAAS,CACR,IAAI,kBAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAC,OAAO,CAC/D,MAAM,CAAC,IAAI,CAAC,qBAAS,CAAC,CACvB,CACF;KACA,MAAM,CACL,qBAAqB,EACrB,iDAAiD,CAClD;KACA,MAAM,CAAC,UAAU,EAAE,oCAAoC,CAAC;KACxD,MAAM,CAAC,4BAA4B,EAAE,sBAAsB,CAAC;KAC5D,MAAM,CAAC,eAAe,EAAE,6BAA6B,CAAC;KACtD,MAAM,CAAC,WAAW,EAAE,4BAA4B,CAAC;KACjD,MAAM,CAAC,eAAe,EAAE,wBAAwB,CAAC;KACjD,MAAM,CACL,4BAA4B,EAC5B,2CAA2C,CAC5C;KACA,SAAS,CACR,IAAI,kBAAM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pE;QACD,MAAM,QAAQ,GAAG,aAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,IAAA,WAAI,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;KAC/B;IAAC,OAAO,CAAC,EAAE;QACV,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;AACH,CAAC,CAAC,CAAC;AAEL,eAAe;AACf,mBAAO;KACJ,OAAO,CAAC,oBAAoB,CAAC;KAC7B,WAAW,CAAC,sCAAsC,CAAC;KACnD,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;IAC5B,IAAI;QACF,MAAM,SAAS,GAAG,MAAM,IAAI,qBAAS,CAAC,IAAA,cAAO,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;QACnE,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;KACzB;IAAC,OAAO,CAAC,EAAE;QACV,CAAC,IAAI,IAAA,eAAK,EAAC,CAAC,CAAC,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;AACH,CAAC,CAAC,CAAC;AAEL,mBAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/common_types.d.ts
CHANGED
|
@@ -22,23 +22,40 @@
|
|
|
22
22
|
* THE SOFTWARE.
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
-
import {
|
|
25
|
+
import { BrowserContextOptions, LaunchOptions, CDPSession, ChromiumBrowser, ChromiumBrowserContext, Page } from 'playwright-chromium';
|
|
26
26
|
import { Step } from './dsl';
|
|
27
|
-
import {
|
|
27
|
+
import { BuiltInReporterName, ReporterInstance } from './reporters';
|
|
28
|
+
import { MonitorConfig } from './dsl/monitor';
|
|
28
29
|
export declare type VoidCallback = () => void;
|
|
29
|
-
export declare type
|
|
30
|
+
export declare type Location = {
|
|
31
|
+
file: string;
|
|
32
|
+
line: number;
|
|
33
|
+
column: number;
|
|
34
|
+
};
|
|
35
|
+
export declare type Params = Record<string, any>;
|
|
30
36
|
export declare type HooksArgs = {
|
|
31
37
|
env: string;
|
|
32
38
|
params: Params;
|
|
33
39
|
};
|
|
34
40
|
export declare type HooksCallback = (args: HooksArgs) => void;
|
|
35
41
|
export declare type StatusValue = 'succeeded' | 'failed' | 'skipped';
|
|
36
|
-
export declare type
|
|
42
|
+
export declare type NetworkConditions = {
|
|
43
|
+
offline: boolean;
|
|
44
|
+
downloadThroughput: number;
|
|
45
|
+
uploadThroughput: number;
|
|
46
|
+
latency: number;
|
|
47
|
+
};
|
|
48
|
+
export declare type Driver = {
|
|
49
|
+
browser: ChromiumBrowser;
|
|
50
|
+
context: ChromiumBrowserContext;
|
|
51
|
+
page: Page;
|
|
52
|
+
client: CDPSession;
|
|
53
|
+
};
|
|
37
54
|
export declare type TraceOutput = {
|
|
38
55
|
name: string;
|
|
39
56
|
type: string;
|
|
40
57
|
start: MetricDuration;
|
|
41
|
-
|
|
58
|
+
duration?: MetricDuration;
|
|
42
59
|
score?: number;
|
|
43
60
|
};
|
|
44
61
|
declare type MetricDuration = {
|
|
@@ -64,26 +81,61 @@ export declare type BrowserInfo = {
|
|
|
64
81
|
name: string;
|
|
65
82
|
version: string;
|
|
66
83
|
};
|
|
84
|
+
export declare type Screenshot = {
|
|
85
|
+
timestamp: number;
|
|
86
|
+
step: Step;
|
|
87
|
+
data: string;
|
|
88
|
+
};
|
|
89
|
+
export declare type SecurityDetails = {
|
|
90
|
+
issuer?: string;
|
|
91
|
+
protocol?: string;
|
|
92
|
+
subjectName?: string;
|
|
93
|
+
validFrom?: number;
|
|
94
|
+
validTo?: number;
|
|
95
|
+
};
|
|
96
|
+
export declare type Request = {
|
|
97
|
+
method: string;
|
|
98
|
+
url: string;
|
|
99
|
+
headers: Record<string, string>;
|
|
100
|
+
bytes?: number;
|
|
101
|
+
body?: {
|
|
102
|
+
bytes: number;
|
|
103
|
+
};
|
|
104
|
+
referrer?: string;
|
|
105
|
+
};
|
|
106
|
+
export declare type Response = {
|
|
107
|
+
url?: string;
|
|
108
|
+
status: number;
|
|
109
|
+
statusText?: string;
|
|
110
|
+
mimeType?: string;
|
|
111
|
+
headers: Record<string, string>;
|
|
112
|
+
bytes?: number;
|
|
113
|
+
body?: {
|
|
114
|
+
bytes: number;
|
|
115
|
+
};
|
|
116
|
+
transferSize?: number;
|
|
117
|
+
redirectURL?: string;
|
|
118
|
+
securityDetails?: SecurityDetails;
|
|
119
|
+
remoteIPAddress?: string;
|
|
120
|
+
remotePort?: number;
|
|
121
|
+
fromServiceWorker?: boolean;
|
|
122
|
+
};
|
|
67
123
|
export declare type NetworkInfo = {
|
|
68
124
|
url: string;
|
|
69
125
|
browser: BrowserInfo;
|
|
70
|
-
method: string;
|
|
71
126
|
type: string;
|
|
72
|
-
request:
|
|
73
|
-
response
|
|
127
|
+
request: Request;
|
|
128
|
+
response: Response;
|
|
74
129
|
isNavigationRequest: boolean;
|
|
75
130
|
requestSentTime: number;
|
|
76
131
|
loadEndTime: number;
|
|
77
132
|
responseReceivedTime: number;
|
|
78
|
-
status: number;
|
|
79
133
|
resourceSize: number;
|
|
80
134
|
transferSize: number;
|
|
81
|
-
timings
|
|
135
|
+
timings: {
|
|
82
136
|
blocked: number;
|
|
83
|
-
queueing: number;
|
|
84
137
|
dns: number;
|
|
85
138
|
ssl: number;
|
|
86
|
-
proxy: number;
|
|
87
139
|
connect: number;
|
|
88
140
|
send: number;
|
|
89
141
|
wait: number;
|
|
@@ -91,9 +143,11 @@ export declare type NetworkInfo = {
|
|
|
91
143
|
total: number;
|
|
92
144
|
};
|
|
93
145
|
} & DefaultPluginOutput;
|
|
146
|
+
export declare type PageMetrics = Record<string, number>;
|
|
94
147
|
export declare type BrowserMessage = {
|
|
95
148
|
text: string;
|
|
96
149
|
type: string;
|
|
150
|
+
error?: Error;
|
|
97
151
|
} & DefaultPluginOutput;
|
|
98
152
|
export declare type PluginOutput = {
|
|
99
153
|
filmstrips?: Array<Filmstrip>;
|
|
@@ -102,32 +156,100 @@ export declare type PluginOutput = {
|
|
|
102
156
|
traces?: Array<TraceOutput>;
|
|
103
157
|
metrics?: PerfMetrics;
|
|
104
158
|
};
|
|
105
|
-
export declare type
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
filmstrips?: boolean;
|
|
115
|
-
trace?: boolean;
|
|
159
|
+
export declare type ScreenshotOptions = 'on' | 'off' | 'only-on-failure';
|
|
160
|
+
export declare type ThrottlingOptions = {
|
|
161
|
+
download?: number;
|
|
162
|
+
upload?: number;
|
|
163
|
+
latency?: number;
|
|
164
|
+
};
|
|
165
|
+
declare type BaseArgs = {
|
|
166
|
+
params?: Params;
|
|
167
|
+
screenshots?: ScreenshotOptions;
|
|
116
168
|
dryRun?: boolean;
|
|
117
|
-
network?: boolean;
|
|
118
|
-
pauseOnError?: boolean;
|
|
119
|
-
reporter?: Reporters;
|
|
120
|
-
wsEndpoint?: string;
|
|
121
|
-
sandbox?: boolean;
|
|
122
|
-
json?: boolean;
|
|
123
|
-
pattern?: string;
|
|
124
|
-
inline: boolean;
|
|
125
169
|
match?: string;
|
|
126
170
|
tags?: Array<string>;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
171
|
+
outfd?: number;
|
|
172
|
+
wsEndpoint?: string;
|
|
173
|
+
pauseOnError?: boolean;
|
|
174
|
+
ignoreHttpsErrors?: boolean;
|
|
175
|
+
playwrightOptions?: PlaywrightOptions;
|
|
176
|
+
quietExitCode?: boolean;
|
|
177
|
+
throttling?: ThrottlingOptions;
|
|
178
|
+
schedule?: MonitorConfig['schedule'];
|
|
179
|
+
locations?: MonitorConfig['locations'];
|
|
180
|
+
};
|
|
181
|
+
export declare type CliArgs = BaseArgs & {
|
|
182
|
+
config?: string;
|
|
183
|
+
reporter?: BuiltInReporterName;
|
|
184
|
+
pattern?: string;
|
|
185
|
+
inline?: boolean;
|
|
186
|
+
require?: Array<string>;
|
|
187
|
+
headless?: boolean;
|
|
188
|
+
sandbox?: boolean;
|
|
130
189
|
richEvents?: boolean;
|
|
190
|
+
capability?: Array<string>;
|
|
191
|
+
ignoreHttpsErrors?: boolean;
|
|
192
|
+
throttling?: boolean | ThrottlingOptions;
|
|
193
|
+
};
|
|
194
|
+
export declare type RunOptions = BaseArgs & {
|
|
195
|
+
metrics?: boolean;
|
|
196
|
+
ssblocks?: boolean;
|
|
197
|
+
network?: boolean;
|
|
198
|
+
trace?: boolean;
|
|
199
|
+
filmstrips?: boolean;
|
|
200
|
+
environment?: string;
|
|
201
|
+
playwrightOptions?: PlaywrightOptions;
|
|
202
|
+
networkConditions?: NetworkConditions;
|
|
203
|
+
reporter?: BuiltInReporterName | ReporterInstance;
|
|
204
|
+
};
|
|
205
|
+
export declare type PushOptions = {
|
|
206
|
+
auth: string;
|
|
207
|
+
url: string;
|
|
208
|
+
project: string;
|
|
209
|
+
space: string;
|
|
210
|
+
schedule?: MonitorConfig['schedule'];
|
|
211
|
+
locations?: MonitorConfig['locations'];
|
|
212
|
+
};
|
|
213
|
+
export declare type PlaywrightOptions = LaunchOptions & BrowserContextOptions;
|
|
214
|
+
export declare type SyntheticsConfig = {
|
|
215
|
+
params?: Params;
|
|
216
|
+
playwrightOptions?: PlaywrightOptions;
|
|
217
|
+
monitor?: MonitorConfig;
|
|
218
|
+
};
|
|
219
|
+
/** Runner Payload types */
|
|
220
|
+
export declare type JourneyResult = {
|
|
221
|
+
status: StatusValue;
|
|
222
|
+
error?: Error;
|
|
223
|
+
networkinfo?: PluginOutput['networkinfo'];
|
|
224
|
+
browserconsole?: PluginOutput['browserconsole'];
|
|
225
|
+
};
|
|
226
|
+
export declare type StepResult = {
|
|
227
|
+
status: StatusValue;
|
|
228
|
+
url?: string;
|
|
229
|
+
error?: Error;
|
|
230
|
+
pagemetrics?: PageMetrics;
|
|
231
|
+
filmstrips?: PluginOutput['filmstrips'];
|
|
232
|
+
metrics?: PluginOutput['metrics'];
|
|
233
|
+
traces?: PluginOutput['traces'];
|
|
234
|
+
};
|
|
235
|
+
/** Reporter and Runner contract */
|
|
236
|
+
export declare type StartEvent = {
|
|
237
|
+
numJourneys: number;
|
|
238
|
+
networkConditions?: NetworkConditions;
|
|
239
|
+
};
|
|
240
|
+
export declare type JourneyStartResult = {
|
|
241
|
+
timestamp: number;
|
|
242
|
+
params?: Params;
|
|
243
|
+
};
|
|
244
|
+
export declare type JourneyEndResult = JourneyStartResult & JourneyResult & {
|
|
245
|
+
start: number;
|
|
246
|
+
end: number;
|
|
247
|
+
options: RunOptions;
|
|
248
|
+
timestamp: number;
|
|
249
|
+
};
|
|
250
|
+
export declare type StepEndResult = StepResult & {
|
|
251
|
+
start: number;
|
|
252
|
+
end: number;
|
|
131
253
|
};
|
|
132
254
|
export {};
|
|
133
255
|
//# sourceMappingURL=common_types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common_types.d.ts","sourceRoot":"","sources":["../src/common_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"common_types.d.ts","sourceRoot":"","sources":["../src/common_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EACL,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,eAAe,EACf,sBAAsB,EACtB,IAAI,EACL,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,oBAAY,YAAY,GAAG,MAAM,IAAI,CAAC;AACtC,oBAAY,QA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,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAC1C,cAAc,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;CACjD,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CACjC,CAAC;AAEF,mCAAmC;AACnC,oBAAY,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,gBAAgB,GAAG,kBAAkB,GAC/C,aAAa,GAAG;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEJ,oBAAY,aAAa,GAAG,UAAU,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
* THE SOFTWARE.
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
export declare function readConfig(env: string, config?: string): Config;
|
|
29
|
-
export {};
|
|
25
|
+
import { SyntheticsConfig } from './common_types';
|
|
26
|
+
export declare function readConfig(env: string, config?: string): SyntheticsConfig;
|
|
30
27
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAsBzE"}
|