@norskvideo/ctl-test-harness 0.1.61 → 0.1.62

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/demo/harness.d.ts CHANGED
@@ -43,6 +43,8 @@ export interface LaunchOverrides {
43
43
  /** Merged over the spec's `launch.params`. */
44
44
  params?: Record<string, string | number>;
45
45
  hardware?: "nvidia" | "none";
46
+ /** Replaces the spec's `launch.st2110Nics`. */
47
+ st2110Nics?: string[];
46
48
  workingDirectory?: string;
47
49
  }
48
50
  /** An instance `launch()` brought to running: its resolved ports and URLs,
package/demo/harness.js CHANGED
@@ -139,6 +139,8 @@ export class ProductHarness {
139
139
  const hardware = overrides.hardware ?? spec.launch?.hardware;
140
140
  if (hardware)
141
141
  launchArgv.push("--hardware", hardware);
142
+ for (const nic of overrides.st2110Nics ?? spec.launch?.st2110Nics ?? [])
143
+ launchArgv.push("--st2110-nics", nic);
142
144
  const workingDirectory = overrides.workingDirectory ?? spec.launch?.workingDirectory;
143
145
  if (this.action === "up" && workingDirectory) {
144
146
  launchArgv.push("--working-directory", expandHome(workingDirectory));
package/demo/spec.d.ts CHANGED
@@ -119,6 +119,8 @@ export interface DemoSpec {
119
119
  launch?: {
120
120
  hardware?: "nvidia" | "none";
121
121
  params?: Record<string, string | number>;
122
+ /** Host NICs to claim for an ST 2110 template; one `--st2110-nics` each. */
123
+ st2110Nics?: string[];
122
124
  /** `up` only; `check` launches without it (05-demo s5 playout). */
123
125
  workingDirectory?: string;
124
126
  };
package/demo/spec.js CHANGED
@@ -67,6 +67,7 @@ export const DemoSpecSchema = z
67
67
  .strictObject({
68
68
  hardware: z.enum(["nvidia", "none"]).optional(),
69
69
  params: Params.optional(),
70
+ st2110Nics: z.array(z.string().min(1)).min(1).optional(),
70
71
  workingDirectory: z.string().min(1).optional(),
71
72
  })
72
73
  .optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-test-harness",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {