@provartesting/provardx-cli 1.4.0 → 1.4.1

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.
@@ -0,0 +1,10 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ import { SfProvarCommandResult } from '@provartesting/provardx-plugins-utils';
3
+ export default class SfProvarConfigGet extends SfCommand<SfProvarCommandResult> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly strict = false;
8
+ private errorHandler;
9
+ run(): Promise<SfProvarCommandResult>;
10
+ }
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Copyright (c) 2024 Provar Limited.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.md file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ */
7
+ import * as fileSystem from 'node:fs';
8
+ import { SfCommand } from '@salesforce/sf-plugins-core';
9
+ import { errorMessages, populateResult, ErrorHandler, ProvarConfig, checkNestedProperty, getNestedProperty, Messages } from '@provartesting/provardx-plugins-utils';
10
+ /**
11
+ * Gets the value for specified propertykey under arguments from provardx-properties.json
12
+ * laoded under config.json
13
+ *
14
+ */
15
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
16
+ const messages = Messages.loadMessages('@provartesting/provardx-cli', 'sf.provar.config.get');
17
+ export default class SfProvarConfigGet extends SfCommand {
18
+ static summary = messages.getMessage('summary');
19
+ static description = messages.getMessage('description');
20
+ static examples = messages.getMessages('examples');
21
+ static strict = false;
22
+ errorHandler = new ErrorHandler();
23
+ async run() {
24
+ const { argv, flags } = await this.parse(SfProvarConfigGet);
25
+ const config = await ProvarConfig.loadConfig(this.errorHandler);
26
+ const propertiesFilePath = config.get('PROVARDX_PROPERTIES_FILE_PATH')?.toString();
27
+ let attributeValue = null;
28
+ if (propertiesFilePath === undefined || !fileSystem.existsSync(propertiesFilePath)) {
29
+ this.errorHandler.addErrorsToList('MISSING_FILE', errorMessages.MISSING_FILE_ERROR);
30
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
31
+ }
32
+ try {
33
+ /* eslint-disable */
34
+ if (!argv.length) {
35
+ this.errorHandler.addErrorsToList('MISSING_PROPERTY', errorMessages.MISSING_PROPERTY_GET);
36
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
37
+ }
38
+ const data = fileSystem.readFileSync(propertiesFilePath, { encoding: 'utf8' });
39
+ const propertyFileContent = JSON.parse(data);
40
+ const propertyName = argv[0];
41
+ if (propertyName.includes('.')) {
42
+ if (!checkNestedProperty(propertyFileContent, propertyName)) {
43
+ this.errorHandler.addErrorsToList('UNKNOWN_PROPERTY', errorMessages.UNKNOWN_PROPERTY);
44
+ }
45
+ else {
46
+ attributeValue = getNestedProperty(propertyFileContent, propertyName);
47
+ }
48
+ }
49
+ else {
50
+ if (!propertyFileContent.hasOwnProperty(propertyName)) {
51
+ this.errorHandler.addErrorsToList('UNKNOWN_PROPERTY', errorMessages.UNKNOWN_PROPERTY);
52
+ }
53
+ else {
54
+ attributeValue = propertyFileContent[propertyName];
55
+ }
56
+ }
57
+ }
58
+ catch (err) {
59
+ if (err.name === 'SyntaxError') {
60
+ this.errorHandler.addErrorsToList('MALFORMED_FILE', errorMessages.MALFORMED_FILE_ERROR);
61
+ }
62
+ else {
63
+ throw err;
64
+ }
65
+ }
66
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this), attributeValue);
67
+ }
68
+ }
69
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/get.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAyB,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAm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AC;YAClB,IAAI,GAAG,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;gBAC/B,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,gBAAgB,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;YAC1F,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC,CAAC;IACjG,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ import { SfProvarCommandResult } from '@provartesting/provardx-plugins-utils';
3
+ export default class SfProvarConfigSet extends SfCommand<SfProvarCommandResult> {
4
+ static readonly summary: string;
5
+ static readonly description: string;
6
+ static readonly examples: string[];
7
+ static readonly strict = false;
8
+ private errorHandler;
9
+ run(): Promise<SfProvarCommandResult>;
10
+ }
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Copyright (c) 2024 Provar Limited.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.md file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ */
7
+ import * as fileSystem from 'node:fs';
8
+ import { SfCommand, parseVarArgs } from '@salesforce/sf-plugins-core';
9
+ import { populateResult, ErrorHandler, Messages, ProvarConfig, parseJSONString, setNestedProperty, errorMessages } from '@provartesting/provardx-plugins-utils';
10
+ /**
11
+ * Sets the specified property key and value inside provardx-properties.json
12
+ * loaded under config file
13
+ *
14
+ */
15
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
16
+ const messages = Messages.loadMessages('@provartesting/provardx-cli', 'sf.provar.config.set');
17
+ export default class SfProvarConfigSet extends SfCommand {
18
+ static summary = messages.getMessage('summary');
19
+ static description = messages.getMessage('description');
20
+ static examples = messages.getMessages('examples');
21
+ static strict = false;
22
+ errorHandler = new ErrorHandler();
23
+ async run() {
24
+ const { argv, flags } = await this.parse(SfProvarConfigSet);
25
+ // eslint-disable-next-line
26
+ const config = await ProvarConfig.loadConfig(this.errorHandler);
27
+ const propertiesFilePath = config.get('PROVARDX_PROPERTIES_FILE_PATH')?.toString();
28
+ if (propertiesFilePath === undefined || !fileSystem.existsSync(propertiesFilePath)) {
29
+ this.errorHandler.addErrorsToList('MISSING_FILE', errorMessages.MISSING_FILE_ERROR);
30
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
31
+ }
32
+ try {
33
+ /* eslint-disable */
34
+ const parsed = parseVarArgs({}, argv);
35
+ if (Object.keys(parsed).length === 0) {
36
+ this.errorHandler.addErrorsToList('MISSING_PROPERTY', errorMessages.MISSING_PROPERTY);
37
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
38
+ }
39
+ const data = fileSystem.readFileSync(propertiesFilePath, { encoding: 'utf8' });
40
+ const propertyFileContent = JSON.parse(data);
41
+ for (let [propertyName, propertyValue] of Object.entries(parsed)) {
42
+ if (!propertyValue) {
43
+ this.errorHandler.addErrorsToList('MISSING_VALUE', errorMessages.MISSING_VALUE);
44
+ }
45
+ if (propertyName.length < 1) {
46
+ this.errorHandler.addErrorsToList('MISSING_PROPERTY', errorMessages.MISSING_PROPERTY);
47
+ }
48
+ try {
49
+ propertyValue = parseJSONString(propertyValue);
50
+ }
51
+ catch (err) {
52
+ this.errorHandler.addErrorsToList('INVALID_VALUE', errorMessages.INVALID_VALUE);
53
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
54
+ }
55
+ if (propertyName.includes('.')) {
56
+ setNestedProperty(propertyFileContent, propertyName, propertyValue);
57
+ }
58
+ else {
59
+ propertyFileContent[propertyName] = propertyValue;
60
+ }
61
+ }
62
+ if (this.errorHandler.getErrors().length == 0) {
63
+ fileSystem.writeFileSync(propertiesFilePath, JSON.stringify(propertyFileContent, null, 3));
64
+ }
65
+ }
66
+ catch (err) {
67
+ if (err.name === 'InvalidArgumentFormatError') {
68
+ this.errorHandler.addErrorsToList('INVALID_ARGUMENT', errorMessages.INVALID_ARGUMENT);
69
+ }
70
+ else if (err.name === 'SyntaxError') {
71
+ this.errorHandler.addErrorsToList('MALFORMED_FILE', errorMessages.MALFORMED_FILE_ERROR);
72
+ }
73
+ else {
74
+ throw err;
75
+ }
76
+ }
77
+ return populateResult(flags, this.errorHandler, messages, this.log.bind(this));
78
+ }
79
+ }
80
+ //# sourceMappingURL=set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set.js","sourceRoot":"","sources":["../../../../../src/commands/provar/automation/config/set.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAyB,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGvL;;;;GAIG;AAEH,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,6BAA6B,EAAE,sBAAsB,CAAC,CAAC;AAE9F,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,SAAgC;IACtE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,MAAM,GAAG,KAAK,CAAC;IAE9B,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IAEnC,KAAK,CAAC,GAAG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G,CAAC,IAAI,KAAK,4BAA4B,EAAE,CAAC;gBAC9C,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,kBAAkB,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;YACxF,CAAC;iBAAM,IAAI,GAAG,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;gBACtC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,gBAAgB,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;YAC1F,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;QACD,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC"}
@@ -0,0 +1,17 @@
1
+ # summary
2
+
3
+ Retrieves a value from the loaded properties file.
4
+
5
+ # description
6
+
7
+ Retrieves a value from the loaded properties file.
8
+
9
+ # examples
10
+
11
+ - Retrieves a value from the loaded properties file
12
+
13
+ <%= config.bin %> <%= command.id %> 'key'
14
+
15
+ # error.MultipleFailure
16
+
17
+ %s
@@ -0,0 +1,17 @@
1
+ # summary
2
+
3
+ Sets a property in the loaded properties file.
4
+
5
+ # description
6
+
7
+ Sets a property in the loaded properties file.
8
+
9
+ # examples
10
+
11
+ - Sets a property in the loaded properties file with resp. values
12
+
13
+ <%= config.bin %> <%= command.id %> 'key'='value'
14
+
15
+ # error.MultipleFailure
16
+
17
+ %s
@@ -182,6 +182,68 @@
182
182
  "generate:config:automation:provar"
183
183
  ]
184
184
  },
185
+ "provar:automation:config:get": {
186
+ "aliases": [],
187
+ "args": {},
188
+ "description": "Retrieves a value from the loaded properties file.",
189
+ "examples": [
190
+ "Retrieves a value from the loaded properties file\n<%= config.bin %> <%= command.id %> 'key'"
191
+ ],
192
+ "flags": {
193
+ "json": {
194
+ "description": "Format output as json.",
195
+ "helpGroup": "GLOBAL",
196
+ "name": "json",
197
+ "allowNo": false,
198
+ "type": "boolean"
199
+ }
200
+ },
201
+ "hasDynamicHelp": false,
202
+ "hiddenAliases": [],
203
+ "id": "provar:automation:config:get",
204
+ "pluginAlias": "@provartesting/provardx-cli",
205
+ "pluginName": "@provartesting/provardx-cli",
206
+ "pluginType": "core",
207
+ "strict": false,
208
+ "summary": "Retrieves a value from the loaded properties file.",
209
+ "enableJsonFlag": true,
210
+ "isESM": true,
211
+ "relativePath": [
212
+ "lib",
213
+ "commands",
214
+ "provar",
215
+ "automation",
216
+ "config",
217
+ "get.js"
218
+ ],
219
+ "aliasPermutations": [],
220
+ "permutations": [
221
+ "provar:automation:config:get",
222
+ "automation:provar:config:get",
223
+ "automation:config:provar:get",
224
+ "automation:config:get:provar",
225
+ "provar:config:automation:get",
226
+ "config:provar:automation:get",
227
+ "config:automation:provar:get",
228
+ "config:automation:get:provar",
229
+ "provar:config:get:automation",
230
+ "config:provar:get:automation",
231
+ "config:get:provar:automation",
232
+ "config:get:automation:provar",
233
+ "provar:automation:get:config",
234
+ "automation:provar:get:config",
235
+ "automation:get:provar:config",
236
+ "automation:get:config:provar",
237
+ "provar:get:automation:config",
238
+ "get:provar:automation:config",
239
+ "get:automation:provar:config",
240
+ "get:automation:config:provar",
241
+ "provar:get:config:automation",
242
+ "get:provar:config:automation",
243
+ "get:config:provar:automation",
244
+ "get:config:automation:provar"
245
+ ]
246
+ },
185
247
  "provar:automation:config:load": {
186
248
  "aliases": [],
187
249
  "args": {},
@@ -253,6 +315,68 @@
253
315
  "load:config:automation:provar"
254
316
  ]
255
317
  },
318
+ "provar:automation:config:set": {
319
+ "aliases": [],
320
+ "args": {},
321
+ "description": "Sets a property in the loaded properties file.",
322
+ "examples": [
323
+ "Sets a property in the loaded properties file with resp. values\n<%= config.bin %> <%= command.id %> 'key'='value'"
324
+ ],
325
+ "flags": {
326
+ "json": {
327
+ "description": "Format output as json.",
328
+ "helpGroup": "GLOBAL",
329
+ "name": "json",
330
+ "allowNo": false,
331
+ "type": "boolean"
332
+ }
333
+ },
334
+ "hasDynamicHelp": false,
335
+ "hiddenAliases": [],
336
+ "id": "provar:automation:config:set",
337
+ "pluginAlias": "@provartesting/provardx-cli",
338
+ "pluginName": "@provartesting/provardx-cli",
339
+ "pluginType": "core",
340
+ "strict": false,
341
+ "summary": "Sets a property in the loaded properties file.",
342
+ "enableJsonFlag": true,
343
+ "isESM": true,
344
+ "relativePath": [
345
+ "lib",
346
+ "commands",
347
+ "provar",
348
+ "automation",
349
+ "config",
350
+ "set.js"
351
+ ],
352
+ "aliasPermutations": [],
353
+ "permutations": [
354
+ "provar:automation:config:set",
355
+ "automation:provar:config:set",
356
+ "automation:config:provar:set",
357
+ "automation:config:set:provar",
358
+ "provar:config:automation:set",
359
+ "config:provar:automation:set",
360
+ "config:automation:provar:set",
361
+ "config:automation:set:provar",
362
+ "provar:config:set:automation",
363
+ "config:provar:set:automation",
364
+ "config:set:provar:automation",
365
+ "config:set:automation:provar",
366
+ "provar:automation:set:config",
367
+ "automation:provar:set:config",
368
+ "automation:set:provar:config",
369
+ "automation:set:config:provar",
370
+ "provar:set:automation:config",
371
+ "set:provar:automation:config",
372
+ "set:automation:provar:config",
373
+ "set:automation:config:provar",
374
+ "provar:set:config:automation",
375
+ "set:provar:config:automation",
376
+ "set:config:provar:automation",
377
+ "set:config:automation:provar"
378
+ ]
379
+ },
256
380
  "provar:automation:config:validate": {
257
381
  "aliases": [],
258
382
  "args": {},
@@ -316,5 +440,5 @@
316
440
  ]
317
441
  }
318
442
  },
319
- "version": "1.4.0"
443
+ "version": "1.4.1"
320
444
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@provartesting/provardx-cli",
3
3
  "description": "A plugin for the Salesforce CLI to orchestrate testing activities and report quality metrics to Provar Manager",
4
- "version": "1.4.0",
4
+ "version": "1.4.1",
5
5
  "license": "BSD-3-Clause",
6
6
  "plugins": [
7
7
  "@provartesting/provardx-plugins-automation",