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

Add Azure Video Analyzer Edge Module resource #12911

Conversation

EliiseS
Copy link
Contributor

@EliiseS EliiseS commented Aug 9, 2021

Add support for the Azure Video Analyzer Edge Module described at #12912

Closes #12912

Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @EliiseS

Thanks for this PR - taking a look through I've left a couple of minor comments inline but this otherwise LGTM 👍

Thanks!

@EliiseS
Copy link
Contributor Author

EliiseS commented Aug 10, 2021

@tombuildsstuff Addressed the changes, thanks for the feedback!

Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

a couple of minor things I missed the first time around but this otherwise LGTM 👍

data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.basic(data),
Check: acceptance.ComposeAggregateTestCheckFunc(),
Copy link
Member

Choose a reason for hiding this comment

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

can we make this:

Suggested change
Check: acceptance.ComposeAggregateTestCheckFunc(),
Check: acceptance.ComposeAggregateTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've made this into a check of the video_analyzer_name name now

Copy link
Member

Choose a reason for hiding this comment

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

the values of the video_analyzer_name field are checked in the import below (which validates we can import this from the API) - so it'd be better to check the resource exists in the Azure API (e.g. to check we're not tracking a resource which has been provisioned with the wrong name or something) than the specific value here:

Suggested change
Check: acceptance.ComposeAggregateTestCheckFunc(),
Check: acceptance.ComposeAggregateTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),

@EliiseS
Copy link
Contributor Author

EliiseS commented Aug 10, 2021

@tombuildsstuff Done and done 😄

@tombuildsstuff
Copy link
Member

Tests pass"

Screenshot 2021-08-11 at 09 00 28

@tombuildsstuff tombuildsstuff merged commit ba15ffb into hashicorp:main Aug 11, 2021
tombuildsstuff added a commit that referenced this pull request Aug 11, 2021
@EliiseS EliiseS deleted the feature/azure-video-analyzer-edge-module-resource branch August 11, 2021 09:00
@github-actions
Copy link

This functionality has been released in v2.72.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Azure Video Analyzer Edge Module
2 participants