-
-
Notifications
You must be signed in to change notification settings - Fork 149
add auth0_client and auth0_global_client data sources and tests #363
Conversation
Hi @yinzara! Thank you for this contribution. I think the PR looks good, but do you mind changing it from |
Absolutely, I'll submit an update as soon as I'm available. |
One more thing that is missing is if you can add a bit of docs about this data source! Another PR, #281, has a bit of documentation (https://github.com/alexkappa/terraform-provider-auth0/blob/7f443aca26b23b7bf5d89d71799679ffc00bf7c2/docs/datasources/user.md). Would be great to get that here as well so that the two PRs that start providing data sources have supporting documentation. Thanks again @yinzara for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks @yinzara!
The only thing I would suggest is to follow some of the practices found in other providers around sharing schemas between resources and data sources. Many providers re-define the entire schema for data sources which I find repetitive and tedious. Others, however, like the google-beta provider may have some practices we can borrow.
For example:
Funny you mention that, I actually created Since their project is also Mozilla v2 licensed, there is no reason we can't do that as don't even need to include the license. I've also added the docs requested and missing docs for the auth0_global_client and auth0_log_stream resources and the new "secrets" attributes of hooks. Here is the result of rerunning the acceptance tests:
|
Hi @yinzara, unfortunately, while passing locally for me in testing at first. Upon merge, it is epicly failing on expecting custom_login_page_on being a different value. I quickly took a look at the test and I think its missing an include string in the test. For now I've reverted it. |
Hi @yinzara do you mind submitting the updated test to re-open this PR (or submit a new one?) Thanks! |
Proposed Changes
Fixes #279
Acceptance Test Output
Community Note