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

Create datasource azuredevops_serviceendpoint_github, add common func… #627

Merged

Conversation

a30004053
Copy link
Contributor

…tions to create datasource schemas, fix documentation

All Submissions:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code follows the code style of this project.
  • I ran lint checks locally prior to submission.
  • Have you checked to ensure there aren't other open PRs for the same update/change?

What about the current behavior has changed?

This PR adds a new data source azuredevops_serviceendpoint_github which returns details of a GitHub service endpoint defined by an id or a unique service_endpoint_name

Issue Number: #608

Does this introduce a change to go.mod, go.sum or vendor/?

  • Yes
  • No

Does this introduce a breaking change?

  • Yes
  • No

Any relevant logs, error output, etc?

https://pst.klgrth.io/paste/4t6et

Other information

Additional functions are added to azuredevops/internal/service/serviceendpoint/commons.go to support common dataSource schemas and serviceendpoint lookup functions

Modifications were made to azuredevops_serviceendpoint_azurerm datasource as a result of the aforementioned additions to commons.go

@a30004053
Copy link
Contributor Author

TestAccServiceEndpointGitHub_with_serviceEndpointName_DataSource

TF_ACC=1 go test -tags "all" $(go list ./azuredevops/internal/acceptancetests |grep -v 'vendor') -v -run=TestAccServiceEndpointGitHub_with_serviceEndpointName_DataSource -timeout 120m
=== RUN   TestAccServiceEndpointGitHub_with_serviceEndpointName_DataSource
=== PAUSE TestAccServiceEndpointGitHub_with_serviceEndpointName_DataSource
=== CONT  TestAccServiceEndpointGitHub_with_serviceEndpointName_DataSource
--- PASS: TestAccServiceEndpointGitHub_with_serviceEndpointName_DataSource (61.09s)
PASS
ok      github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/acceptancetests        61.205s

TestAccServiceEndpointGitHub_with_serviceEndpointID_DataSource

TF_ACC=1 go test -tags "all" $(go list ./azuredevops/internal/acceptancetests |grep -v 'vendor') -v -run=TestAccServiceEndpointGitHub_with_serviceEndpointID_DataSource -timeout 120m
=== RUN   TestAccServiceEndpointGitHub_with_serviceEndpointID_DataSource
=== PAUSE TestAccServiceEndpointGitHub_with_serviceEndpointID_DataSource
=== CONT  TestAccServiceEndpointGitHub_with_serviceEndpointID_DataSource
--- PASS: TestAccServiceEndpointGitHub_with_serviceEndpointID_DataSource (51.51s)
PASS
ok      github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/acceptancetests        51.625s

@a30004053
Copy link
Contributor Author

Hello @xuzhang3,

Hope you are well.
When you get a chance can you please review this PR?

Cheers!

Copy link
Collaborator

@xuzhang3 xuzhang3 left a comment

Choose a reason for hiding this comment

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

@a30004053 thanks for your contribute. A few change requested, others look good to me.

website/docs/d/serviceendpoint_github.html.markdown Outdated Show resolved Hide resolved
azuredevops/internal/service/serviceendpoint/commons.go Outdated Show resolved Hide resolved
@a30004053
Copy link
Contributor Author

Hello @xuzhang3,

If it all looks okay from your end, can this PR be merged?

Thanks in advance!

@xuzhang3
Copy link
Collaborator

@a30004053 LGTM

@xuzhang3 xuzhang3 merged commit 6ee1db8 into microsoft:main Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants