简体   繁体   English

有没有办法在 azure devops 管道中对 terraform 代码运行 terratest?

[英]Is there a way to run terratest on terraform codes in azure devops pipelines?

I am a beginner in the terratesting.我是地形测试的初学者。 I have an assignment where I have to perform terratesting for InfraStructure code that I wrote in terraform.我有一个任务,我必须对我在 terraform 中编写的 InfraStructure 代码执行 terratesting。 I went through the documentation " https://terratest.gruntwork.io/docs/getting-started/introduction/ ".我浏览了文档“ https://terratest.gruntwork.io/docs/getting-started/introduction/ ”。 And so far I am able to perform terratest for Azure in VS code locally.到目前为止,我能够在本地 VS 代码中为 Azure 执行 terratest。 I wanted to do it in Azure DevOps Pipeline.我想在 Azure DevOps Pipeline 中做到这一点。 Is there a way to perform these test cases in Azure DevOps pipelines?有没有办法在 Azure DevOps 管道中执行这些测试用例?

And so far I am able to perform terratest for Azure in VS code locally.到目前为止,我能够在本地 VS 代码中为 Azure 执行 terratest。 I wanted to do it in Azure DevOps Pipeline.我想在 Azure DevOps Pipeline 中做到这一点。 Is there a way to perform these test cases in Azure DevOps pipelines?有没有办法在 Azure DevOps 管道中执行这些测试用例?

Actually we normally test Terraform modules using Terratest in Azure instead of Azure Devops Service .事实上,我们通常在测试使用Terratest Terraform模块Azure ,而不是Azure Devops Service You can follow Tutorial:Test Terraform modules in Azure using Terratest if you're interested in doing that in Azure.如果您有兴趣在 Azure 中执行此操作,可以使用 Terratest遵循教程:使用 Terratest 在 Azure 中测试 Terraform 模块

But if you do need some directions about is it possible and how to do that using Azure Devops Pipelines, the answer is yes.但是,如果您确实需要一些关于是否有可能以及如何使用 Azure Devops Pipelines 做到这一点的指导,答案是肯定的。 And here's one great blog from Julien Corioland : Continuous Integration using Docker and Azure Pipeline .这是Julien Corioland的一篇很棒的博客: 使用 Docker 和 Azure Pipeline 进行持续集成 Hope it helps :)希望能帮助到你 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM