feat(plugins): isolate device integrations
This commit is contained in:
@@ -9,7 +9,7 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from k1link.sessions.models import ReplayCommand
|
||||
from k1link.sessions.models import ReplayArtifact, ReplayCommand
|
||||
from k1link.sessions.preparation import (
|
||||
RecordingPreparationSnapshot,
|
||||
SessionRecordingPreparationManager,
|
||||
@@ -25,12 +25,30 @@ def _command(root: Path, session_id: str = "20260717T100000Z_viewer_live") -> Re
|
||||
metadata.write_text('{"record_type":"message","sequence":1}\n', encoding="utf-8")
|
||||
return ReplayCommand(
|
||||
session_id=session_id,
|
||||
source_path=source,
|
||||
plugin_id="test.recording-plugin",
|
||||
allowed_root=root,
|
||||
session_root=root,
|
||||
replay_byte_length=source.stat().st_size,
|
||||
metadata_byte_length=metadata.stat().st_size,
|
||||
expected_source_sha256=None,
|
||||
primary_artifact_id="primary",
|
||||
artifacts=(
|
||||
ReplayArtifact(
|
||||
artifact_id="primary",
|
||||
path=source,
|
||||
media_type="application/x-test-recording",
|
||||
file_byte_length=source.stat().st_size,
|
||||
replay_byte_length=source.stat().st_size,
|
||||
expected_sha256=None,
|
||||
),
|
||||
ReplayArtifact(
|
||||
artifact_id="index",
|
||||
path=metadata,
|
||||
media_type="application/x-ndjson",
|
||||
file_byte_length=metadata.stat().st_size,
|
||||
replay_byte_length=metadata.stat().st_size,
|
||||
expected_sha256=None,
|
||||
),
|
||||
),
|
||||
timeline_origin_epoch_ns=0,
|
||||
timeline_origin_monotonic_ns=0,
|
||||
speed=1.0,
|
||||
loop=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user