mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(mq): route DescribeSharedResources (#5356)
* fix(mq): route DescribeSharedResources
GET /v1/brokers/{broker-id}/shared-resources was unrouted and fell through
to S3 (NoSuchBucket). Return an empty sharedResources list for an existing
broker, NotFoundException for an unknown one.
* docs(mq): say why DescribeSharedResources is always empty
Floci does have resource shares (RAM); what keeps the list empty is
that a share reaches a broker only through UpdateBroker's
resourceShareArns, and Floci has no UpdateBroker.
This commit is contained in:
1 parent
ae75a653d6
commit
d1fe27cb92
3 files changed
+33
No files matched your search
@@ -184,6 +184,15 @@ public class AmazonMqController {
|
||||
return Response.ok(body).build();
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/v1/brokers/{broker-id}/shared-resources")
|
||||
public Response describeSharedResources(@PathParam("broker-id") String brokerId) {
|
||||
// Always empty: a resource share reaches a broker only through UpdateBroker's
|
||||
// resourceShareArns, and Floci has no UpdateBroker to associate one with the broker.
|
||||
service.describeBroker(brokerId);
|
||||
return Response.ok(Map.of("sharedResources", List.of())).build();
|
||||
}
|
||||
|
||||
@DELETE
|
||||
@Path("/v1/brokers/{broker-id}/users/{username}")
|
||||
public Response deleteUser(@PathParam("broker-id") String brokerId,
|
||||
|
||||
Reference in new issue
Block a user