@uipath/data-fabric-tool 1.199.0 → 1.201.0-preview.115

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.
@@ -397,21 +397,21 @@ describe("df entities — entities lifecycle", () => {
397
397
  "create",
398
398
  name,
399
399
  "--body",
400
- '{"fields":[{"fieldName":"old_col","type":"STRING"}]}',
400
+ '{"fields":[{"fieldName":"oldColumn","type":"STRING"}]}',
401
401
  ]);
402
402
  const id: string = created.Data.Id;
403
403
  try {
404
404
  const schema = cli(["entities", "get", id]);
405
405
  const oldField = (schema.Data.Fields as Json[]).find(
406
- (f) => f.Name === "old_col",
406
+ (f) => f.Name === "oldColumn",
407
407
  );
408
- if (!oldField) throw new Error("scratch missing 'old_col'");
408
+ if (!oldField) throw new Error("scratch missing 'oldColumn'");
409
409
  const body = JSON.stringify({
410
410
  addFields: [{ fieldName: "status", type: "STRING" }],
411
411
  updateFields: [
412
412
  { id: oldField.Id, displayName: "Old Column" },
413
413
  ],
414
- removeFields: [{ fieldName: "old_col" }],
414
+ removeFields: [{ fieldName: "oldColumn" }],
415
415
  });
416
416
  const updated = cli([
417
417
  "entities",
@@ -426,7 +426,7 @@ describe("df entities — entities lifecycle", () => {
426
426
  expect(updated.Result).toBe("Success");
427
427
  expect(updated.Code).toBe("EntityUpdated");
428
428
  expect(updated.Data.Id).toBe(id);
429
- expect(updated.Data.RemovedFields).toContain("old_col");
429
+ expect(updated.Data.RemovedFields).toContain("oldColumn");
430
430
  expect(updated.Data.Reason).toBe("S9 composition test");
431
431
  } finally {
432
432
  runDf([
@@ -482,9 +482,10 @@ describe("df entities — entities lifecycle", () => {
482
482
  "update",
483
483
  "pre-network",
484
484
  "--body",
485
- '{"addFields":[{"fieldName":"dup_col","type":"STRING"},{"fieldName":"dup_col","type":"STRING"}]}',
485
+ '{"addFields":[{"fieldName":"duplicate","type":"STRING"},{"fieldName":"DUPLICATE","type":"STRING"}]}',
486
486
  ],
487
- message: "Duplicate fieldName 'dup_col' in addFields",
487
+ message:
488
+ "Duplicate field name 'DUPLICATE' (case-insensitive)",
488
489
  },
489
490
  {
490
491
  label: "addFields ∩ removeFields conflict",
@@ -515,7 +516,7 @@ describe("df entities — entities lifecycle", () => {
515
516
  it(
516
517
  "S11: update refuses removeFields without --yes and --reason",
517
518
  () => {
518
- const body = '{"removeFields":[{"fieldName":"old_col"}]}';
519
+ const body = '{"removeFields":[{"fieldName":"oldColumn"}]}';
519
520
 
520
521
  const noFlags = expectFailure(
521
522
  runDf(["entities", "update", "pre-network", "--body", body]),
@@ -0,0 +1,32 @@
1
+ import { describe, it } from "vitest";
2
+ import {
3
+ type E2EManifest,
4
+ MANIFEST_PATH,
5
+ } from "../../../tests/e2e-shared/global-setup";
6
+ import {
7
+ assertHelpCommandDuration,
8
+ EXEC_TIMEOUT,
9
+ readManifest,
10
+ } from "../../../tests/e2e-shared/helpers";
11
+
12
+ const HELP_BUDGET_MS = 1_000;
13
+
14
+ const manifest = readManifest<E2EManifest>(MANIFEST_PATH);
15
+ const projectDir = manifest.sharedInstall.tempDir;
16
+
17
+ // Performance budgets are unreliable on Windows CI runners; skip there.
18
+ describe.skipIf(process.platform === "win32")("data-fabric performance", () => {
19
+ it(
20
+ `uip df -h completes within ${HELP_BUDGET_MS}ms`,
21
+ () => {
22
+ assertHelpCommandDuration({
23
+ projectDir,
24
+ packageName: "@uipath/data-fabric-tool",
25
+ args: "df -h",
26
+ thresholdMs: HELP_BUDGET_MS,
27
+ testFileUrl: import.meta.url,
28
+ });
29
+ },
30
+ EXEC_TIMEOUT,
31
+ );
32
+ });