Declare the seat document-converter in only-office's seats (issue 1595)

This commit is contained in:
2026-10-21 15:19:03 +02:00
parent 6e2762d943
commit 68e1ad80ac
2 changed files with 14 additions and 0 deletions
@@ -148,6 +148,11 @@ func manifest(t *testing.T) map[string]any {
// work queue and the state convert-answers (the shape of brother's device-asks and device-answers).
func TestManifestClaimsTheSeat(t *testing.T) {
m := manifest(t)
seats, _ := m["seats"].([]any)
if len(seats) != 1 || seats[0].(map[string]any)["name"] != "document-converter" || seats[0].(map[string]any)["scope"] != "mesh" ||
len(seats[0].(map[string]any)["serves"].([]any)) != 1 || seats[0].(map[string]any)["serves"].([]any)[0] != "convert" {
t.Fatalf("the seat document-converter is not declared in seats (the mesh defines no seat a module does not declare): %v", seats)
}
claims := m["claims"].([]any)
c := claims[0].(map[string]any)
if len(claims) != 1 || c["name"] != "document-converter" || c["scope"] != "mesh" ||
+9
View File
@@ -14,6 +14,15 @@
"endpoint": "web"
}
},
"seats": [
{
"name": "document-converter",
"scope": "mesh",
"serves": [
"convert"
]
}
],
"claims": [
{
"name": "document-converter",