Declare the seat object-store in minio's seats (issue 1516)

This commit is contained in:
2026-10-21 15:19:03 +02:00
parent dc2b0641bf
commit 6e2762d943
2 changed files with 14 additions and 0 deletions
@@ -24,6 +24,11 @@ func manifest(t *testing.T) map[string]any {
// bundle, and no tool named minio_presigned_url remains.
func TestManifestClaimsTheSeat(t *testing.T) {
m := manifest(t)
seats, _ := m["seats"].([]any)
if len(seats) != 1 || seats[0].(map[string]any)["name"] != "object-store" || seats[0].(map[string]any)["scope"] != "mesh" ||
len(seats[0].(map[string]any)["serves"].([]any)) != 1 || seats[0].(map[string]any)["serves"].([]any)[0] != "link" {
t.Fatalf("the seat object-store is not declared in seats (the mesh defines no seat a module does not declare): %v", seats)
}
claims := m["claims"].([]any)
if len(claims) != 1 {
t.Fatalf("claims: %v", claims)
+9
View File
@@ -18,6 +18,15 @@
"requires": [
"route"
],
"seats": [
{
"name": "object-store",
"scope": "mesh",
"serves": [
"link"
]
}
],
"claims": [
{
"name": "object-store",