This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Migrate MFA, server certificate and signing certificate tests#13783
Merged
Conversation
S3 Image Test Results (AMD64 / ARM64) 2 files 2 suites 7m 58s ⏱️ Results for commit f0fb9c7. |
7211a8d to
aabae16
Compare
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 2h 36m 16s ⏱️ - 1m 11s For more details on these failures, see this check. Results for commit f0fb9c7. ± Comparison against base commit 7211a8d. |
f0fb9c7 to
8f094fb
Compare
pinzon
approved these changes
Feb 17, 2026
Comment on lines
+1
to
+5
| """ | ||
| Tests for IAM Virtual MFA Device operations. | ||
|
|
||
| Migrated from moto's test suite to LocalStack with snapshot testing for AWS parity validation. | ||
| """ |
Member
There was a problem hiding this comment.
Nit: I don't think this is necessary
Member
Author
There was a problem hiding this comment.
Valid point, I completely overlooked that one!
2a4a871 to
9ad687c
Compare
9ad687c to
1447a87
Compare
dfangl
added a commit
that referenced
this pull request
Feb 19, 2026
dfangl
added a commit
that referenced
this pull request
Feb 26, 2026
dfangl
added a commit
that referenced
this pull request
Feb 26, 2026
dfangl
added a commit
that referenced
this pull request
Mar 4, 2026
dfangl
added a commit
that referenced
this pull request
Mar 6, 2026
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Motivation
This PR migrates the MFA, server certificate and sigining certificate tests from moto to LocalStack. The tests were adapted to be parity tested against AWS.
Changes
Generated migration summary:
Summary
MFA Tests Migration
Source:
moto/tests/test_iam/test_iam.py(lines 1705-1903)Destination:
localstack/tests/aws/services/iam/test_iam_mfa.pyMapping Table
test_create_virtual_mfa_device(L1705-1733)test_virtual_mfa_device_lifecycleNone,/,/test-path/,/test//double/)test_create_virtual_mfa_device_errors(L1735-1777)test_virtual_mfa_device_errorstest_delete_virtual_mfa_device(L1779-1791)test_virtual_mfa_device_lifecycletest_delete_virtual_mfa_device_errors(L1793-1805)test_virtual_mfa_device_errorstest_list_virtual_mfa_devices(L1807-1847)test_list_virtual_mfa_devicestest_list_virtual_mfa_devices_errors(L1849-1858)test_list_virtual_mfa_devicestest_enable_virtual_mfa_device(L1860-1903)test_enable_virtual_mfa_devicepyotpfor valid TOTP codes; includes deactivation flowtest_mfa_devices(L1682-1702)test_physical_token_mfaNew LocalStack Tests (Not in Moto)
test_enable_mfa_device_errorsServer Certificate Tests Migration
Source:
moto/tests/test_iam/test_iam_server_certificates.pyDestination:
localstack/tests/aws/services/iam/test_iam_server_certificates.pyMapping Table
test_get_all_server_certs(L11-25)test_server_certificate_lifecycletest_get_server_cert_doesnt_exist(L27-39)test_server_certificate_errorstest_get_server_cert(L41-63)test_server_certificate_lifecycletest_delete_server_cert(L65-84)test_server_certificate_lifecycletest_delete_unknown_server_cert(L86-97)test_server_certificate_errorstest_get_server_cert_with_certificate_chain(L99-122)test_server_certificate_with_chainSigning Certificate Tests Migration
Source:
moto/tests/test_iam/test_iam_signing_certificates.pyDestination:
localstack/tests/aws/services/iam/test_iam_signing_certificates.pyMapping Table
test_signing_certs(L16-46)test_signing_certificate_lifecycletest_create_too_many_certificates(L48-73)test_signing_certificate_errorstest_retrieve_cert_details_using_credentials_report(L75-131)test_upload_cert_for_unknown_user(L133-166)test_signing_certificate_errorstest_upload_invalid_certificate(L168-177)test_signing_certificate_errorsMalformedCertificateerror casetest_update_unknown_certificate(L179-191)test_signing_certificate_errorsNot Migrated
test_retrieve_cert_details_using_credentials_reportTests
Tests pass against AWS even without snapshot tests.
Related
Closes UNC-244
Closes UNC-226