- 授权协议: Apache-2.0
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://gruntwork.io/
- 软件文档: https://github.com/gruntwork-io/terratest/blob/master/README.md
- 官方下载: https://github.com/gruntwork-io/terratest/releases
软件介绍
Terratest 是一个开源的 Go 语言库,可更轻松地为基础设施代码编写自动化测试。它为通用基础设施的测试任务提供了各种帮助函数和模式,其中包括:
测试 Terraform 代码
测试打包器模板
测试 Docker 镜像
通过 SSH 在服务器上执行命令
使用 AWS API
发送 HTTP 请求
运行 shell 命令
这里有一个简单的例子来说明如何测试一些 Terraform 代码:
terraformOptions := &terraform.Options {
// The path to where your Terraform code is located
TerraformDir: "../examples/terraform-basic-example",
}
// At the end of the test, run `terraform destroy` to clean up any resources that were created
defer terraform.Destroy(t, terraformOptions)
// This will run `terraform init` and `terraform apply` and fail the test if there are any errors
terraform.InitAndApply(t, terraformOptions)
// Validate your code works as expected
validateServerIsWorking(t, terraformOptions)
深入理解C++11
Michael Wong、IBM XL编译器中国开发团队 / 机械工业出版社 / 2013-6 / 69.00元
《深入理解C++11:C++11新特性解析与应用》内容简介:国内首本全面深入解读C++11新标准的专著,由C++标准委员会代表和IBM XL编译器中国开发团队共同撰写。不仅详细阐述了C++11标准的设计原则,而且系统地讲解了C++11新标准中的所有新语言特性、新标准库特性、对原有特性的改进,以及如何应用所有这些新特性。 《深入理解C++11:C++11新特性解析与应用》一共8章:第1章从设计......一起来看看 《深入理解C++11》 这本书的介绍吧!
