Skip to content
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

Adding a basic framework for a new Azure module #333

Merged
merged 7 commits into from
Aug 23, 2019

Conversation

drmmarsunited
Copy link
Contributor

Includes support for:

  • Getting authorized access based on env variables or arguments
  • 2 basic tests against Azure Virtual Machines, just as a starting point

The idea here was just to socialize an approach to the beginnings of an Azure module. In true open source fashion, someone else contributed an approach to the Azure model 2 hours before me here haha!

I'm trying to approach the testing methods in a way that somewhat closely aligns to the existing methods for AWS, just to keep the style in line with the rest of the suite. Happy to take consolidated feedback from you (the maintainers) and work together with the author of the other PR on an approach that will accelerate Azure capabilities in Terratest.

Issue link: #89
Related PR: #332

Includes support for:
- Getting authorized access based on env variables or arguments
- 2 basic tests against Azure Virtual Machines, just as a starting point
Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a great start. Thank you! 👍

I left a few minor code style comments in the PR. The only major thing before merging this is:

  1. Add a simple, minimal Azure example to the examples folder.
  2. Add a corresponding test for that example to the test folder.
  3. Update the root README to mention Azure support.

modules/azure/common.go Outdated Show resolved Hide resolved
modules/azure/common.go Outdated Show resolved Hide resolved
modules/azure/common_test.go Outdated Show resolved Hide resolved
modules/azure/common_test.go Outdated Show resolved Hide resolved
modules/azure/common_test.go Outdated Show resolved Hide resolved
modules/azure/compute.go Outdated Show resolved Hide resolved
modules/azure/compute.go Outdated Show resolved Hide resolved
modules/azure/compute.go Outdated Show resolved Hide resolved
@drmmarsunited
Copy link
Contributor Author

Work has been busy, still working on this. Also duplicating region selection functionality from the AWS module into the Azure module, small complexities there.

Mitch Robins added 4 commits July 31, 2019 07:46
Renamed variables for easier reading
Refactored Azure tests to use assert/require from Testify
Updated GetSizeOfVirtualMachineE to return custom type instead of string casting
Adding region helpers and respective tests to mimic AWS module
Renaming Azure subscription ID env var to match Terraform provider spec
Fixing subnet mistake in Terraform example code
@drmmarsunited
Copy link
Contributor Author

This is ready for re-review now. Thanks!

@brikis98
Copy link
Member

brikis98 commented Aug 7, 2019

@mcalhoun Could you review this one? You have more experience with Azure than I do!

@drmmarsunited
Copy link
Contributor Author

How's it going? Anyone had a chance to take a look here?

@drmmarsunited
Copy link
Contributor Author

drmmarsunited commented Aug 22, 2019

@brikis98 @mcalhoun Is there anything I can do to help you guys get this moving along? Even folks in Microsoft PRs/issues are starting to reference this PR 😛

@mcalhoun mcalhoun self-requested a review August 23, 2019 14:31
@mcalhoun mcalhoun merged commit f8167b3 into gruntwork-io:master Aug 23, 2019
@mcalhoun
Copy link
Contributor

Released as v0.18.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants