Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement mock for S3Tables service #8470

Draft
wants to merge 47 commits into
base: master
Choose a base branch
from

Conversation

felixscherz
Copy link
Contributor

@felixscherz felixscherz commented Jan 5, 2025

Hi, this is in regards to #8422.

I used scripts/scaffold.py to setup the s3tables service. I had to modify some URL patterns for the S3 service, as they overlap with s3tables.

Supported methods:

  • create_table_bucket
  • get_table_bucket
  • list_table_buckets
  • delete_table_bucket
  • create_namespace
  • delete_namespace
  • list_namespaces
  • create_table
  • get_table
  • list_tables
  • delete_table
  • update_metadata_location
  • get_metadata_location
  • rename_table
  • delete_table_bucket_policy
  • delete_table_policy
  • get_table_bucket_maintenance_configuration
  • get_table_bucket_policy
  • get_table_maintenance_configuration
  • get_table_maintenance_job_status
  • get_table_policy
  • put_table_bucket_maintenance_configuration
  • put_table_bucket_policy
  • put_table_maintenance_configuration
  • put_table_policy

Currently working on supporting the new type of S3 buckets within the existing S3 backend so that data can be written to/read from S3 tables.

Copy link

codecov bot commented Jan 5, 2025

Codecov Report

Attention: Patch coverage is 90.21480% with 41 lines in your changes missing coverage. Please review.

Project coverage is 92.62%. Comparing base (cfaa898) to head (6752429).

Files with missing lines Patch % Lines
moto/s3tables/models.py 89.14% 24 Missing ⚠️
moto/s3tables/exceptions.py 79.59% 10 Missing ⚠️
moto/s3/models.py 75.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8470      +/-   ##
==========================================
- Coverage   92.63%   92.62%   -0.01%     
==========================================
  Files        1224     1229       +5     
  Lines      105922   106340     +418     
==========================================
+ Hits        98120    98497     +377     
- Misses       7802     7843      +41     
Flag Coverage Δ
servertests 27.91% <69.92%> (+0.16%) ⬆️
unittests 92.59% <90.21%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Feat: Support for S3 Tables API
1 participant