question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(pipelines): A guidance to writing programatic smoke test

See original GitHub issue

General 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
gshpychkacommented, Feb 7, 2022

@gshpychka you mean that as drop-in replacement for ShellStep ?

yes

1reaction
gshpychkacommented, Feb 2, 2022

To control the role used in a ShellStep, you should switch to CodeBuildStep. It exposes role and you can add statements to the policy directly.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found