Source code can be find here on github : github.com/bee-a-learner/terraform-test Same implementation is discussed here on my blog: rakesh-suryawanshi.medium.com/test-azure-terraform-code-with-terratest-6c1b1249aea2
# terratestmodules [terratestmodules.test] .\main_test.go:146:55: undefined: armresources.ResourcesGetByIDResponse .\main_test.go:162:25: undefined: armresources.NewResourcesClient .\main_test.go:172:36: undefined: armresources.ResourcesGetByIDResponse .\main_test.go:172:62: undefined: ReponseBase .\main_test.go:189:13: undefined: ReponseBase FAIL terratestmodules [build failed] This is error i am getting while executing the command "go test -v -timeout 60m" please help out
someone get this guy a freaking medal, this is the best complete training/showcase for terratest with terraform in the internet, i searched youtube for like 30 minutes and this the only video for someone who seems to understand each command what it does, thanks brother
Thanks for the great content! Some feedback - in the video you showcase Storage Account, but in your repo and blog you have VNET. As a viewer this is really confusing because if I want to follow along and repro the code, I have to pause your screen and type out the code - which isn't ideal. If you had committed the Storage Account code to the repo that would have fixed this.
I am working one more play list which will have all the test for different azure resources with GitHub link please follow the terraform testing playlist from this channel
There would be some changes needed as per the latest package for armresources version 0.3.0 which has been released mid of Jan 2022. The client needs to be created as below client := armresources.NewClient(subscriptionId, cred, nil) armresources.NewResourcesClient -- this has been removed in the new package.
Is there any way to authenticate to Azure through terratest program without providing client id and client secret? also, not MSI authentication as well.
Source code can be find here on github :
github.com/bee-a-learner/terraform-test
Same implementation is discussed here on my blog:
rakesh-suryawanshi.medium.com/test-azure-terraform-code-with-terratest-6c1b1249aea2
# terratestmodules [terratestmodules.test]
.\main_test.go:146:55: undefined: armresources.ResourcesGetByIDResponse
.\main_test.go:162:25: undefined: armresources.NewResourcesClient
.\main_test.go:172:36: undefined: armresources.ResourcesGetByIDResponse
.\main_test.go:172:62: undefined: ReponseBase
.\main_test.go:189:13: undefined: ReponseBase
FAIL terratestmodules [build failed]
This is error i am getting while executing the command "go test -v -timeout 60m" please help out
someone get this guy a freaking medal, this is the best complete training/showcase for terratest with terraform in the internet, i searched youtube for like 30 minutes and this the only video for someone who seems to understand each command what it does, thanks brother
Thanks for the great content!
Some feedback - in the video you showcase Storage Account, but in your repo and blog you have VNET. As a viewer this is really confusing because if I want to follow along and repro the code, I have to pause your screen and type out the code - which isn't ideal. If you had committed the Storage Account code to the repo that would have fixed this.
Code is shared in the description as well as the comment which is pined 📌
Hello sir, can you pls give demo for terramate include terratest in ado pipeline
nice work.. thank you!
I am working one more play list which will have all the test for different azure resources with GitHub link please follow the terraform testing playlist from this channel
There would be some changes needed as per the latest package for armresources version 0.3.0 which has been released mid of Jan 2022. The client needs to be created as below
client := armresources.NewClient(subscriptionId, cred, nil)
armresources.NewResourcesClient -- this has been removed in the new package.
how to check the latest package?
Is there any way to authenticate to Azure through terratest program without providing client id and client secret?
also, not MSI authentication as well.
You can try native terraform test command
th-cam.com/video/oHW7dKBGwX8/w-d-xo.html
Is there any way to connect with you through email or slack? for asking doubts.
@@aakanshaverma1310 mrrsuryawanshi@gmail.com
Hello Sir,
i was trying to store statefile in azure storage account but not able to store that. Seeking some help!
Sure how do I help you
How can I do this task with terratest