(pipelines): A guidance to writing programatic smoke test
See original GitHub issueGeneral Issue
How to get a proper permission (assume role) to launch integration test
The Question
In short, I am looking on a problem of defining a test after a stage deployment that utilized said stage outputs and runs integration/smoke tests using Python’s pytest
+ boto3
. Now I am using ShellStep
as post
stage step and envFromCfnOutputs
feature to get ahold of couple of ARNs and more importantly a role’s ARN that allows to access deployed resources.
Question is: how I assume said role? Obviously the role created by CDK backing ShellStep
’s CodeBuild
is not accessible to me. What can I do?
CDK CLI Version
1.139.0
Framework Version
No response
Node.js Version
No response
OS
No response
Language
Python
Language Version
3.10.1
Other information
Looking for guidance 😉
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (14 by maintainers)
Top Results From Across the Web
Easily Set Up Smoke Tests in Your Build Pipeline - Split
Write Your Tests. Smoke tests should be a combination of functional end-to-end tests, unit tests, integration tests, and API tests. Once you get ......
Read more >Smoke Testing Keeps Your Delivery Pipeline Safe and Sound
Smoke testing is a technique for discovering major software flaws using CI/CD pipelines. It consists of very shallow but broad tests that ...
Read more >How To Run API Smoke Tests In Your Continuous ...
APIs make it easy for resource-sharing across teams on the same project. Here's a quick guide on how to run API smoke tests...
Read more >Smoke Tests - GitLab Docs
In short, smoke tests run quick end-to-end functional tests from GitLab QA and are designed to run against the specified environment to ensure...
Read more >Smoke testing in CI/CD pipelines - CircleCI
Here's a common situation that plagues many development teams. You run an application through your CI/CD pipeline and all of the tests pass, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes
To control the role used in a ShellStep, you should switch to
CodeBuildStep
. It exposesrole
and you can add statements to the policy directly.