Skip to content

fix(kinesis): add input validation for CreateStream, DeleteStream, ListStreams#286

Merged
vieiralucas merged 2 commits intomainfrom
worktree-kinesis-validation-fixes
Apr 12, 2026
Merged

fix(kinesis): add input validation for CreateStream, DeleteStream, ListStreams#286
vieiralucas merged 2 commits intomainfrom
worktree-kinesis-validation-fixes

Conversation

@vieiralucas
Copy link
Copy Markdown
Member

@vieiralucas vieiralucas commented Apr 12, 2026

Summary

  • Add StreamName length validation (1-128) to CreateStream and DeleteStream
  • Add ExclusiveStartStreamName (1-128), NextToken (min 1), and Limit (1-100) validation to ListStreams
  • Fixes 6 failing conformance variants, bringing all 14 implemented Kinesis operations to 100% conformance

Test plan

  • cargo test -p fakecloud-kinesis — all unit tests pass
  • cargo clippy -p fakecloud-kinesis — clean
  • Conformance probes: all 14 implemented ops now 14/14 fully passing (621/1611 variants)

Summary by cubic

Add strict input validation to Kinesis CreateStream, DeleteStream, and ListStreams to match AWS behavior and prevent invalid requests. Fixes six failing conformance variants and brings all 14 Kinesis ops in fakecloud-kinesis to 100% conformance.

  • Bug Fixes

    • Enforce StreamName length 1–128 in CreateStream/DeleteStream and helpers.
    • Validate ListStreams params: ExclusiveStartStreamName 1–128, NextToken min 1, Limit 1–100.
    • Set ListStreams default Limit to 100.
  • Refactors

    • Ran cargo fmt for code formatting.

Written for commit 93d8f91. Summary will update on new commits.

…stStreams

- Validate StreamName length (1-128) in require_stream_name and resolve_stream_name
- Validate ExclusiveStartStreamName length (1-128), NextToken min length, and
  Limit range (1-100) in ListStreams
- Fixes 6 failing conformance variants (negative_too_long_StreamName,
  negative_too_short/too_long_ExclusiveStartStreamName, negative_above_max_Limit,
  negative_too_short_NextToken)
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@vieiralucas vieiralucas merged commit 894e9b1 into main Apr 12, 2026
22 checks passed
@vieiralucas vieiralucas deleted the worktree-kinesis-validation-fixes branch April 12, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant