【问题标题】:Is there a way to run terratest on terraform codes in azure devops pipelines?有没有办法在 azure devops 管道中的 terraform 代码上运行 terratest?
【发布时间】:2020-06-27 16:52:54
【问题描述】:

我是 terratesting 的初学者。我有一个任务,我必须对我在 terraform 中编写的 InfraStructure 代码执行 terratesting。我浏览了文档“https://terratest.gruntwork.io/docs/getting-started/introduction/”。到目前为止,我能够在本地的 VS 代码中为 Azure 执行 terratest。我想在 Azure DevOps Pipeline 中进行。有没有办法在 Azure DevOps 管道中执行这些测试用例?

【问题讨论】:

    标签: azure-devops terraform azure-pipelines terraform-provider-azure terratest


    【解决方案1】:

    到目前为止,我能够在 VS 代码中为 Azure 执行 terratest 本地。我想在 Azure DevOps Pipeline 中进行。有没有办法 在 Azure DevOps 管道中执行这些测试用例?

    实际上,我们通常使用 Azure 中的 Terratest 而不是 Azure Devops Service 来测试 Terraform 模块。如果你有兴趣在 Azure 中这样做,可以关注 Tutorial:Test Terraform modules in Azure using Terratest

    但是,如果您确实需要一些关于是否可以使用 Azure Devops Pipelines 以及如何使用 Azure Devops Pipelines 的指导,答案是肯定的。这是 Julien Corioland 的一篇很棒的博客:Continuous Integration using Docker and Azure Pipeline。希望对你有帮助:)

    【讨论】:

    猜你喜欢
    • 2020-08-26
    • 2020-05-13
    • 2020-08-03
    • 2021-07-17
    • 2021-09-30
    • 1970-01-01
    • 1970-01-01
    • 2021-12-21
    • 1970-01-01
    相关资源
    最近更新 更多