Skip to content

Payment-Cryptography: New Service Methods - #10129

Open
algobarb wants to merge 30 commits into
getmoto:masterfrom
algobarb:feature/paymentcrypto
Open

Payment-Cryptography: New Service Methods#10129
algobarb wants to merge 30 commits into
getmoto:masterfrom
algobarb:feature/paymentcrypto

Conversation

@algobarb

@algobarb algobarb commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Resolves #10100

Overview

Added the following Payment Cryptography methods:

  • add_key_replication_regions
  • associate_mpa_team
  • create_alias
  • create_key
  • delete_alias
  • delete_key
  • delete_resource_policy
  • disable_default_key_replication_regions
  • disassociate_mpa_team
  • enable_default_key_replication_regions
  • export_key
  • get_alias
  • get_certificate_signing_request
  • get_default_key_replication_regions
  • get_key
  • get_mpa_team_association
  • get_parameters_for_export
  • get_parameters_for_import
  • get_public_key_certificate
  • get_resource_policy
  • import_key
  • list_aliases
  • list_keys
  • list_tags_for_resource
  • put_resource_policy
  • remove_key_replication_regions
  • restore_key
  • start_key_usage
  • stop_key_usage
  • tag_resource
  • untag_resource
  • update_alias

Details

  • Ran make lint and make format. Only fixed the errors related to payment-cryptography.
  • Ran scripts/implementation_coverage.py and just kept the docs change for docs/docs/services/payment-cryptography.rst
  • PR had test server errors, so I added "payment-cryptography": "controlplane.payment-cryptography", to the moto/moto_server/werkzeug_app.py. Not sure if that's the right place to put it.

algobarb added 26 commits July 10, 2026 18:08
@algobarb
algobarb marked this pull request as ready for review July 24, 2026 18:53
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.63807% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.25%. Comparing base (115c0a4) to head (216b8e4).
⚠️ Report is 35 commits behind head on master.

Files with missing lines Patch % Lines
moto/paymentcryptography/models.py 92.62% 18 Missing ⚠️
moto/paymentcryptography/responses.py 98.27% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #10129    +/-   ##
========================================
  Coverage   93.24%   93.25%            
========================================
  Files        1326     1331     +5     
  Lines      120998   121371   +373     
========================================
+ Hits       112826   113179   +353     
- Misses       8172     8192    +20     
Flag Coverage Δ
servertests 27.95% <26.54%> (-0.01%) ⬇️
unittests 93.22% <94.63%> (+<0.01%) ⬆️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

PaymentCryptography: Add support for AWS Payment Cryptography Key

1 participant