-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Bump moto-ext to 4.2.0.post1 #9044
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b604698
Bump moto-ext to 4.2.0.post1
viren-nadkarni 19d74bb
Remove clean_key_name utility
viren-nadkarni 949ce8e
fix logs patch argument count
dfangl e6728d4
fix patch not applied and key cleaning
bentsku 0a6d476
remove secretsmanager patch
bentsku fd0921f
fix clean_key_name in s3 stream provider
bentsku e59f3f8
update @patch(MotoLogStream.put_log_events)
bentsku bd4ac0f
adapt test for different timestamp precision
bentsku File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,24 +311,7 @@ def fake_secret_update( | |
): | ||
fn(self, description, tags, kms_key_id, last_changed_date) | ||
if last_changed_date is not None: | ||
self.last_changed_date = time.time() | ||
|
||
|
||
class FakeSecretVersionStore(dict): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've ran some secretsmanager tests and it seems they run without the patch now, I think it has been fixed upstream with getmoto/moto#6720 |
||
def __setitem__(self, key, value): | ||
self.put_version(key, value, time.time()) | ||
|
||
def put_version(self, version_id: str, version: dict, create_date: Optional[float] = None): | ||
if create_date and "createdate" in version: | ||
version["createdate"] = create_date | ||
super().__setitem__(version_id, version) | ||
|
||
|
||
@patch(FakeSecret.set_versions) | ||
def fake_secret_set_versions(_, self, versions): | ||
self.versions = FakeSecretVersionStore() | ||
for version_id, version in versions.items(): | ||
self.versions.put_version(version_id, version, self.created_date) | ||
self.last_changed_date = round(time.time(), 3) | ||
|
||
|
||
@patch(SecretsManagerBackend.get_secret_value) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 should have been a sign from the big issue this bump is fixing, but well 🤷♂️ fixing the patch to properly work