Declare the seat object-store in minio's seats (issue 1516)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -18,6 +18,15 @@
|
||||
"requires": [
|
||||
"route"
|
||||
],
|
||||
"seats": [
|
||||
{
|
||||
"name": "object-store",
|
||||
"scope": "mesh",
|
||||
"serves": [
|
||||
"link"
|
||||
]
|
||||
}
|
||||
],
|
||||
"claims": [
|
||||
{
|
||||
"name": "object-store",
|
||||
|
||||
Reference in New Issue
Block a user