-
Notifications
You must be signed in to change notification settings - Fork 1.1k
test: add mocked terraform installation files #20757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3d73d8a to
4617874
Compare
hugodutka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea to mock the terraform server. When you're refactoring code, please avoid process exec for moving, zipping, and making files executable. We run these tests on multiple OSes, and stuff will be less prone to break if you stick to the go stdlib.
provisioner/terraform/testdata/fake-terraform-installer/setup_fakes.sh
Outdated
Show resolved
Hide resolved
provisioner/terraform/testdata/fake-terraform-installer/setup_fakes.sh
Outdated
Show resolved
Hide resolved
hugodutka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good
Adds mocked terraform installation files and uses them in provisioner/terraform.TestInstall
Fixes: coder/internal#72