@elastic/synthetics 1.0.0-beta.4 → 1.0.0-beta.41
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 +137 -160
- package/dist/cli.js.map +1 -1
- package/dist/common_types.d.ts +161 -31
- package/dist/common_types.d.ts.map +1 -1
- package/dist/config.d.ts +3 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -6
- package/dist/config.js.map +1 -1
- package/dist/core/browser-service.d.ts +1 -1
- package/dist/core/browser-service.d.ts.map +1 -1
- package/dist/core/browser-service.js +7 -6
- package/dist/core/browser-service.js.map +1 -1
- package/dist/core/expect.d.ts +25 -25
- package/dist/core/expect.d.ts.map +1 -1
- package/dist/core/expect.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 +53 -15
- 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 +12 -63
- package/dist/core/runner.d.ts.map +1 -1
- package/dist/core/runner.js +156 -90
- package/dist/core/runner.js.map +1 -1
- package/dist/core/transform.d.ts +37 -0
- package/dist/core/transform.d.ts.map +1 -0
- package/dist/core/transform.js +148 -0
- package/dist/core/transform.js.map +1 -0
- package/dist/dsl/index.js +5 -1
- package/dist/dsl/index.js.map +1 -1
- package/dist/dsl/journey.d.ts +9 -4
- package/dist/dsl/journey.d.ts.map +1 -1
- package/dist/dsl/journey.js +37 -9
- package/dist/dsl/journey.js.map +1 -1
- package/dist/dsl/monitor.d.ts +83 -0
- package/dist/dsl/monitor.d.ts.map +1 -0
- package/dist/dsl/monitor.js +108 -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 +6 -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 +298 -0
- package/dist/formatter/javascript.js.map +1 -0
- package/dist/generator/index.d.ts +24 -0
- package/dist/generator/index.d.ts.map +1 -0
- package/dist/generator/index.js +241 -0
- package/dist/generator/index.js.map +1 -0
- package/dist/{reporters/reporter.js → generator/utils.d.ts} +5 -3
- package/dist/generator/utils.d.ts.map +1 -0
- package/dist/generator/utils.js +84 -0
- package/dist/generator/utils.js.map +1 -0
- package/dist/helpers.d.ts +28 -3
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +152 -20
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -26
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +34 -0
- package/dist/loader.d.ts.map +1 -0
- package/dist/loader.js +149 -0
- package/dist/loader.js.map +1 -0
- package/dist/locations/index.d.ts +45 -0
- package/dist/locations/index.d.ts.map +1 -0
- package/dist/locations/index.js +83 -0
- package/dist/locations/index.js.map +1 -0
- package/dist/{reporters/reporter.d.ts → locations/public-locations.d.ts} +12 -8
- package/dist/locations/public-locations.d.ts.map +1 -0
- package/dist/locations/public-locations.js +41 -0
- package/dist/locations/public-locations.js.map +1 -0
- package/dist/options.d.ts +41 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/options.js +198 -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 +44 -24
- package/dist/plugins/browser-console.js.map +1 -1
- package/dist/plugins/index.js +5 -1
- package/dist/plugins/index.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 +177 -216
- 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 +6 -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 +46 -30
- 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 +10 -7
- package/dist/plugins/tracing.js.map +1 -1
- package/dist/push/bundler.d.ts +35 -0
- package/dist/push/bundler.d.ts.map +1 -0
- package/dist/push/bundler.js +131 -0
- package/dist/push/bundler.js.map +1 -0
- package/dist/push/index.d.ts +9 -0
- package/dist/push/index.d.ts.map +1 -0
- package/dist/push/index.js +227 -0
- package/dist/push/index.js.map +1 -0
- package/dist/push/kibana_api.d.ts +56 -0
- package/dist/push/kibana_api.d.ts.map +1 -0
- package/dist/push/kibana_api.js +135 -0
- package/dist/push/kibana_api.js.map +1 -0
- package/dist/push/monitor.d.ts +51 -0
- package/dist/push/monitor.d.ts.map +1 -0
- package/dist/push/monitor.js +244 -0
- package/dist/push/monitor.js.map +1 -0
- package/dist/{parse_args.d.ts → push/plugin.d.ts} +9 -6
- package/dist/push/plugin.d.ts.map +1 -0
- package/dist/push/plugin.js +66 -0
- package/dist/push/plugin.js.map +1 -0
- package/dist/push/request.d.ts +45 -0
- package/dist/push/request.d.ts.map +1 -0
- package/dist/push/request.js +109 -0
- package/dist/push/request.js.map +1 -0
- package/dist/push/utils.d.ts +31 -0
- package/dist/push/utils.d.ts.map +1 -0
- package/dist/push/utils.js +64 -0
- package/dist/push/utils.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 +58 -50
- 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 +17 -62
- package/dist/reporters/json.d.ts.map +1 -1
- package/dist/reporters/json.js +149 -179
- 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 +90 -95
- 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 +3 -4
- 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/package.json +39 -24
- package/src/cli.ts +219 -151
- package/src/common_types.ts +193 -31
- package/src/config.ts +3 -6
- package/src/core/expect.ts +58 -24
- package/src/core/gatherer.ts +64 -24
- package/src/core/index.ts +36 -15
- package/src/core/logger.ts +1 -12
- package/src/core/runner.ts +151 -136
- package/src/core/transform.ts +160 -0
- package/src/dsl/journey.ts +39 -6
- package/src/dsl/monitor.ts +140 -0
- package/src/dsl/step.ts +9 -2
- package/src/formatter/javascript.ts +367 -0
- package/src/generator/index.ts +308 -0
- package/src/generator/utils.ts +84 -0
- package/src/helpers.ts +159 -13
- package/src/index.ts +22 -22
- package/src/loader.ts +167 -0
- package/src/locations/index.ts +95 -0
- package/src/{reporters/reporter.ts → locations/public-locations.ts} +12 -9
- package/src/options.ts +227 -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 +112 -0
- package/src/push/index.ts +282 -0
- package/src/push/kibana_api.ts +191 -0
- package/src/push/monitor.ts +276 -0
- package/src/push/plugin.ts +66 -0
- package/src/push/request.ts +141 -0
- package/src/push/utils.ts +77 -0
- package/src/reporters/base.ts +63 -52
- package/src/reporters/index.ts +26 -3
- package/src/reporters/json.ts +183 -202
- package/src/reporters/junit.ts +98 -93
- package/src/sdk/lh-trace-processor.ts +132 -68
- package/src/sdk/trace-metrics.ts +8 -4
- package/src/sdk/trace-processor.ts +28 -13
- package/templates/.github/workflows/run-synthetics.yml +27 -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/lightweight/heartbeat.yml +8 -0
- package/templates/synthetics.config.ts +35 -0
- package/CHANGELOG.md +0 -131
- package/NOTICE.txt +0 -221
- package/dist/parse_args.d.ts.map +0 -1
- package/dist/parse_args.js +0 -95
- 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/dist/tsconfig.tsbuildinfo +0 -1888
- package/src/parse_args.ts +0 -135
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MIT License
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2020-present, Elastic NV
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.formatStaleMonitors = exports.formatFailedMonitors = exports.formatAPIError = exports.formatNotFoundError = exports.ok = exports.handleError = exports.sendReqAndHandleError = exports.sendRequest = void 0;
|
|
28
|
+
const colors_1 = require("kleur/colors");
|
|
29
|
+
const undici_1 = require("undici");
|
|
30
|
+
const helpers_1 = require("../helpers");
|
|
31
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
32
|
+
const { version } = require('../../package.json');
|
|
33
|
+
async function sendRequest(options) {
|
|
34
|
+
return await (0, undici_1.request)(options.url, {
|
|
35
|
+
method: options.method,
|
|
36
|
+
body: options.body,
|
|
37
|
+
headers: {
|
|
38
|
+
authorization: `ApiKey ${options.auth}`,
|
|
39
|
+
'content-type': 'application/json',
|
|
40
|
+
'user-agent': `Elastic/Synthetics ${version}`,
|
|
41
|
+
'kbn-xsrf': 'true',
|
|
42
|
+
},
|
|
43
|
+
headersTimeout: 60 * 1000,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
exports.sendRequest = sendRequest;
|
|
47
|
+
async function sendReqAndHandleError(options) {
|
|
48
|
+
const { statusCode, body } = await sendRequest(options);
|
|
49
|
+
return await (await handleError(statusCode, options.url, body)).json();
|
|
50
|
+
}
|
|
51
|
+
exports.sendReqAndHandleError = sendReqAndHandleError;
|
|
52
|
+
// Handle bad status code errors from Kibana API and format the
|
|
53
|
+
// error message to be displayed to the user.
|
|
54
|
+
// returns the response stream if no error is found
|
|
55
|
+
async function handleError(statusCode, url, body) {
|
|
56
|
+
if (statusCode === 404) {
|
|
57
|
+
throw formatNotFoundError(url, await body.text());
|
|
58
|
+
}
|
|
59
|
+
else if (!ok(statusCode)) {
|
|
60
|
+
let parsed;
|
|
61
|
+
try {
|
|
62
|
+
parsed = await body.json();
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
throw formatAPIError(statusCode, 'unexpected non-JSON error', await body.text());
|
|
66
|
+
}
|
|
67
|
+
throw formatAPIError(statusCode, parsed.error, parsed.message);
|
|
68
|
+
}
|
|
69
|
+
return body;
|
|
70
|
+
}
|
|
71
|
+
exports.handleError = handleError;
|
|
72
|
+
function ok(statusCode) {
|
|
73
|
+
return statusCode >= 200 && statusCode <= 299;
|
|
74
|
+
}
|
|
75
|
+
exports.ok = ok;
|
|
76
|
+
function formatNotFoundError(url, message) {
|
|
77
|
+
return (0, colors_1.red)((0, colors_1.bold)(`${helpers_1.symbols['failed']} Please check your kibana url: ${url} and try again - 404:${message}`));
|
|
78
|
+
}
|
|
79
|
+
exports.formatNotFoundError = formatNotFoundError;
|
|
80
|
+
function formatAPIError(statuCode, error, message) {
|
|
81
|
+
let outer = (0, colors_1.bold)(`${helpers_1.symbols['failed']} Error\n`);
|
|
82
|
+
let inner = (0, colors_1.bold)(`${helpers_1.symbols['failed']} monitor creation failed - ${statuCode}:${error}\n`);
|
|
83
|
+
inner += (0, helpers_1.indent)(message, ' ');
|
|
84
|
+
outer += (0, helpers_1.indent)(inner);
|
|
85
|
+
return (0, colors_1.red)(outer);
|
|
86
|
+
}
|
|
87
|
+
exports.formatAPIError = formatAPIError;
|
|
88
|
+
function formatMonitorError(errors) {
|
|
89
|
+
let outer = '';
|
|
90
|
+
for (const error of errors) {
|
|
91
|
+
const monitorId = error.id ? `: monitor(${error.id})` : '';
|
|
92
|
+
let inner = (0, colors_1.bold)(`> ${error.reason}${monitorId}\n`);
|
|
93
|
+
inner += (0, helpers_1.indent)(error.details, ' ');
|
|
94
|
+
outer += (0, helpers_1.indent)(inner) + '\n';
|
|
95
|
+
outer += '\n';
|
|
96
|
+
}
|
|
97
|
+
return outer;
|
|
98
|
+
}
|
|
99
|
+
function formatFailedMonitors(errors) {
|
|
100
|
+
const heading = (0, colors_1.bold)(`${helpers_1.symbols['failed']} Error\n`);
|
|
101
|
+
return (0, colors_1.red)(heading + formatMonitorError(errors));
|
|
102
|
+
}
|
|
103
|
+
exports.formatFailedMonitors = formatFailedMonitors;
|
|
104
|
+
function formatStaleMonitors(errors) {
|
|
105
|
+
const heading = (0, colors_1.bold)(`${helpers_1.symbols['warning']} Warnings\n`);
|
|
106
|
+
return (0, colors_1.yellow)(heading + formatMonitorError(errors));
|
|
107
|
+
}
|
|
108
|
+
exports.formatStaleMonitors = formatStaleMonitors;
|
|
109
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/push/request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH,yCAAiD;AAEjD,mCAAiC;AACjC,wCAA6C;AAE7C,uDAAuD;AACvD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAS3C,KAAK,UAAU,WAAW,CAAC,OAA0B;IAC1D,OAAO,MAAM,IAAA,gBAAO,EAAC,OAAO,CAAC,GAAG,EAAE;QAChC,MAAM,EAAE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AC9B,KAAK,IAAI,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAgB,oBAAoB,CAAC,MAAyB;IAC5D,MAAM,OAAO,GAAG,IAAA,aAAI,EAAC,GAAG,iBAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrD,OAAO,IAAA,YAAG,EAAC,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;AACnD,CAAC;AAHD,oDAGC;AAED,SAAgB,mBAAmB,CAAC,MAAyB;IAC3D,MAAM,OAAO,GAAG,IAAA,aAAI,EAAC,GAAG,iBAAO,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IACzD,OAAO,IAAA,eAAM,EAAC,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;AACtD,CAAC;AAHD,kDAGC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2020-present, Elastic NV
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
|
14
|
+
* all copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
* THE SOFTWARE.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
import { PushOptions } from '../common_types';
|
|
26
|
+
export declare function logDiff<T extends Set<string>>(newIDs: T, changedIDs: T, removedIDs: T, unchangedIDs: T): void;
|
|
27
|
+
export declare function getChunks(arr: any[], size: number): any[];
|
|
28
|
+
declare type Operation = 'status' | 'bulk_get' | 'bulk_update' | 'bulk_delete' | 'legacy' | 'location';
|
|
29
|
+
export declare function generateURL(options: PushOptions, operation: Operation): string;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/push/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,wBAAgB,OAAO,CAAC,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAC3C,MAAM,EAAE,CAAC,EACT,UAAU,EAAE,CAAC,EACb,UAAU,EAAE,CAAC,EACb,YAAY,EAAE,CAAC,QAShB;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,SAMjD;AAED,aAAK,SAAS,GACV,QAAQ,GACR,UAAU,GACV,aAAa,GACb,aAAa,GACb,QAAQ,GACR,UAAU,CAAC;AAEf,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,UAgBrE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MIT License
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2020-present, Elastic NV
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.generateURL = exports.getChunks = exports.logDiff = void 0;
|
|
28
|
+
const helpers_1 = require("../helpers");
|
|
29
|
+
const colors_1 = require("kleur/colors");
|
|
30
|
+
function logDiff(newIDs, changedIDs, removedIDs, unchangedIDs) {
|
|
31
|
+
(0, helpers_1.progress)('Monitor Diff: ' +
|
|
32
|
+
(0, colors_1.green)(`Added(${newIDs.size}) `) +
|
|
33
|
+
(0, colors_1.yellow)(`Updated(${changedIDs.size}) `) +
|
|
34
|
+
(0, colors_1.red)(`Removed(${removedIDs.size}) `) +
|
|
35
|
+
(0, colors_1.grey)(`Unchanged(${unchangedIDs.size})`));
|
|
36
|
+
}
|
|
37
|
+
exports.logDiff = logDiff;
|
|
38
|
+
function getChunks(arr, size) {
|
|
39
|
+
const chunks = [];
|
|
40
|
+
for (let i = 0; i < arr.length; i += size) {
|
|
41
|
+
chunks.push(arr.slice(i, i + size));
|
|
42
|
+
}
|
|
43
|
+
return chunks;
|
|
44
|
+
}
|
|
45
|
+
exports.getChunks = getChunks;
|
|
46
|
+
function generateURL(options, operation) {
|
|
47
|
+
const url = (0, helpers_1.removeTrailingSlash)(options.url);
|
|
48
|
+
switch (operation) {
|
|
49
|
+
case 'status':
|
|
50
|
+
return `${url}/s/${options.space}/api/status`;
|
|
51
|
+
case 'bulk_get':
|
|
52
|
+
case 'bulk_update':
|
|
53
|
+
case 'bulk_delete':
|
|
54
|
+
return `${url}/s/${options.space}/api/synthetics/project/${options.id}/monitors`;
|
|
55
|
+
case 'legacy':
|
|
56
|
+
return `${url}/s/${options.space}/api/synthetics/service/project/monitors`;
|
|
57
|
+
case 'location':
|
|
58
|
+
return `${url}/internal/uptime/service/locations`;
|
|
59
|
+
default:
|
|
60
|
+
throw new Error('Invalid operation');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.generateURL = generateURL;
|
|
64
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/push/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH,wCAA2D;AAC3D,yCAAwD;AAGxD,SAAgB,OAAO,CACrB,MAAS,EACT,UAAa,EACb,UAAa,EACb,YAAe;IAEf,IAAA,kBAAQ,EACN,gBAAgB;QACd,IAAA,cAAK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
|
@@ -23,14 +23,22 @@
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
import SonicBoom from 'sonic-boom';
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
import { Reporter, ReporterOptions } from '.';
|
|
27
|
+
import { JourneyEndResult, JourneyStartResult, StepEndResult } from '../common_types';
|
|
28
|
+
import { Journey, Step } from '../dsl';
|
|
29
|
+
export default class BaseReporter implements Reporter {
|
|
30
30
|
stream: SonicBoom;
|
|
31
31
|
fd: number;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
metrics: {
|
|
33
|
+
succeeded: number;
|
|
34
|
+
failed: number;
|
|
35
|
+
skipped: number;
|
|
36
|
+
};
|
|
37
|
+
constructor(options?: ReporterOptions);
|
|
38
|
+
onJourneyStart(journey: Journey, {}: JourneyStartResult): void;
|
|
39
|
+
onStepEnd(_: Journey, step: Step, result: StepEndResult): void;
|
|
40
|
+
onJourneyEnd(_: Journey, { error }: JourneyEndResult): void;
|
|
41
|
+
onEnd(): void;
|
|
34
42
|
write(message: any): void;
|
|
35
43
|
}
|
|
36
44
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/reporters/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/reporters/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,SAAS,MAAM,YAAY,CAAC;AASnC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,GAAG,CAAC;AAC9C,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAyBvC,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,QAAQ;IACnD,MAAM,EAAE,SAAS,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO;;;;MAIL;gBAEU,OAAO,GAAE,eAAoB;IAUzC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,kBAAkB;IAIvD,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa;IAWvD,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,gBAAgB;IAYpD,KAAK;IAwBL,KAAK,CAAC,OAAO,KAAA;CAMd"}
|
package/dist/reporters/base.js
CHANGED
|
@@ -32,75 +32,83 @@ const colors_1 = require("kleur/colors");
|
|
|
32
32
|
const helpers_1 = require("../helpers");
|
|
33
33
|
function renderError(error) {
|
|
34
34
|
let output = '';
|
|
35
|
-
const outer = helpers_1.indent('');
|
|
36
|
-
const inner = helpers_1.indent(outer);
|
|
35
|
+
const outer = (0, helpers_1.indent)('');
|
|
36
|
+
const inner = (0, helpers_1.indent)(outer);
|
|
37
37
|
const container = outer + '---\n';
|
|
38
38
|
output += container;
|
|
39
39
|
let stack = error.stack;
|
|
40
40
|
if (stack) {
|
|
41
41
|
output += inner + 'stack: |-\n';
|
|
42
|
-
stack = helpers_1.rewriteErrorStack(stack, helpers_1.findPWLogsIndexes(stack));
|
|
42
|
+
stack = (0, helpers_1.rewriteErrorStack)(stack, (0, helpers_1.findPWLogsIndexes)(stack));
|
|
43
43
|
const lines = String(stack).split('\n');
|
|
44
44
|
for (const line of lines) {
|
|
45
45
|
output += inner + ' ' + line + '\n';
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
output += container;
|
|
49
|
-
return colors_1.red(output);
|
|
49
|
+
return (0, colors_1.red)(output);
|
|
50
50
|
}
|
|
51
51
|
function renderDuration(durationMs) {
|
|
52
52
|
return parseInt(durationMs);
|
|
53
53
|
}
|
|
54
54
|
class BaseReporter {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
stream;
|
|
56
|
+
fd;
|
|
57
|
+
metrics = {
|
|
58
|
+
succeeded: 0,
|
|
59
|
+
failed: 0,
|
|
60
|
+
skipped: 0,
|
|
61
|
+
};
|
|
62
|
+
constructor(options = {}) {
|
|
57
63
|
this.fd = options.fd || process.stdout.fd;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
/**
|
|
65
|
+
* minLength is set to 1 byte to make sure we flush the
|
|
66
|
+
* content even if its the last byte on the stream buffer
|
|
67
|
+
* before destroying the pipe with underlying file descriptor
|
|
68
|
+
*/
|
|
69
|
+
this.stream = new sonic_boom_1.default({ fd: this.fd, sync: true, minLength: 1 });
|
|
61
70
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
this.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
let message = '\n';
|
|
92
|
-
if (total === 0) {
|
|
93
|
-
message = 'No tests found!';
|
|
94
|
-
message += ` (${renderDuration(helpers_1.now())} ms) \n`;
|
|
95
|
-
this.write(message);
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
message += succeeded > 0 ? colors_1.green(` ${succeeded} passed`) : '';
|
|
99
|
-
message += failed > 0 ? colors_1.red(` ${failed} failed`) : '';
|
|
100
|
-
message += skipped > 0 ? colors_1.cyan(` ${skipped} skipped`) : '';
|
|
101
|
-
message += ` (${renderDuration(helpers_1.now())} ms) \n`;
|
|
71
|
+
onJourneyStart(journey, {}) {
|
|
72
|
+
this.write(`\nJourney: ${journey.name}`);
|
|
73
|
+
}
|
|
74
|
+
onStepEnd(_, step, result) {
|
|
75
|
+
const { status, end, start, error } = result;
|
|
76
|
+
const message = `${helpers_1.symbols[status]} Step: '${step.name}' ${status} (${renderDuration((end - start) * 1000)} ms)`;
|
|
77
|
+
this.write((0, helpers_1.indent)(message));
|
|
78
|
+
error && this.write(renderError(error));
|
|
79
|
+
this.metrics[status]++;
|
|
80
|
+
}
|
|
81
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
82
|
+
onJourneyEnd(_, { error }) {
|
|
83
|
+
const { failed, succeeded, skipped } = this.metrics;
|
|
84
|
+
const total = failed + succeeded + skipped;
|
|
85
|
+
/**
|
|
86
|
+
* Render the error on the terminal only when no steps could
|
|
87
|
+
* be executed which means the error happened in one of the hooks
|
|
88
|
+
*/
|
|
89
|
+
if (total === 0 && error) {
|
|
90
|
+
this.write(renderError(error));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
onEnd() {
|
|
94
|
+
const { failed, succeeded, skipped } = this.metrics;
|
|
95
|
+
const total = failed + succeeded + skipped;
|
|
96
|
+
let message = '\n';
|
|
97
|
+
if (total === 0) {
|
|
98
|
+
message = 'No tests found!';
|
|
99
|
+
message += ` (${renderDuration((0, helpers_1.now)())} ms) \n`;
|
|
102
100
|
this.write(message);
|
|
103
|
-
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
message += succeeded > 0 ? (0, colors_1.green)(` ${succeeded} passed`) : '';
|
|
104
|
+
message += failed > 0 ? (0, colors_1.red)(` ${failed} failed`) : '';
|
|
105
|
+
message += skipped > 0 ? (0, colors_1.cyan)(` ${skipped} skipped`) : '';
|
|
106
|
+
message += ` (${renderDuration((0, helpers_1.now)())} ms) \n`;
|
|
107
|
+
this.write(message);
|
|
108
|
+
// flushSync is used here to make sure all the data from the underlying
|
|
109
|
+
// SonicBoom stream buffer is completely written to the fd before closing
|
|
110
|
+
// the process
|
|
111
|
+
this.stream.flushSync();
|
|
104
112
|
}
|
|
105
113
|
write(message) {
|
|
106
114
|
if (typeof message == 'object') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/reporters/base.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;AAEH,4DAAmC;AACnC,yCAAgD;
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/reporters/base.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;AAEH,4DAAmC;AACnC,yCAAgD;AAChD,wCAMoB;AASpB,SAAS,WAAW,CAAC,KAAK;IACxB,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,MAAM,KAAK,GAAG,IAAA,gBAAM,EAAC,EAAE,CAAC,CAAC;IACzB,MAAM,KAAK,GAAG,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC;IAC5B,MAAM,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC;IAClC,MAAM,IAAI,SAAS,CAAC;IACpB,IAAI,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IACxB,IAAI,KAAK,EAAE;QACT,MAAM,IAAI,KAAK,GAAG,aAAa,CAAC;QAChC,KAAK,GAAG,IAAA,2BAAiB,EAAC,KAAK,EAAE,IAAA,2BAAiB,EAAC,KAAK,CAAC,CAAC,CAAC;QAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,MAAM,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;SACtC;KACF;IACD,MAAM,IAAI,SAAS,CAAC;IACpB,OAAO,IAAA,YAAG,EAAC,MAAM,CAAC,C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ACvE,yEAAyE;QACzE,cAAc;QACd,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,OAAO;QACX,IAAI,OAAO,OAAO,IAAI,QAAQ,EAAE;YAC9B,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;SACnC;QACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AA5ED,+BA4EC"}
|
|
@@ -22,14 +22,24 @@
|
|
|
22
22
|
* THE SOFTWARE.
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
import { Journey, Step } from '../dsl';
|
|
26
|
+
import { StartEvent, JourneyEndResult, JourneyStartResult, StepEndResult } from '../common_types';
|
|
27
|
+
export declare type ReporterOptions = {
|
|
28
|
+
fd?: number;
|
|
29
|
+
colors?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare type BuiltInReporterName = 'default' | 'json' | 'junit';
|
|
32
|
+
export declare type ReporterInstance = new (opts: ReporterOptions) => Reporter;
|
|
30
33
|
export declare const reporters: {
|
|
31
|
-
|
|
32
|
-
json: typeof JSONReporter;
|
|
33
|
-
junit: typeof JUnitReporter;
|
|
34
|
+
[key in BuiltInReporterName]: ReporterInstance;
|
|
34
35
|
};
|
|
36
|
+
export interface Reporter {
|
|
37
|
+
onStart?(params: StartEvent): void;
|
|
38
|
+
onJourneyRegister?(journey: Journey): void;
|
|
39
|
+
onJourneyStart?(journey: Journey, result: JourneyStartResult): void;
|
|
40
|
+
onStepStart?(journey: Journey, step: Step): void;
|
|
41
|
+
onStepEnd?(journey: Journey, step: Step, result: StepEndResult): void;
|
|
42
|
+
onJourneyEnd?(journey: Journey, result: JourneyEndResult): void | Promise<void>;
|
|
43
|
+
onEnd?(): void | Promise<void>;
|
|
44
|
+
}
|
|
35
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reporters/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reporters/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAKH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACd,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,eAAe,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAChE,oBAAY,mBAAmB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAC/D,oBAAY,gBAAgB,GAAG,KAAK,IAAI,EAAE,eAAe,KAAK,QAAQ,CAAC;AACvE,eAAO,MAAM,SAAS,EAAE;KACrB,GAAG,IAAI,mBAAmB,GAAG,gBAAgB;CAK/C,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,iBAAiB,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3C,cAAc,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACpE,WAAW,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IACjD,SAAS,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IACtE,YAAY,CAAC,CACX,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,gBAAgB,GACvB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,KAAK,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reporters/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;;AAEH,kDAAkC;AAClC,kDAAkC;AAClC,oDAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reporters/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;;AAEH,kDAAkC;AAClC,kDAAkC;AAClC,oDAAoC;AAYvB,QAAA,SAAS,GAElB;IACF,OAAO,EAAE,cAAY;IACrB,IAAI,EAAE,cAAY;IAClB,KAAK,EAAE,eAAa;CACrB,CAAC"}
|
package/dist/reporters/json.d.ts
CHANGED
|
@@ -25,21 +25,19 @@
|
|
|
25
25
|
/// <reference types="node" />
|
|
26
26
|
import BaseReporter from './base';
|
|
27
27
|
import { Journey, Step } from '../dsl';
|
|
28
|
-
import { NetworkInfo, TraceOutput, StatusValue, PerfMetrics } from '../common_types';
|
|
29
|
-
|
|
30
|
-
import { Metrics } from '../plugins';
|
|
31
|
-
declare type OutputType = 'synthetics/metadata' | 'journey/register' | 'journey/start' | 'screenshot/block' | 'step/screenshot_ref' | 'step/screenshot' | 'step/end' | 'journey/network_info' | 'journey/filmstrips' | 'journey/browserconsole' | 'journey/metrics' | 'journey/end';
|
|
28
|
+
import { NetworkInfo, NetworkConditions, TraceOutput, StatusValue, PerfMetrics, Screenshot, StartEvent, JourneyStartResult, StepEndResult, JourneyEndResult, PageMetrics } from '../common_types';
|
|
29
|
+
declare type OutputType = 'synthetics/metadata' | 'journey/register' | 'journey/start' | 'screenshot/block' | 'step/screenshot_ref' | 'step/screenshot' | 'step/metrics' | 'step/filmstrips' | 'step/end' | 'journey/network_info' | 'journey/browserconsole' | 'journey/end';
|
|
32
30
|
declare type Payload = {
|
|
33
31
|
source?: string;
|
|
34
32
|
start?: number;
|
|
35
33
|
end?: number;
|
|
36
34
|
url?: string;
|
|
37
|
-
status?: StatusValue
|
|
38
|
-
|
|
39
|
-
params?: Record<string, unknown>;
|
|
35
|
+
status?: StatusValue;
|
|
36
|
+
pagemetrics?: PageMetrics;
|
|
40
37
|
type?: OutputType;
|
|
41
38
|
text?: string;
|
|
42
39
|
index?: number;
|
|
40
|
+
network_conditions?: NetworkConditions;
|
|
43
41
|
};
|
|
44
42
|
declare type OutputFields = {
|
|
45
43
|
type: OutputType;
|
|
@@ -54,7 +52,7 @@ declare type OutputFields = {
|
|
|
54
52
|
};
|
|
55
53
|
error?: Error;
|
|
56
54
|
root_fields?: Record<string, unknown>;
|
|
57
|
-
payload?: Payload
|
|
55
|
+
payload?: Payload;
|
|
58
56
|
blob?: string;
|
|
59
57
|
blob_mime?: string;
|
|
60
58
|
};
|
|
@@ -82,58 +80,10 @@ export declare function formatNetworkFields(network: NetworkInfo): {
|
|
|
82
80
|
original: string;
|
|
83
81
|
};
|
|
84
82
|
http: {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
body: {
|
|
88
|
-
bytes: number;
|
|
89
|
-
content: string;
|
|
90
|
-
};
|
|
91
|
-
referrer: string;
|
|
92
|
-
url: string;
|
|
93
|
-
urlFragment?: string;
|
|
94
|
-
method: string;
|
|
95
|
-
headers: Protocol.Network.Headers;
|
|
96
|
-
postData?: string;
|
|
97
|
-
hasPostData?: boolean;
|
|
98
|
-
postDataEntries?: Protocol.Network.PostDataEntry[];
|
|
99
|
-
mixedContentType?: Protocol.Security.MixedContentType;
|
|
100
|
-
initialPriority: Protocol.Network.ResourcePriority;
|
|
101
|
-
referrerPolicy: "unsafe-url" | "no-referrer-when-downgrade" | "no-referrer" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin";
|
|
102
|
-
isLinkPreload?: boolean;
|
|
103
|
-
trustTokenParams?: Protocol.Network.TrustTokenParams;
|
|
104
|
-
};
|
|
105
|
-
response: {
|
|
106
|
-
body: {
|
|
107
|
-
bytes: number;
|
|
108
|
-
};
|
|
109
|
-
status_code: number;
|
|
110
|
-
url: string;
|
|
111
|
-
status: number;
|
|
112
|
-
statusText: string;
|
|
113
|
-
headers: Protocol.Network.Headers;
|
|
114
|
-
headersText?: string;
|
|
115
|
-
mimeType: string;
|
|
116
|
-
requestHeaders?: Protocol.Network.Headers;
|
|
117
|
-
requestHeadersText?: string;
|
|
118
|
-
connectionReused: boolean;
|
|
119
|
-
connectionId: number;
|
|
120
|
-
remoteIPAddress?: string;
|
|
121
|
-
remotePort?: number;
|
|
122
|
-
fromDiskCache?: boolean;
|
|
123
|
-
fromServiceWorker?: boolean;
|
|
124
|
-
fromPrefetchCache?: boolean;
|
|
125
|
-
encodedDataLength: number;
|
|
126
|
-
timing?: Protocol.Network.ResourceTiming;
|
|
127
|
-
serviceWorkerResponseSource?: Protocol.Network.ServiceWorkerResponseSource;
|
|
128
|
-
responseTime?: number;
|
|
129
|
-
cacheStorageCacheName?: string;
|
|
130
|
-
protocol?: string;
|
|
131
|
-
securityState: Protocol.Security.SecurityState;
|
|
132
|
-
securityDetails?: Protocol.Network.SecurityDetails;
|
|
133
|
-
};
|
|
83
|
+
request: import("../common_types").Request;
|
|
84
|
+
response: import("../common_types").Response;
|
|
134
85
|
};
|
|
135
86
|
tls: {
|
|
136
|
-
cipher: string;
|
|
137
87
|
server: {
|
|
138
88
|
x509: {
|
|
139
89
|
issuer: {
|
|
@@ -162,11 +112,16 @@ export declare function getScreenshotBlocks(screenshot: Buffer): Promise<{
|
|
|
162
112
|
* at the end of each journey and construct equally sized blocks out
|
|
163
113
|
* of the individual screenshot image.
|
|
164
114
|
*/
|
|
165
|
-
export declare function gatherScreenshots(screenshotsPath: string, callback: (
|
|
115
|
+
export declare function gatherScreenshots(screenshotsPath: string, callback: (data: Screenshot) => Promise<void>): Promise<void>;
|
|
166
116
|
export default class JSONReporter extends BaseReporter {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
117
|
+
onStart(event: StartEvent): void;
|
|
118
|
+
onJourneyRegister(journey: Journey): void;
|
|
119
|
+
onJourneyStart(journey: Journey, { timestamp }: JourneyStartResult): void;
|
|
120
|
+
onStepEnd(journey: Journey, step: Step, { start, end, error, url, status, pagemetrics, traces, metrics, filmstrips, }: StepEndResult): void;
|
|
121
|
+
onJourneyEnd(journey: Journey, { timestamp, start, end, networkinfo, browserconsole, status, error, options, }: JourneyEndResult): Promise<void>;
|
|
122
|
+
onEnd(): void;
|
|
123
|
+
writeScreenshotBlocks(journey: Journey, screenshot: Screenshot): Promise<void>;
|
|
124
|
+
writeMetrics(journey: Journey, step: Step, type: string, events: Array<TraceOutput> | PerfMetrics): void;
|
|
170
125
|
writeJSON({ _id, journey, type, timestamp, step, root_fields, error, payload, blob, blob_mime, url, }: OutputFields): void;
|
|
171
126
|
}
|
|
172
127
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/reporters/json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;AAMH,OAAO,YAAY,MAAM,QAAQ,CAAC;AASlC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/reporters/json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;AAMH,OAAO,YAAY,MAAM,QAAQ,CAAC;AASlC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,EACL,WAAW,EAEX,iBAAiB,EACjB,WAAW,EACX,WAAW,E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