def "getResourcesByType"() {
given:
List<Map> resources = tfPlan.getResourcesByType("aws_s3_bucket")
expect:
resources.size() == 3
resources[0].type == "aws_s3_bucket"
resources[1].type == "aws_s3_bucket"
resources[2].type == "aws_s3_bucket"
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter