forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix merge conflict, remove itsdangerous leftovers (#2)
* fix(parameters): make cache aware of single vs multiple calls Signed-off-by: heitorlessa <[email protected]> * chore: cleanup, add test for single and nested Signed-off-by: heitorlessa <[email protected]> * chore(deps): bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.9 (aws-powertools#2943) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump the boto-typing group with 1 update (aws-powertools#2944) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]> * chore(ci): changelog rebuild (aws-powertools#2945) Co-authored-by: Powertools for AWS Lambda (Python) bot <[email protected]> * chore(deps-dev): bump aws-cdk from 2.90.0 to 2.91.0 (aws-powertools#2947) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump gitpython from 3.1.31 to 3.1.32 in /docs (aws-powertools#2948) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump pypa/gh-action-pypi-publish from 1.8.9 to 1.8.10 (aws-powertools#2946) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]> * chore(ci): changelog rebuild (aws-powertools#2952) Co-authored-by: Powertools for AWS Lambda (Python) bot <[email protected]> * feat(event_handler): allow stripping route prefixes using regexes (aws-powertools#2521) Co-authored-by: Roy Assis <[email protected]> Co-authored-by: Ruben Fonseca <[email protected]> * feat(metrics): add Datadog observability provider (aws-powertools#2906) Co-authored-by: Leandro Damascena <[email protected]> Co-authored-by: heitorlessa <[email protected]> * chore(deps-dev): bump xenon from 0.9.0 to 0.9.1 (aws-powertools#2955) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump actions/setup-node from 3.7.0 to 3.8.0 (aws-powertools#2957) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump cfn-lint from 0.79.6 to 0.79.7 (aws-powertools#2956) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]> * chore(ci): changelog rebuild (aws-powertools#2958) Co-authored-by: Powertools for AWS Lambda (Python) bot <[email protected]> * docs(metrics): update Datadog integration diagram (aws-powertools#2954) Co-authored-by: Leandro Damascena <[email protected]> * docs(roadmap): add GovCloud and China region item (aws-powertools#2960) * fix(parameters): make cache aware of single vs multiple calls Signed-off-by: heitorlessa <[email protected]> * chore: cleanup, add test for single and nested Signed-off-by: heitorlessa <[email protected]> * chore(test): remove itsdangerous from perf test Signed-off-by: heitorlessa <[email protected]> * chore(deps): remove itsdangerous dependencies * chore: disable sockets in encryption sdk tests Signed-off-by: heitorlessa <[email protected]> * refactor(tests): use a test double * chore: address make pr errors Signed-off-by: heitorlessa <[email protected]> --------- Signed-off-by: heitorlessa <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Powertools for AWS Lambda (Python) bot <[email protected]> Co-authored-by: roy <[email protected]> Co-authored-by: Roy Assis <[email protected]> Co-authored-by: Ruben Fonseca <[email protected]> Co-authored-by: Roger Zhang <[email protected]> Co-authored-by: aal80 <[email protected]> Co-authored-by: Seshu Brahma <[email protected]>
- Loading branch information
1 parent
01885a5
commit 5b83b66
Showing
6 changed files
with
120 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Tuple | ||
|
||
from pytest_socket import disable_socket | ||
|
||
|
||
def pytest_runtest_setup(): | ||
"""Disable Unix and TCP sockets for Data masking tests""" | ||
disable_socket() | ||
|
||
|
||
class FakeEncryptionClient: | ||
ENCRYPTION_HEADER = "test" | ||
|
||
def encrypt(self, source: bytes | str, **kwargs) -> Tuple[bytes, str]: | ||
if isinstance(source, str): | ||
return source.encode(), self.ENCRYPTION_HEADER | ||
|
||
return source, self.ENCRYPTION_HEADER | ||
|
||
def decrypt(self, source: bytes, **kwargs) -> Tuple[bytes, str]: | ||
return source, "dummy_decryption_header" |
This file contains 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 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