feat(gelios): expand safe B2 telemetry registry
This commit is contained in:
@@ -17,6 +17,10 @@ import {
|
||||
geliosProviderPackageV11,
|
||||
geliosTelemetryFieldRegistryV4,
|
||||
} from "../providers/gelios/v11/index.mjs";
|
||||
import {
|
||||
geliosProviderPackageV14,
|
||||
geliosTelemetryFieldRegistryV6,
|
||||
} from "../providers/gelios/v14/index.mjs";
|
||||
|
||||
const positionsConnection = instantiateL2Connection(geliosProviderPackageV11, {
|
||||
tenantId: "tenant-compiler-fixture",
|
||||
@@ -122,6 +126,25 @@ assert.equal(Object.isFrozen(positionsPlan), true);
|
||||
assert.equal(Object.isFrozen(positionsPlan.steps), true);
|
||||
assert.equal(Object.isFrozen(positionsPlan.graphBlueprint), true);
|
||||
|
||||
const operationalConnection = instantiateL2Connection(geliosProviderPackageV14, {
|
||||
tenantId: "tenant-compiler-fixture",
|
||||
connectionId: "gelios-operational-telemetry-fixture",
|
||||
collectionProfileId: "gelios.positions.current.realtime.v7",
|
||||
providerCredentialRef: "ndc-credref:provider-compiler-fixture-0001",
|
||||
});
|
||||
const operationalPlan = compileL2ExecutionPlan(
|
||||
geliosProviderPackageV14,
|
||||
operationalConnection,
|
||||
{ telemetryFieldRegistry: geliosTelemetryFieldRegistryV6 },
|
||||
);
|
||||
assert.deepEqual(validateL2ExecutionPlan(operationalPlan), { ok: true, errors: [] });
|
||||
assert.equal(
|
||||
operationalPlan.steps
|
||||
.find((step) => step.kind === "semantic_mapping")
|
||||
.config.telemetryProjection.entries.length,
|
||||
45,
|
||||
);
|
||||
|
||||
const clonedPlan = compileL2ExecutionPlan(
|
||||
structuredClone(geliosProviderPackageV11),
|
||||
structuredClone(positionsConnection),
|
||||
|
||||
Reference in New Issue
Block a user