@copado/agentia-cli 0.112.0-alpha.0 → 0.113.0-alpha.0
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 +1965 -410
- package/dist/commands/testing/build/abort.d.ts +7 -1
- package/dist/commands/testing/build/abort.js +13 -3
- package/dist/commands/testing/build/abort.js.map +1 -1
- package/dist/commands/testing/build/get.d.ts +18 -0
- package/dist/commands/testing/build/get.js +38 -0
- package/dist/commands/testing/build/get.js.map +1 -0
- package/dist/commands/testing/build/latest.d.ts +12 -0
- package/dist/commands/testing/build/latest.js +40 -0
- package/dist/commands/testing/build/latest.js.map +1 -0
- package/dist/commands/testing/build/list.d.ts +6 -1
- package/dist/commands/testing/build/list.js +23 -1
- package/dist/commands/testing/build/list.js.map +1 -1
- package/dist/commands/testing/build/logs.d.ts +6 -0
- package/dist/commands/testing/build/logs.js +8 -1
- package/dist/commands/testing/build/logs.js.map +1 -1
- package/dist/commands/testing/build/run.d.ts +27 -4
- package/dist/commands/testing/build/run.js +4 -18
- package/dist/commands/testing/build/run.js.map +1 -1
- package/dist/commands/testing/build/search.d.ts +21 -0
- package/dist/commands/testing/build/search.js +57 -0
- package/dist/commands/testing/build/search.js.map +1 -0
- package/dist/commands/testing/create.d.ts +1 -15
- package/dist/commands/testing/create.js +1 -43
- package/dist/commands/testing/create.js.map +1 -1
- package/dist/commands/testing/data-table/create.d.ts +30 -0
- package/dist/commands/testing/data-table/create.js +52 -0
- package/dist/commands/testing/data-table/create.js.map +1 -0
- package/dist/commands/testing/data-table/delete.d.ts +25 -0
- package/dist/commands/testing/data-table/delete.js +40 -0
- package/dist/commands/testing/data-table/delete.js.map +1 -0
- package/dist/commands/testing/data-table/export.d.ts +33 -0
- package/dist/commands/testing/data-table/export.js +59 -0
- package/dist/commands/testing/data-table/export.js.map +1 -0
- package/dist/commands/testing/data-table/get.d.ts +21 -0
- package/dist/commands/testing/data-table/get.js +35 -0
- package/dist/commands/testing/data-table/get.js.map +1 -0
- package/dist/commands/testing/data-table/list.d.ts +16 -0
- package/dist/commands/testing/data-table/list.js +33 -0
- package/dist/commands/testing/data-table/list.js.map +1 -0
- package/dist/commands/testing/data-table/update.d.ts +34 -0
- package/dist/commands/testing/data-table/update.js +64 -0
- package/dist/commands/testing/data-table/update.js.map +1 -0
- package/dist/commands/testing/job/create.d.ts +18 -0
- package/dist/commands/testing/job/create.js +60 -4
- package/dist/commands/testing/job/create.js.map +1 -1
- package/dist/commands/testing/job/delete.d.ts +6 -1
- package/dist/commands/testing/job/delete.js +13 -3
- package/dist/commands/testing/job/delete.js.map +1 -1
- package/dist/commands/testing/job/refs.d.ts +17 -0
- package/dist/commands/testing/job/refs.js +30 -0
- package/dist/commands/testing/job/refs.js.map +1 -0
- package/dist/commands/testing/job/schedule/get.d.ts +23 -0
- package/dist/commands/testing/job/schedule/get.js +31 -0
- package/dist/commands/testing/job/schedule/get.js.map +1 -0
- package/dist/commands/testing/job/schedule/remove.d.ts +24 -0
- package/dist/commands/testing/job/schedule/remove.js +34 -0
- package/dist/commands/testing/job/schedule/remove.js.map +1 -0
- package/dist/commands/testing/job/schedule/set.d.ts +23 -0
- package/dist/commands/testing/job/schedule/set.js +39 -0
- package/dist/commands/testing/job/schedule/set.js.map +1 -0
- package/dist/commands/testing/job/update.d.ts +2 -0
- package/dist/commands/testing/job/update.js +7 -1
- package/dist/commands/testing/job/update.js.map +1 -1
- package/dist/commands/testing/job/upload.d.ts +6 -0
- package/dist/commands/testing/job/upload.js +22 -0
- package/dist/commands/testing/job/upload.js.map +1 -1
- package/dist/commands/testing/live/continue.d.ts +20 -0
- package/dist/commands/testing/live/continue.js +21 -0
- package/dist/commands/testing/live/continue.js.map +1 -0
- package/dist/commands/testing/live/execute.d.ts +30 -0
- package/dist/commands/testing/live/execute.js +43 -0
- package/dist/commands/testing/live/execute.js.map +1 -0
- package/dist/commands/testing/live/history.d.ts +23 -0
- package/dist/commands/testing/live/history.js +35 -0
- package/dist/commands/testing/live/history.js.map +1 -0
- package/dist/commands/testing/live/inspect.d.ts +18 -0
- package/dist/commands/testing/live/inspect.js +30 -0
- package/dist/commands/testing/live/inspect.js.map +1 -0
- package/dist/commands/testing/live/interrupt.d.ts +20 -0
- package/dist/commands/testing/live/interrupt.js +21 -0
- package/dist/commands/testing/live/interrupt.js.map +1 -0
- package/dist/commands/testing/live/recorder.d.ts +23 -0
- package/dist/commands/testing/live/recorder.js +134 -0
- package/dist/commands/testing/live/recorder.js.map +1 -0
- package/dist/commands/testing/live/reports.d.ts +20 -0
- package/dist/commands/testing/live/reports.js +31 -0
- package/dist/commands/testing/live/reports.js.map +1 -0
- package/dist/commands/testing/live/screenshot.d.ts +23 -0
- package/dist/commands/testing/live/screenshot.js +25 -0
- package/dist/commands/testing/live/screenshot.js.map +1 -0
- package/dist/commands/testing/live/set-options.d.ts +27 -0
- package/dist/commands/testing/live/set-options.js +28 -0
- package/dist/commands/testing/live/set-options.js.map +1 -0
- package/dist/commands/testing/live/start.d.ts +29 -0
- package/dist/commands/testing/live/start.js +53 -0
- package/dist/commands/testing/live/start.js.map +1 -0
- package/dist/commands/testing/live/status.d.ts +19 -0
- package/dist/commands/testing/live/status.js +27 -0
- package/dist/commands/testing/live/status.js.map +1 -0
- package/dist/commands/testing/live/stop.d.ts +24 -0
- package/dist/commands/testing/live/stop.js +38 -0
- package/dist/commands/testing/live/stop.js.map +1 -0
- package/dist/commands/testing/live/view.d.ts +16 -0
- package/dist/commands/testing/live/view.js +36 -0
- package/dist/commands/testing/live/view.js.map +1 -0
- package/dist/commands/testing/logs.d.ts +6 -0
- package/dist/commands/testing/logs.js +8 -1
- package/dist/commands/testing/logs.js.map +1 -1
- package/dist/commands/testing/project/create.d.ts +3 -0
- package/dist/commands/testing/project/create.js +17 -1
- package/dist/commands/testing/project/create.js.map +1 -1
- package/dist/commands/testing/project/delete.d.ts +7 -2
- package/dist/commands/testing/project/delete.js +15 -3
- package/dist/commands/testing/project/delete.js.map +1 -1
- package/dist/commands/testing/project/get.js +1 -1
- package/dist/commands/testing/project/get.js.map +1 -1
- package/dist/commands/testing/project/permission/get.d.ts +13 -0
- package/dist/commands/testing/project/permission/get.js +21 -0
- package/dist/commands/testing/project/permission/get.js.map +1 -0
- package/dist/commands/testing/project/permission/list.d.ts +13 -0
- package/dist/commands/testing/project/permission/list.js +21 -0
- package/dist/commands/testing/project/permission/list.js.map +1 -0
- package/dist/commands/testing/project/permission/set.d.ts +19 -0
- package/dist/commands/testing/project/permission/set.js +33 -0
- package/dist/commands/testing/project/permission/set.js.map +1 -0
- package/dist/commands/testing/project/permission/update.d.ts +19 -0
- package/dist/commands/testing/project/permission/update.js +33 -0
- package/dist/commands/testing/project/permission/update.js.map +1 -0
- package/dist/commands/testing/project/update.d.ts +14 -0
- package/dist/commands/testing/project/update.js +28 -0
- package/dist/commands/testing/project/update.js.map +1 -0
- package/dist/commands/testing/robot/create.d.ts +4 -1
- package/dist/commands/testing/robot/create.js +20 -5
- package/dist/commands/testing/robot/create.js.map +1 -1
- package/dist/commands/testing/robot/delete.d.ts +6 -1
- package/dist/commands/testing/robot/delete.js +13 -3
- package/dist/commands/testing/robot/delete.js.map +1 -1
- package/dist/commands/testing/robot/update.d.ts +19 -0
- package/dist/commands/testing/robot/update.js +49 -0
- package/dist/commands/testing/robot/update.js.map +1 -0
- package/dist/commands/testing/run.d.ts +27 -4
- package/dist/commands/testing/run.js +4 -11
- package/dist/commands/testing/run.js.map +1 -1
- package/dist/commands/testing/test/run.d.ts +27 -11
- package/dist/commands/testing/test/run.js +5 -37
- package/dist/commands/testing/test/run.js.map +1 -1
- package/dist/commands/testing/update.d.ts +6 -0
- package/dist/commands/testing/update.js +10 -0
- package/dist/commands/testing/update.js.map +1 -1
- package/dist/commands/testing/user-parameter/create.d.ts +19 -0
- package/dist/commands/testing/user-parameter/create.js +45 -0
- package/dist/commands/testing/user-parameter/create.js.map +1 -0
- package/dist/commands/testing/user-parameter/delete.d.ts +21 -0
- package/dist/commands/testing/user-parameter/delete.js +33 -0
- package/dist/commands/testing/user-parameter/delete.js.map +1 -0
- package/dist/commands/testing/user-parameter/get.d.ts +13 -0
- package/dist/commands/testing/user-parameter/get.js +21 -0
- package/dist/commands/testing/user-parameter/get.js.map +1 -0
- package/dist/commands/testing/user-parameter/list.d.ts +12 -0
- package/dist/commands/testing/user-parameter/list.js +23 -0
- package/dist/commands/testing/user-parameter/list.js.map +1 -0
- package/dist/commands/testing/user-parameter/update.d.ts +23 -0
- package/dist/commands/testing/user-parameter/update.js +45 -0
- package/dist/commands/testing/user-parameter/update.js.map +1 -0
- package/dist/commands/testing/variable/create.d.ts +6 -2
- package/dist/commands/testing/variable/create.js +14 -5
- package/dist/commands/testing/variable/create.js.map +1 -1
- package/dist/commands/testing/variable/delete.d.ts +6 -1
- package/dist/commands/testing/variable/delete.js +13 -3
- package/dist/commands/testing/variable/delete.js.map +1 -1
- package/dist/commands/testing/variable/get.d.ts +13 -0
- package/dist/commands/testing/variable/get.js +25 -0
- package/dist/commands/testing/variable/get.js.map +1 -0
- package/dist/commands/testing/variable/list.d.ts +4 -0
- package/dist/commands/testing/variable/list.js +15 -3
- package/dist/commands/testing/variable/list.js.map +1 -1
- package/dist/commands/testing/variable/update.d.ts +6 -2
- package/dist/commands/testing/variable/update.js +11 -5
- package/dist/commands/testing/variable/update.js.map +1 -1
- package/dist/lib/credential-store.d.ts +3 -0
- package/dist/lib/credential-store.js +16 -0
- package/dist/lib/credential-store.js.map +1 -1
- package/dist/lib/mcp/command-id.js +3 -0
- package/dist/lib/mcp/command-id.js.map +1 -1
- package/dist/lib/mcp/testing-live-tools.d.ts +126 -0
- package/dist/lib/mcp/testing-live-tools.js +215 -0
- package/dist/lib/mcp/testing-live-tools.js.map +1 -0
- package/dist/lib/mcp/testing-tools.d.ts +455 -9
- package/dist/lib/mcp/testing-tools.js +677 -37
- package/dist/lib/mcp/testing-tools.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +551 -14
- package/dist/lib/testing-config.d.ts +3 -0
- package/dist/lib/testing-config.js +9 -0
- package/dist/lib/testing-config.js.map +1 -1
- package/dist/lib/testing-confirmation.d.ts +14 -0
- package/dist/lib/testing-confirmation.js +17 -0
- package/dist/lib/testing-confirmation.js.map +1 -0
- package/dist/lib/testing-data-command.d.ts +21 -0
- package/dist/lib/testing-data-command.js +49 -0
- package/dist/lib/testing-data-command.js.map +1 -0
- package/dist/lib/testing-data-core.d.ts +22 -0
- package/dist/lib/testing-data-core.js +208 -0
- package/dist/lib/testing-data-core.js.map +1 -0
- package/dist/lib/testing-data-export.d.ts +1 -0
- package/dist/lib/testing-data-export.js +2 -0
- package/dist/lib/testing-data-export.js.map +1 -0
- package/dist/lib/testing-data-import.d.ts +1 -0
- package/dist/lib/testing-data-import.js +2 -0
- package/dist/lib/testing-data-import.js.map +1 -0
- package/dist/lib/testing-data-io.d.ts +21 -0
- package/dist/lib/testing-data-io.js +236 -0
- package/dist/lib/testing-data-io.js.map +1 -0
- package/dist/lib/testing-data-operations.d.ts +36 -0
- package/dist/lib/testing-data-operations.js +91 -0
- package/dist/lib/testing-data-operations.js.map +1 -0
- package/dist/lib/testing-data-types.d.ts +41 -0
- package/dist/lib/testing-data-types.js +3 -0
- package/dist/lib/testing-data-types.js.map +1 -0
- package/dist/lib/testing-flags.d.ts +62 -1
- package/dist/lib/testing-flags.js +177 -1
- package/dist/lib/testing-flags.js.map +1 -1
- package/dist/lib/testing-gateway.d.ts +17 -3
- package/dist/lib/testing-gateway.js +175 -45
- package/dist/lib/testing-gateway.js.map +1 -1
- package/dist/lib/testing-live-command.d.ts +24 -0
- package/dist/lib/testing-live-command.js +56 -0
- package/dist/lib/testing-live-command.js.map +1 -0
- package/dist/lib/testing-live-endpoints.d.ts +14 -0
- package/dist/lib/testing-live-endpoints.js +34 -0
- package/dist/lib/testing-live-endpoints.js.map +1 -0
- package/dist/lib/testing-live-history.d.ts +11 -0
- package/dist/lib/testing-live-history.js +96 -0
- package/dist/lib/testing-live-history.js.map +1 -0
- package/dist/lib/testing-live-operations.d.ts +118 -0
- package/dist/lib/testing-live-operations.js +676 -0
- package/dist/lib/testing-live-operations.js.map +1 -0
- package/dist/lib/testing-live-recorder.d.ts +14 -0
- package/dist/lib/testing-live-recorder.js +122 -0
- package/dist/lib/testing-live-recorder.js.map +1 -0
- package/dist/lib/testing-live-robot.d.ts +16 -0
- package/dist/lib/testing-live-robot.js +158 -0
- package/dist/lib/testing-live-robot.js.map +1 -0
- package/dist/lib/testing-live-state.d.ts +4 -0
- package/dist/lib/testing-live-state.js +90 -0
- package/dist/lib/testing-live-state.js.map +1 -0
- package/dist/lib/testing-live-types.d.ts +92 -0
- package/dist/lib/testing-live-types.js +2 -0
- package/dist/lib/testing-live-types.js.map +1 -0
- package/dist/lib/testing-operations.d.ts +157 -5
- package/dist/lib/testing-operations.js +829 -66
- package/dist/lib/testing-operations.js.map +1 -1
- package/dist/lib/testing-run-command.d.ts +25 -0
- package/dist/lib/testing-run-command.js +94 -0
- package/dist/lib/testing-run-command.js.map +1 -0
- package/dist/lib/testing-sanitization.d.ts +11 -0
- package/dist/lib/testing-sanitization.js +135 -0
- package/dist/lib/testing-sanitization.js.map +1 -0
- package/dist/lib/testing-schedule.d.ts +23 -0
- package/dist/lib/testing-schedule.js +48 -0
- package/dist/lib/testing-schedule.js.map +1 -0
- package/dist/lib/testing-secret-input.d.ts +12 -0
- package/dist/lib/testing-secret-input.js +56 -0
- package/dist/lib/testing-secret-input.js.map +1 -0
- package/dist/lib/testing-session.d.ts +8 -0
- package/dist/lib/testing-session.js +82 -0
- package/dist/lib/testing-session.js.map +1 -0
- package/dist/lib/testing-types.d.ts +143 -13
- package/dist/lib/testing-types.js +110 -5
- package/dist/lib/testing-types.js.map +1 -1
- package/dist/lib/testing-watch.d.ts +4 -0
- package/dist/lib/testing-watch.js +45 -0
- package/dist/lib/testing-watch.js.map +1 -0
- package/oclif.manifest.json +8354 -3760
- package/package.json +12 -1
- package/templates/skills/agentia-testing/SKILL.md +9 -6
- package/templates/skills/agentia-testing/references/tests.md +70 -36
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
+
import { updateTestingProject } from '../../../lib/testing-operations.js';
|
|
4
|
+
import { formatTestingRecord } from '../../../lib/testing-types.js';
|
|
5
|
+
export default class TestingProjectUpdate extends AgentiaCommand {
|
|
6
|
+
static args = {
|
|
7
|
+
id: Args.string({ description: 'CRT project ID.', required: true }),
|
|
8
|
+
};
|
|
9
|
+
static description = 'Update a Copado Robotic Testing project';
|
|
10
|
+
static examples = [
|
|
11
|
+
'<%= config.bin %> <%= command.id %> <project-id> --name "QA Updated"',
|
|
12
|
+
'<%= config.bin %> <%= command.id %> <project-id> --description "Regression suites" --json',
|
|
13
|
+
];
|
|
14
|
+
static flags = {
|
|
15
|
+
description: Flags.string({ description: 'New project description.' }),
|
|
16
|
+
name: Flags.string({ description: 'New project name.' }),
|
|
17
|
+
};
|
|
18
|
+
async run() {
|
|
19
|
+
const { args, flags } = await this.parse(TestingProjectUpdate);
|
|
20
|
+
const result = await this.withSpinner('Updating testing project', () => updateTestingProject({ description: flags.description, name: flags.name, projectId: args.id }));
|
|
21
|
+
this.display(() => {
|
|
22
|
+
this.log('Testing project updated');
|
|
23
|
+
this.log(formatTestingRecord(result));
|
|
24
|
+
});
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/commands/testing/project/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAA;AACvE,OAAO,EAAC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/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
'fw-version': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
-
kind: import("@oclif/core/interfaces").OptionFlag<
|
|
9
|
+
kind: import("@oclif/core/interfaces").OptionFlag<"cloud" | "paceconnect" | "QConnect" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
11
|
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
os: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
reporting: import("@oclif/core/interfaces").OptionFlag<"all" | "nothing" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
14
|
'robot-type': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'run-environment': import("@oclif/core/interfaces").OptionFlag<"cloud" | "paceconnect" | "QConnect" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
16
|
project: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
17
|
};
|
|
15
18
|
run(): Promise<TestingRobot>;
|
|
@@ -2,7 +2,7 @@ import { Flags } from '@oclif/core';
|
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
3
|
import { testingProjectFlag, } from '../../../lib/testing-flags.js';
|
|
4
4
|
import { createTestingRobot } from '../../../lib/testing-operations.js';
|
|
5
|
-
import { formatTestingRecord } from '../../../lib/testing-types.js';
|
|
5
|
+
import { formatTestingRecord, TESTING_ROBOT_REPORTING, TESTING_ROBOT_RUN_ENVIRONMENTS, TESTING_ROBOT_TYPES, } from '../../../lib/testing-types.js';
|
|
6
6
|
export default class TestingRobotCreate extends AgentiaCommand {
|
|
7
7
|
static description = 'Create a Copado Robotic Testing robot';
|
|
8
8
|
static examples = [
|
|
@@ -20,10 +20,13 @@ export default class TestingRobotCreate extends AgentiaCommand {
|
|
|
20
20
|
description: 'Robot framework version.',
|
|
21
21
|
}),
|
|
22
22
|
kind: Flags.option({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
options: [
|
|
23
|
+
description: 'Backward-compatible robot run environment alias.',
|
|
24
|
+
exclusive: ['run-environment'],
|
|
25
|
+
options: [...TESTING_ROBOT_RUN_ENVIRONMENTS],
|
|
26
26
|
})(),
|
|
27
|
+
label: Flags.string({
|
|
28
|
+
description: 'Optional robot label.',
|
|
29
|
+
}),
|
|
27
30
|
name: Flags.string({
|
|
28
31
|
description: 'Robot name.',
|
|
29
32
|
required: true,
|
|
@@ -32,20 +35,32 @@ export default class TestingRobotCreate extends AgentiaCommand {
|
|
|
32
35
|
default: 'linux',
|
|
33
36
|
description: 'Robot operating system.',
|
|
34
37
|
}),
|
|
38
|
+
reporting: Flags.option({
|
|
39
|
+
description: 'Which testing results to retain.',
|
|
40
|
+
options: [...TESTING_ROBOT_REPORTING],
|
|
41
|
+
})(),
|
|
35
42
|
'robot-type': Flags.string({
|
|
36
43
|
default: 'default',
|
|
37
44
|
description: 'CRT robot type.',
|
|
45
|
+
options: [...TESTING_ROBOT_TYPES],
|
|
38
46
|
}),
|
|
47
|
+
'run-environment': Flags.option({
|
|
48
|
+
description: 'Robot execution environment.',
|
|
49
|
+
exclusive: ['kind'],
|
|
50
|
+
options: [...TESTING_ROBOT_RUN_ENVIRONMENTS],
|
|
51
|
+
})(),
|
|
39
52
|
};
|
|
40
53
|
async run() {
|
|
41
54
|
const { flags } = await this.parse(TestingRobotCreate);
|
|
42
55
|
const robot = await this.withSpinner('Creating testing robot', () => createTestingRobot({
|
|
43
56
|
description: flags.description,
|
|
44
57
|
fwVersion: flags['fw-version'],
|
|
45
|
-
kind: flags.kind,
|
|
58
|
+
kind: (flags['run-environment'] ?? flags.kind ?? 'cloud'),
|
|
59
|
+
label: flags.label,
|
|
46
60
|
name: flags.name,
|
|
47
61
|
os: flags.os,
|
|
48
62
|
projectId: flags.project,
|
|
63
|
+
reporting: flags.reporting,
|
|
49
64
|
robotType: flags['robot-type'],
|
|
50
65
|
}));
|
|
51
66
|
this.display(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/testing/robot/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EACL,kBAAkB,GACnB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAA;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/testing/robot/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EACL,kBAAkB,GACnB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAA;AACrE,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,mBAAmB,GAKpB,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,cAAc;IAC5D,MAAM,CAAU,WAAW,GAAG,uCAAuC,CAAA;IACrE,MAAM,CAAU,QAAQ,GAAG;QACzB,iFAAiF;QACjF,2GAA2G;KAC5G,CAAA;IACD,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,kBAAkB;QACrB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;YACxB,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,oBAAoB;SAClC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AAkB,CAAC;YACjB,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;YAC9B,IAAI,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,IAAI,IAAI,OAAO,CAA+B;YACvF,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,EAAE,EAAE,KAAK,CAAC,EAAE;YACZ,SAAS,EAAE,KAAK,CAAC,OAAO;YACxB,SAAS,EAAE,KAAK,CAAC,SAA8C;YAC/D,SAAS,EAAE,KAAK,CAAC,YAAY,CAAqB;SACnD,CAAC,CACH,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YAChB,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;YACjC,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAA;QACtC,CAAC,CAAC,CAAA;QAEF,OAAO,KAAK,CAAA;IACd,CAAC"}
|
|
@@ -11,8 +11,13 @@ export default class TestingRobotDelete extends AgentiaCommand {
|
|
|
11
11
|
static description: string;
|
|
12
12
|
static examples: string[];
|
|
13
13
|
static flags: {
|
|
14
|
+
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
15
|
project: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
16
|
};
|
|
16
|
-
run(): Promise<TestingRobotDeleteResult
|
|
17
|
+
run(): Promise<TestingRobotDeleteResult | {
|
|
18
|
+
cancelled: true;
|
|
19
|
+
projectId: number;
|
|
20
|
+
robotId: string;
|
|
21
|
+
}>;
|
|
17
22
|
}
|
|
18
23
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Args } from '@oclif/core';
|
|
2
2
|
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
-
import {
|
|
3
|
+
import { confirmTestingAction } from '../../../lib/testing-confirmation.js';
|
|
4
|
+
import { testingProjectFlag, testingYesFlag, } from '../../../lib/testing-flags.js';
|
|
4
5
|
import { deleteTestingRobot } from '../../../lib/testing-operations.js';
|
|
5
6
|
export default class TestingRobotDelete extends AgentiaCommand {
|
|
6
7
|
static args = {
|
|
@@ -11,14 +12,23 @@ export default class TestingRobotDelete extends AgentiaCommand {
|
|
|
11
12
|
};
|
|
12
13
|
static description = 'Delete a Copado Robotic Testing robot';
|
|
13
14
|
static examples = [
|
|
14
|
-
'<%= config.bin %> <%= command.id %> <robot-id> --project <project-id>',
|
|
15
|
-
'<%= config.bin %> <%= command.id %> <robot-id> --project <project-id> --json',
|
|
15
|
+
'<%= config.bin %> <%= command.id %> <robot-id> --project <project-id> --yes',
|
|
16
|
+
'<%= config.bin %> <%= command.id %> <robot-id> --project <project-id> --yes --json',
|
|
16
17
|
];
|
|
17
18
|
static flags = {
|
|
18
19
|
...testingProjectFlag,
|
|
20
|
+
...testingYesFlag,
|
|
19
21
|
};
|
|
20
22
|
async run() {
|
|
21
23
|
const { args, flags } = await this.parse(TestingRobotDelete);
|
|
24
|
+
const confirmed = await confirmTestingAction({
|
|
25
|
+
action: 'Robot deletion',
|
|
26
|
+
json: this.jsonEnabled(),
|
|
27
|
+
message: `Delete testing robot ${args.id}?`,
|
|
28
|
+
yes: flags.yes,
|
|
29
|
+
});
|
|
30
|
+
if (!confirmed)
|
|
31
|
+
return { cancelled: true, projectId: flags.project, robotId: args.id };
|
|
22
32
|
const result = await this.withSpinner('Deleting testing robot', () => deleteTestingRobot({ projectId: flags.project, robotId: args.id }));
|
|
23
33
|
this.display(() => {
|
|
24
34
|
this.log(`Deleted testing robot ${result.robotId}.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/testing/robot/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,E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KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAC,CAAA;QAEpF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,wBAAwB,EAAE,GAAG,EAAE,CACnE,kBAAkB,CAAC,EAAC,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAC,CAAC,CACjE,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YAChB,IAAI,CAAC,GAAG,CAAC,yBAAyB,MAAM,CAAC,OAAO,GAAG,CAAC,CAAA;QACtD,CAAC,CAAC,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
2
|
+
import { type TestingRobot } from '../../../lib/testing-types.js';
|
|
3
|
+
export default class TestingRobotUpdate extends AgentiaCommand {
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static description: string;
|
|
8
|
+
static examples: string[];
|
|
9
|
+
static flags: {
|
|
10
|
+
description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'fw-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
reporting: import("@oclif/core/interfaces").OptionFlag<"all" | "nothing" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'robot-type': import("@oclif/core/interfaces").OptionFlag<"default" | "mobile" | "bitbar" | "browserstack" | "browserstackdesktop" | "lambdatest" | "lambdatestdesktop" | "paceconnectmobile" | "privatemobile" | "pabot" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
project: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<TestingRobot>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
3
|
+
import { testingProjectFlag } from '../../../lib/testing-flags.js';
|
|
4
|
+
import { updateTestingRobot } from '../../../lib/testing-operations.js';
|
|
5
|
+
import { formatTestingRecord, TESTING_ROBOT_REPORTING, TESTING_ROBOT_TYPES, } from '../../../lib/testing-types.js';
|
|
6
|
+
export default class TestingRobotUpdate extends AgentiaCommand {
|
|
7
|
+
static args = {
|
|
8
|
+
id: Args.string({ description: 'CRT robot ID.', required: true }),
|
|
9
|
+
};
|
|
10
|
+
static description = 'Update a Copado Robotic Testing robot';
|
|
11
|
+
static examples = [
|
|
12
|
+
'<%= config.bin %> <%= command.id %> <robot-id> --project <project-id> --name "Updated Robot"',
|
|
13
|
+
'<%= config.bin %> <%= command.id %> <robot-id> --project <project-id> --robot-type default --json',
|
|
14
|
+
];
|
|
15
|
+
static flags = {
|
|
16
|
+
...testingProjectFlag,
|
|
17
|
+
description: Flags.string({ description: 'New robot description.' }),
|
|
18
|
+
'fw-version': Flags.string({ description: 'New Robot Framework release channel.' }),
|
|
19
|
+
label: Flags.string({ description: 'New robot label.' }),
|
|
20
|
+
name: Flags.string({ description: 'New robot name.' }),
|
|
21
|
+
reporting: Flags.option({
|
|
22
|
+
description: 'Which testing results to retain.',
|
|
23
|
+
options: [...TESTING_ROBOT_REPORTING],
|
|
24
|
+
})(),
|
|
25
|
+
'robot-type': Flags.option({
|
|
26
|
+
description: 'New CRT robot type.',
|
|
27
|
+
options: [...TESTING_ROBOT_TYPES],
|
|
28
|
+
})(),
|
|
29
|
+
};
|
|
30
|
+
async run() {
|
|
31
|
+
const { args, flags } = await this.parse(TestingRobotUpdate);
|
|
32
|
+
const result = await this.withSpinner('Updating testing robot', () => updateTestingRobot({
|
|
33
|
+
description: flags.description,
|
|
34
|
+
fwVersion: flags['fw-version'],
|
|
35
|
+
label: flags.label,
|
|
36
|
+
name: flags.name,
|
|
37
|
+
projectId: flags.project,
|
|
38
|
+
reporting: flags.reporting,
|
|
39
|
+
robotId: args.id,
|
|
40
|
+
robotType: flags['robot-type'],
|
|
41
|
+
}));
|
|
42
|
+
this.display(() => {
|
|
43
|
+
this.log('Testing robot updated');
|
|
44
|
+
this.log(formatTestingRecord(result));
|
|
45
|
+
});
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/commands/testing/robot/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAA;AACrE,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,GAIpB,MAAM,+BAA+B,CAAA;AAEtC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,cAAc;IAC5D,MAAM,CAAU,IAAI,GAAG;QACrB,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;KAChE,CAAA;IACD,MAAM,CAAU,WAAW,GAAG,uCAAuC,CAAA;IACrE,MAAM,CAAU,QAAQ,GAAG;QACzB,8FAA8F;QAC9F,mGAAmG;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AO,CAAC,GAAG,EAAE;YAChB,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;YACjC,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAA;QACvC,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACf,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export default class TestingRun extends AgentiaCommand {
|
|
1
|
+
import { TestingRunCommand, type TestingRunExecutionResult } from '../../lib/testing-run-command.js';
|
|
2
|
+
export default class TestingRun extends TestingRunCommand {
|
|
4
3
|
static args: {
|
|
5
4
|
id: import("@oclif/core/interfaces").Arg<number, {
|
|
6
5
|
max?: number;
|
|
@@ -11,14 +10,38 @@ export default class TestingRun extends AgentiaCommand {
|
|
|
11
10
|
static examples: string[];
|
|
12
11
|
static flags: {
|
|
13
12
|
branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'console-colors': import("@oclif/core/interfaces").OptionFlag<"auto" | "off" | "on" | "ansi" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'console-width': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
datatable: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
doc: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
18
|
exclude: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'exit-on-error': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
|
+
'exit-on-failure': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
21
|
include: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
metadata: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'no-exit-code': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
25
|
param: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
26
|
record: import("@oclif/core/interfaces").OptionFlag<"none" | "all" | "failed" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
27
|
'rerun-failed': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
28
|
'rerun-failed-from-latest': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
29
|
+
'run-empty-suite': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
30
|
+
'run-type': import("@oclif/core/interfaces").OptionFlag<"regression" | "development" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
31
|
+
'save-artifacts': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
32
|
+
'set-tag': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
33
|
+
skip: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
34
|
+
'skip-on-failure': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
35
|
+
'stream-logs': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
36
|
+
suite: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
37
|
tag: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
|
+
test: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
|
+
timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
40
|
+
variable: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
41
|
+
'wait-for-result': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
42
|
+
watch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
43
|
+
xunit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
44
|
project: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
45
|
};
|
|
23
|
-
run(): Promise<
|
|
46
|
+
run(): Promise<TestingRunExecutionResult>;
|
|
24
47
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Args } from '@oclif/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { formatTestingRecord } from '../../lib/testing-types.js';
|
|
6
|
-
export default class TestingRun extends AgentiaCommand {
|
|
2
|
+
import { testingProjectFlag, testingRunOptionFlags } from '../../lib/testing-flags.js';
|
|
3
|
+
import { TestingRunCommand } from '../../lib/testing-run-command.js';
|
|
4
|
+
export default class TestingRun extends TestingRunCommand {
|
|
7
5
|
static args = {
|
|
8
6
|
id: Args.integer({
|
|
9
7
|
description: 'CRT job/test ID to run.',
|
|
@@ -22,12 +20,7 @@ export default class TestingRun extends AgentiaCommand {
|
|
|
22
20
|
};
|
|
23
21
|
async run() {
|
|
24
22
|
const { args, flags } = await this.parse(TestingRun);
|
|
25
|
-
|
|
26
|
-
this.display(() => {
|
|
27
|
-
this.log('Testing run started');
|
|
28
|
-
this.log(formatTestingRecord({ build: result.build, jobId: result.jobId, projectId: result.projectId }));
|
|
29
|
-
});
|
|
30
|
-
return result;
|
|
23
|
+
return this.executeTestingRun(flags, { jobId: args.id, projectId: flags.project }, 'run');
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
26
|
//# sourceMappingURL=run.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/commands/testing/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/commands/testing/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAC,kBAAkB,EAAE,qBAAqB,EAAC,MAAM,4BAA4B,CAAA;AACpF,OAAO,EAAC,iBAAiB,EAAiC,MAAM,kCAAkC,CAAA;AAElG,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,iBAAiB;IACvD,MAAM,CAAU,IAAI,GAAG;QACrB,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC;YACf,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAA;IACD,MAAM,CAAU,WAAW,GAAG,mCAAmC,CAAA;IACjE,MAAM,CAAU,QAAQ,GAAG;QACzB,qEAAqE;QACrE,mGAAmG;QACnG,4EAA4E;KAC7E,CAAA;IACD,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,kBAAkB;QACrB,GAAG,qBAAqB;KACzB,CAAA;IAEM,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,IAAI,EAAE,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QAClD,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,EAAC,EAAE,KAAK,CAAC,CAAA;IACzF,CAAC"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { type TestingBuild, type TestingBuildRunResult } from '../../../lib/testing-types.js';
|
|
4
|
-
type TestingTestRunResult = TestingBuildRunResult & {
|
|
5
|
-
finalBuild?: TestingBuild;
|
|
6
|
-
wait?: TestingBuildWaitResult;
|
|
7
|
-
};
|
|
8
|
-
export default class TestingTestRun extends AgentiaCommand {
|
|
1
|
+
import { TestingRunCommand, type TestingRunExecutionResult } from '../../../lib/testing-run-command.js';
|
|
2
|
+
export default class TestingTestRun extends TestingRunCommand {
|
|
9
3
|
static args: {
|
|
10
4
|
id: import("@oclif/core/interfaces").Arg<number, {
|
|
11
5
|
max?: number;
|
|
@@ -15,17 +9,39 @@ export default class TestingTestRun extends AgentiaCommand {
|
|
|
15
9
|
static description: string;
|
|
16
10
|
static examples: string[];
|
|
17
11
|
static flags: {
|
|
18
|
-
'wait-for-result': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
19
12
|
branch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'console-colors': import("@oclif/core/interfaces").OptionFlag<"auto" | "off" | "on" | "ansi" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'console-width': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
datatable: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
doc: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
18
|
exclude: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'exit-on-error': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
|
+
'exit-on-failure': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
21
21
|
include: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
metadata: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'no-exit-code': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
25
|
param: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
26
|
record: import("@oclif/core/interfaces").OptionFlag<"none" | "all" | "failed" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
27
|
'rerun-failed': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
28
|
'rerun-failed-from-latest': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
29
|
+
'run-empty-suite': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
30
|
+
'run-type': import("@oclif/core/interfaces").OptionFlag<"regression" | "development" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
31
|
+
'save-artifacts': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
32
|
+
'set-tag': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
33
|
+
skip: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
34
|
+
'skip-on-failure': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
35
|
+
'stream-logs': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
36
|
+
suite: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
37
|
tag: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
|
+
test: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
|
+
timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
40
|
+
variable: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
41
|
+
'wait-for-result': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
42
|
+
watch: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
43
|
+
xunit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
44
|
project: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
45
|
};
|
|
29
|
-
run(): Promise<
|
|
46
|
+
run(): Promise<TestingRunExecutionResult>;
|
|
30
47
|
}
|
|
31
|
-
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { Args
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { formatTestingRecord, normalizeTestingId, } from '../../../lib/testing-types.js';
|
|
6
|
-
export default class TestingTestRun extends AgentiaCommand {
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
|
+
import { testingProjectFlag, testingRunOptionFlags, } from '../../../lib/testing-flags.js';
|
|
3
|
+
import { TestingRunCommand } from '../../../lib/testing-run-command.js';
|
|
4
|
+
export default class TestingTestRun extends TestingRunCommand {
|
|
7
5
|
static args = {
|
|
8
6
|
id: Args.integer({
|
|
9
7
|
description: 'CRT job/test ID to run.',
|
|
@@ -19,40 +17,10 @@ export default class TestingTestRun extends AgentiaCommand {
|
|
|
19
17
|
static flags = {
|
|
20
18
|
...testingProjectFlag,
|
|
21
19
|
...testingRunOptionFlags,
|
|
22
|
-
'wait-for-result': Flags.boolean({
|
|
23
|
-
default: false,
|
|
24
|
-
description: 'Poll CRT until the started build reaches a terminal result.',
|
|
25
|
-
}),
|
|
26
20
|
};
|
|
27
21
|
async run() {
|
|
28
22
|
const { args, flags } = await this.parse(TestingTestRun);
|
|
29
|
-
|
|
30
|
-
if (!flags['wait-for-result']) {
|
|
31
|
-
this.display(() => {
|
|
32
|
-
this.log('Testing run started');
|
|
33
|
-
this.log(formatTestingRecord({ build: runResult.build, jobId: runResult.jobId, projectId: runResult.projectId }));
|
|
34
|
-
});
|
|
35
|
-
return runResult;
|
|
36
|
-
}
|
|
37
|
-
const buildId = normalizeTestingId(runResult.build);
|
|
38
|
-
const wait = await this.withSpinner('Waiting for testing result', () => waitForTestingBuildResult({
|
|
39
|
-
...testingRunOptions(flags, { jobId: args.id, projectId: flags.project }),
|
|
40
|
-
buildId,
|
|
41
|
-
}));
|
|
42
|
-
const result = { ...runResult, finalBuild: wait.build, wait };
|
|
43
|
-
this.display(() => {
|
|
44
|
-
this.log('Testing run finished');
|
|
45
|
-
this.log(formatTestingRecord(formatWaitResult(result)));
|
|
46
|
-
});
|
|
47
|
-
return result;
|
|
23
|
+
return this.executeTestingRun(flags, { jobId: args.id, projectId: flags.project }, 'run');
|
|
48
24
|
}
|
|
49
25
|
}
|
|
50
|
-
function formatWaitResult(result) {
|
|
51
|
-
return {
|
|
52
|
-
buildId: result.wait?.buildId ?? normalizeTestingId(result.build),
|
|
53
|
-
finalBuild: result.finalBuild,
|
|
54
|
-
jobId: result.jobId,
|
|
55
|
-
projectId: result.projectId,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
26
|
//# sourceMappingURL=run.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../src/commands/testing/test/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../src/commands/testing/test/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EACL,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAC,iBAAiB,EAAiC,MAAM,qCAAqC,CAAA;AAErG,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,iBAAiB;IAC3D,MAAM,CAAU,IAAI,GAAG;QACrB,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC;YACf,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAA;IACD,MAAM,CAAU,WAAW,GAAG,mCAAmC,CAAA;IACjE,MAAM,CAAU,QAAQ,GAAG;QACzB,qEAAqE;QACrE,uFAAuF;QACvF,4EAA4E;KAC7E,CAAA;IACD,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,kBAAkB;QACrB,GAAG,qBAAqB;KACzB,CAAA;IAEM,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,IAAI,EAAE,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QACtD,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,OAAO,EAAC,EAAE,KAAK,CAAC,CAAA;IACzF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AgentiaCommand } from '../../lib/agentia-command.js';
|
|
2
2
|
import { type TestingFileOperation } from '../../lib/testing-types.js';
|
|
3
3
|
export type TestingUpdateResult = {
|
|
4
|
+
dryRun?: true;
|
|
4
5
|
operations: TestingFileOperation[];
|
|
5
6
|
response: Record<string, unknown>;
|
|
6
7
|
};
|
|
@@ -16,6 +17,11 @@ export default class TestingUpdate extends AgentiaCommand {
|
|
|
16
17
|
static flags: {
|
|
17
18
|
'author-email': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
'author-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
'base-path': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
22
|
+
message: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
'parent-commit': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'remote-prefix': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
25
|
add: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
26
|
remove: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
27
|
replace: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -27,11 +27,18 @@ export default class TestingUpdate extends AgentiaCommand {
|
|
|
27
27
|
default: DEFAULT_TESTING_AUTHOR.name,
|
|
28
28
|
description: 'Author name for CRT file history.',
|
|
29
29
|
}),
|
|
30
|
+
'base-path': Flags.string({ description: 'Require local upload files to stay within this directory.' }),
|
|
31
|
+
'dry-run': Flags.boolean({ default: false, description: 'Return a sanitized plan without making a request.' }),
|
|
32
|
+
message: Flags.string({ description: 'Commit message for CRT file history.' }),
|
|
33
|
+
'parent-commit': Flags.string({ description: 'Expected parent commit hash.' }),
|
|
34
|
+
'remote-prefix': Flags.string({ description: 'Validated remote path prefix for all operations.' }),
|
|
30
35
|
};
|
|
31
36
|
async run() {
|
|
32
37
|
const { args, flags } = await this.parse(TestingUpdate);
|
|
33
38
|
const operations = buildFileOperationsFromSpecs({
|
|
34
39
|
add: flags.add,
|
|
40
|
+
basePath: flags['base-path'],
|
|
41
|
+
remotePrefix: flags['remote-prefix'],
|
|
35
42
|
remove: flags.remove,
|
|
36
43
|
replace: flags.replace,
|
|
37
44
|
});
|
|
@@ -41,8 +48,11 @@ export default class TestingUpdate extends AgentiaCommand {
|
|
|
41
48
|
const result = await this.withSpinner('Updating testing test', () => uploadTestingJobFiles({
|
|
42
49
|
author: { email: flags['author-email'], name: flags['author-name'] },
|
|
43
50
|
branch: flags.branch,
|
|
51
|
+
commitMessage: flags.message,
|
|
52
|
+
dryRun: flags['dry-run'],
|
|
44
53
|
jobId: args.id,
|
|
45
54
|
operations,
|
|
55
|
+
parentCommitHash: flags['parent-commit'],
|
|
46
56
|
projectId: flags.project,
|
|
47
57
|
}));
|
|
48
58
|
this.display(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/testing/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,4BAA4B,EAAE,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,iCAAiC,CAAA;AAC3H,OAAO,EAAC,mBAAmB,EAA4B,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/testing/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EACL,iBAAiB,EACjB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C,CAAA;QAChD,CAAC,CAAC,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AgentiaCommand } from '../../../lib/agentia-command.js';
|
|
2
|
+
import { type TestingUserParameter } from '../../../lib/testing-types.js';
|
|
3
|
+
export default class TestingUserParameterCreate extends AgentiaCommand {
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static flags: {
|
|
7
|
+
'no-trim': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
trim: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
value: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'value-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'value-stdin': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
sensitive: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
type: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
unique: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<TestingUserParameter>;
|
|
19
|
+
}
|