-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Cloud Directory] added schema endpoints #8915
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8915 +/- ##
==========================================
- Coverage 92.85% 92.85% -0.01%
==========================================
Files 1287 1287
Lines 112583 112663 +80
==========================================
+ Hits 104539 104612 +73
- Misses 8044 8051 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…bo/moto into feature/clouddirectory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great - thank you for adding support for these endpoints to Moto @leslieetubo!
raise ResourceNotFoundException(schema_arn) | ||
return | ||
|
||
@paginate(pagination_model=PAGINATION_MODEL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see pagination built-in from the beginning!
|
||
non_existent_schema_arn = f"arn:aws:clouddirectory:{region}:{DEFAULT_ACCOUNT_ID}:schema/development/nonexistent" | ||
|
||
with pytest.raises(client.exceptions.ResourceNotFoundException): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see negative tests as well, having proper error handling helps users a lot during development
Maintainers and Reviewers @bblommers and @bpandola.
This PR adds some endpoints to Cloud Directory Service. To create a cloud directory, a published schema ARN needs to be passed. When a schema is created, it is in the development state, until it is published. Only then can it be applied, during this process, the schema arn changes. see
Hence the flow: