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: eventgrid_domain data source, test, docs #13033

Merged
merged 6 commits into from
Sep 3, 2021

Conversation

Hjortsberg
Copy link
Contributor

@Hjortsberg Hjortsberg commented Aug 17, 2021

This is a proposal to fix #13008.

The implementation is untested.
This is my first PR to this repo, please be constructive in the feedback so that I can improve. :)

@Hjortsberg Hjortsberg marked this pull request as ready for review August 17, 2021 15:43
@Hjortsberg Hjortsberg changed the title add: eventgrid domain data source, test, docs add: eventgrid_domain data source, test, docs Aug 17, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks for the pr @Hjortsberg - overall looks good and i've left some comments inline and the linters have called out the schema changes required

return fmt.Errorf("making Read request on EventGrid Domain '%s': %+v", name, err)
}

d.SetId(*resp.ID)
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should be nil checking ID here

type EventGridDomainDataSource struct {
}

func TestAccEventGridDomainDataSource_basic(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can probably remove the other tests, usually we just have a single data source test

@stephybun
Copy link
Member

@Hjortsberg since we haven't heard anything back yet i'm going to jump in here and finish up this PR so that your work can be merged and released to the community.

@Hjortsberg
Copy link
Contributor Author

@stephybun, sorry for the lack of replies from me. I greatly appreciate the contribution here, thank you.

@katbyte katbyte added this to the v2.76.0 milestone Sep 3, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @Hjortsberg & @stephybun - LGTM 🍰

@katbyte katbyte merged commit 36dfa00 into hashicorp:main Sep 3, 2021
katbyte added a commit that referenced this pull request Sep 3, 2021
@github-actions
Copy link

This functionality has been released in v2.76.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 Oct 10, 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 Data source: azurerm_eventgrid_domain
4 participants