Azure / Azure/azure-sdk-tools

Generate Test Recordings in Pipelines

Open
#5,138 1 comment 0 reactions 1 assignee Claimed by @scbedd View on GitHub
Central-EngSys
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

At the time of writing to generate test recordings for use in PR CI pipelines you must have the required Azure resources for that SDK and run tests manually in record mode, once the recordings are generated they need to be committed into the active PR. There are conveniences for deploying Azure resources by using the same tooling that runs tests against live Azure resources, but it still requires knowing how to run that, have access to Azure resources, and knowing any environment variables/configurations that need to be set using the Azure resources.

This is a feature request to investigate generating test recordings using the pipeline that runs tests against Azure resources. Benefits of this is all configuration is handled by the pipeline and there is no need to have access to or deploy Azure resources manually. Additionally, there can be guards put into place to validate the test recordings don't contain any secrets before allowing them to be committed into a PR, where right now it's still possible to accidentally commit secret and even if secrets are leaked with this new infrastructure the resources are destroyed after the pipeline finishes running.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.