terratest
terratest copied to clipboard
feat(packer): support for template directories
Description
Fixes #1271
With this PR you can use directories for Packer templates
Release Notes (draft)
Added support for Packer template directories
Hello, Adding tests would ensure the ongoing functionality of these changes. Please consider including them. Thank you! 👍
I'm not really sure how to add the tests, since this function calls the actual packer binary
Hi, can be added example for packer and respective tests
References:
https://github.com/gruntwork-io/terratest/blob/master/test/terraform_packer_example_test.go
https://github.com/gruntwork-io/terratest/tree/master/examples/packer-docker-example
is this still ongoing? we need this because our packer template use multiple files
We use this in production and works, however I didn't come around to write the tests
@NefixEstrada do you mind if I take a look and try to create the test?
@walbertus
Sure, go ahead!
Thanks, Néfix
Hello @denis256 , @walbertus has implemented the required tests. Could you take a look again at the MR?
Thank you, Néfix
any input @denis256 ? I'm thinking of adding a mock here to check the binary call but can't find a way to do it. Do you have test recommendations in mind?