only-office tests decode their manifest instead of judging it (ADR 0578 §3)

Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
2026-11-01 02:29:48 +01:00
parent a924397765
commit 7239b3e3dd
3 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module only-office
go 1.26.0
require (
git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261021122348-6c857e1c025f
git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261101012031-7cab079e2ec3
github.com/nats-io/nats-server/v2 v2.11.17
github.com/nats-io/nats.go v1.54.0
)
+2
View File
@@ -1,5 +1,7 @@
git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261021122348-6c857e1c025f h1:7J/9jOfSfjfYpf8MOj96HwQRViQUkBNMb71RHP2mjn8=
git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261021122348-6c857e1c025f/go.mod h1:ouERNpZizzwZ0HLEtAypsY9FR20FyUgUYRni6J7kVCY=
git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261101012031-7cab079e2ec3 h1:an2f0MLx9OhaDLu5i51OMPBbuGwX+aoTzqOkFLMpVfE=
git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261101012031-7cab079e2ec3/go.mod h1:ouERNpZizzwZ0HLEtAypsY9FR20FyUgUYRni6J7kVCY=
github.com/antithesishq/antithesis-sdk-go v0.7.0-default-no-op h1:Z/MZK75wC/NSrkgqeNIa7jexam9uWzhLmFTSCPI/kn0=
github.com/antithesishq/antithesis-sdk-go v0.7.0-default-no-op/go.mod h1:FQyySiasQQM8735Ddel3MRojmy4dA1IqCeyJ5jmPMbI=
github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo=
+7 -7
View File
@@ -19,9 +19,9 @@ func TestManifestOffersDocumentServer(t *testing.T) {
t.Fatalf("reading module.json: %v", err)
}
m, err := catalogue.ParseManifest(raw)
m, err := catalogue.Decode(raw)
if err != nil {
t.Fatalf("parsing module.json: %v", err)
t.Fatalf("decoding module.json: %v", err)
}
var offer *catalogue.Offer
@@ -74,9 +74,9 @@ func TestSecureLinkSecretIsPinned(t *testing.T) {
if err != nil {
t.Fatalf("reading module.json: %v", err)
}
m, err := catalogue.ParseManifest(raw)
m, err := catalogue.Decode(raw)
if err != nil {
t.Fatalf("parsing module.json: %v", err)
t.Fatalf("decoding module.json: %v", err)
}
own, ok := m.OwnSecrets["secure-link"]
if !ok {
@@ -256,12 +256,12 @@ func readLayout(t *testing.T) layout {
if err != nil {
t.Fatalf("reading module.json: %v", err)
}
if _, err := catalogue.ParseManifest(raw); err != nil {
t.Fatalf("parsing module.json: %v", err)
if _, err := catalogue.Decode(raw); err != nil {
t.Fatalf("decoding module.json: %v", err)
}
var m layout
if err := json.Unmarshal(raw, &m); err != nil {
t.Fatalf("parsing module.json: %v", err)
t.Fatalf("decoding module.json: %v", err)
}
return m
}