Skip to content

test: cover construct_s3_location_object with StorageMode#3961

Merged
licjun merged 4 commits into
aws:developfrom
antespajic:followup/s3-storage-mode-uri-parser-tests
Jul 22, 2026
Merged

test: cover construct_s3_location_object with StorageMode#3961
licjun merged 4 commits into
aws:developfrom
antespajic:followup/s3-storage-mode-uri-parser-tests

Conversation

@antespajic

Copy link
Copy Markdown
Contributor

Description of changes

Follow-up to #3959. Adds unit tests in tests/model/s3_utils/test_uri_parser.py for construct_s3_location_object, isolating the CodeUri/ContentUri → Lambda Code translation logic, including the new S3ObjectStorageMode pass-through.

Covers:

  • dict input with Bucket/Key
  • dict with VersionS3ObjectVersion
  • dict with StorageModeS3ObjectStorageMode
  • dict with all optional fields
  • s3:// URI string form
  • missing Bucket / missing Key raise InvalidResourceException
  • invalid (non dict/str) input raises InvalidResourceException

Tests-only change; no behavior change.

Checklist

  • Add unit tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Isolates CodeUri/ContentUri to Lambda Code translation logic, including
S3ObjectStorageMode pass-through added in aws#3959.
@antespajic
antespajic requested a review from a team as a code owner July 21, 2026 15:36
Ante Spajic added 3 commits July 21, 2026 16:42
Comment thread tests/model/s3_utils/test_uri_parser.py
@licjun
licjun merged commit ab044ba into aws:develop Jul 22, 2026
9 checks passed
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.

3 participants