Files
floci/compatibility-tests/sdk-test-java/src
Yassir Idhbi 4d2a99506a feat: add ListTagsForResource, TagResource, UntagResource for Step Functions (#767)
* feat: add ListTagsForResource, TagResource, UntagResource for Step Functions

Implements the SharedTagsController TagHandler pattern for SFN state
machines and activities. Adds tags field to StateMachine and Activity
models, tag CRUD methods to StepFunctionsService, and a new
StepFunctionsTagHandler that registers the 'states' service key.

Closes #766

* feat: cover JSON 1.0 SDK wire path for SFN tag operations

Add ListTagsForResource, TagResource, UntagResource cases to
StepFunctionsJsonHandler for AWS SDK (awsJson1.0) compatibility.
The REST /tags/{arn} path (SharedTagsController) already covers
Terraform; this commit covers the SDK path.

Expand integration test to verify both wire paths. Add SDK-based
compatibility test using SfnClient.

* chore: remove invented inline comment from tags integration test

* refactor: remove dead REST TagHandler and clean up integration tests

StepFunctionsTagHandler registered the 'states' service key with
SharedTagsController (REST /tags/{arn}), but SFN uses JSON 1.0 exclusively.
No real client calls GET/POST/DELETE /tags/arn:aws:states:... — the handler
was unreachable dead code.

Remove StepFunctionsTagHandler and strip the eight REST-path tests from
StepFunctionsTagsIntegrationTest. The remaining JSON 1.0 tests are now
self-contained (no longer depend on state set by the deleted REST tests).

* fix: correct SDK API usage in tag tests and persist creation-time tags

- Fix StepFunctionsTagsTest: tags() takes Tag... not Map, use tagsAsMap()
  helper to convert List<Tag> before asserting with MapAssert methods
- Fix StepFunctionsService: pass tags through createStateMachine/createActivity
  so tags set at creation time are persisted immediately
- Fix StepFunctionsJsonHandler: extract parseTagsArray() helper, add 400
  validation when tags/tagKeys are not arrays, wire tags into create calls
- Expand StepFunctionsTagsIntegrationTest: cover creation-time tag persistence
  for state machines and activities, and 400 on malformed tag input
2026-05-13 23:46:54 -05:00
..