Delete run manifest domain model

This commit is contained in:
2026-09-03 04:16:36 +00:00
parent 2d20900cbf
commit c0fbc14f2d
15 changed files with 25 additions and 595 deletions

View File

@@ -46,6 +46,18 @@ func TestRemoteCommitDecodersRejectUnknownFields(t *testing.T) {
}
}
func TestRemoteCommitDecoderAcceptsHistoricalRunManifestArtifact(t *testing.T) {
data := []byte(`{"format_version":1,"campaign":"sample-campaign","session_id":"2026-05-03","run_id":"20260519T010203Z-a1b2c3d4","artifacts":[{"type":"run_manifest","source":"run:manifest.json","destination_key":"sample-campaign/2026-05-03/runs/20260519T010203Z-a1b2c3d4/manifest.json","sha256":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","size":1,"generation":"historical"}]}`)
commit, err := DecodeRemoteCommitManifest(data)
if err != nil {
t.Fatalf("DecodeRemoteCommitManifest() error = %v", err)
}
if got := commit.Artifacts[0].Type; got != RemoteArtifactTypeRunManifest {
t.Fatalf("artifact type = %q, want %q", got, RemoteArtifactTypeRunManifest)
}
}
func TestLoadCurrentStateReadsVerifiedRemoteCommit(t *testing.T) {
store := &storage.FakeBackend{}
commit := testRemoteCommit(t, "20260519T010203Z-a1b2c3d4")