Master

本页面中的信息并不完全以您的首选语言展示,我们正在完善其他语言版本。想要以您的首选语言了解相关信息,可以点击这里下载PDF。

工具

Terratest

Published: Apr 24, 2019
Last Updated: Apr 13, 2021
Apr 2021
试验?

Terratest 在过去曾经作为基础设施测试的一个选项,吸引了我们的注意。从那时候起,我们的团队就一直在使用它,并且对它的稳定性及它所提供的体验感到非常兴奋。Terratest是一个Golang库,用来简化基础设施代码的自动化测试编写。通过基础设施即代码的工具,例如Terraform,你可以创建真实的基础设施组件(如服务器、防火墙或负载均衡器),在它们之上部署应用程序,并使用Terratest验证预期的行为。在测试结束后,Terratest可以取消应用的部署并清理资源。对于基础设施在真实环境中的端到端测试,该工具非常有用。

Apr 2019
评估?

We widely use Terraform as code to configure a cloud infrastructure. Terratest is a Golang library that makes it easier to write automated tests for infrastructure code. A test run creates real infrastructure components (such as servers, firewalls or load balancers), deploys applications on them and validates the expected behavior using Terratest. At the end of the test, Terratest can undeploy the apps and clean up resources. This makes it largely useful for end-to-end tests of your infrastructure in a real environment.