gruntwork-io / terratest

Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
https://terratest.gruntwork.io/
Apache License 2.0
7.46k stars 1.32k forks source link

Azure User/Group/Role Integration Testing #573

Open simplyvishal opened 4 years ago

simplyvishal commented 4 years ago

Hi All .I am new to Terratest.We have main.tf which call 3 modules users, group, and role.So this code creates user(s) then associate with the group and lastly it assign role to Group. We have unit test but how and what integration test i can achieve for this using terratest .Thnaks in advance for your reply .

tsalright commented 4 years ago

@simplyvishal we are working on the CI pipeline for Azure support. See #89 for the whole story. With that we are establishing the pattern for contributing Azure modules in Terratest with examples and tests.

Until there are modules for User, Group, and Role, you can use Terratest to execute your terraform and destroy it like the samples show you and use the Azure SDK for Go to interact with Azure Resources in Go. I believe the specific resource you would use is authorization or authorization preview