- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 4.3k
 
Sns:v2 platform application crud #13312
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
          Test Results - Alternative Providers176 tests    56 ✅  37s ⏱️ Results for commit 535a1d1. ♻️ This comment has been updated with latest results.  | 
    
          Test Results (amd64) - Integration, Bootstrap    5 files      5 suites   2h 39m 45s ⏱️ Results for commit 535a1d1. ♻️ This comment has been updated with latest results.  | 
    
          LocalStack Community integration with Pro    2 files      2 suites   2h 2m 0s ⏱️ Results for commit 535a1d1. ♻️ This comment has been updated with latest results.  | 
    
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.
Wow, this is nice! Congrats for being able to validate those tests, this is awesome!
I only have a few comments, mostly related to the manual setup required, if we could centralize how we are using the credentials I think it'd be easier to re-validate all tests (instead of manually modifying those credentials by hand every time), and some nits.
This is a really nice PR! 🥳
| return _parse_and_validate_arn(platform_application_arn, "PlatformApplication") | ||
| 
               | 
          ||
| 
               | 
          ||
| def _parse_and_validate_arn(arn: str | None, resource_type: str) -> ArnData: | 
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.
praise: nice adapting this function to be reused!
| assert messages[0]["Source"] == sender_address | ||
| 
               | 
          ||
| 
               | 
          ||
| class TestSNSPlatformApplicationCrud: | 
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.
congrats on validating those tests, this is really awesome!
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.
LGTM, this is really great, thanks for addressing the comments super fast, this is awesome! Really nice PR 🥳
| self, aws_client, snapshot, sns_create_platform_application, platform_credentials | ||
| ): | ||
| platform = "ADM" | ||
| # if tested against AWS, the fixture needs to contain real credentials | 
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.
thanks for adding the comment, this is very clear 👍
Motivation
This PR adds the crud methods for both Platform Applications as well as platform applications attributes
Changes
Tests
Related
closes PNX-85, closes PNX-81