mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* feat(athena): support ListTagsForResource for workgroups Fixes #2791. terraform-provider-aws's read/refresh for aws_athena_workgroup calls ListTagsForResource unconditionally, even when no tags are set, and floci's Athena handler had no support for the action: Error: listing tags for Athena WorkGroup ...: InvalidAction: Action ListTagsForResource is not supported Parses the workgroup name out of the ResourceARN (using the existing AwsArnUtils helper) and returns the tags already captured on CreateWorkGroup. The primary workgroup always answers with an empty list, matching a live account, since CreateWorkGroup already rejects "primary" and it can never carry real tags. An ARN for an unsupported resource type, or naming a workgroup that doesn't exist, faults with InvalidRequestException like the rest of this handler's not-found cases. * docs(athena): sync the supported-actions table for ListTagsForResource * fix(athena): reject ListTagsForResource ARNs naming a different service pgermosen (review): listTagsForResource only checked that the ARN's resource path started with workgroup/, never the service, so an ARN naming a completely different service with a coincidentally matching region and workgroup name resolved instead of being rejected the way real AWS rejects a ResourceARN naming the wrong service. Adds the explicit arn.service() == "athena" check, plus a RestAssured test proving a workgroup-shaped ARN under a different service is rejected even when a same-named workgroup genuinely exists. Verified by disabling the check and confirming the new test fails with the exact expected 400-vs-200 mismatch before restoring it. Also adds an SDK-client test (AthenaTest, compat suite) round-tripping ListTagsForResource through the real AthenaClient, per review request to validate request/response shapes the way other management API PRs do.