Declare the seat document-converter in only-office's seats (issue 1595)
This commit is contained in:
@@ -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" ||
|
||||
|
||||
@@ -14,6 +14,15 @@
|
||||
"endpoint": "web"
|
||||
}
|
||||
},
|
||||
"seats": [
|
||||
{
|
||||
"name": "document-converter",
|
||||
"scope": "mesh",
|
||||
"serves": [
|
||||
"convert"
|
||||
]
|
||||
}
|
||||
],
|
||||
"claims": [
|
||||
{
|
||||
"name": "document-converter",
|
||||
|
||||
Reference in New Issue
Block a user