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

setup a docker_org_team data source #50

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

ryanhristovski
Copy link
Member

Description

Makes a data source for docker_org_team, still need to write tests...

In order for a lot of these tests (especially data sources) it may be good to write testing resources in infra-terraform so we know which resources are long-living that can be called.

Relations

Closes #48

@ryanhristovski ryanhristovski requested a review from a team as a code owner August 28, 2024 18:40
Copy link
Contributor

@twelsh-aw twelsh-aw left a comment

Choose a reason for hiding this comment

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

🚢

internal/provider/data_source_org_team.go Outdated Show resolved Hide resolved
internal/hubclient/client_organization.go Outdated Show resolved Hide resolved
@twelsh-aw
Copy link
Contributor

In order for a lot of these tests (especially data sources) it may be good to write testing resources in infra-terraform so we know which resources are long-living that can be called.

I think it's acceptable to create a dummy resource during test setup code for a data source test. e.g https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/s3/bucket_data_source_test.go#L110

Ideally we aren't relying too much on pre-configured things and writing something that works in any environment.

@ryanhristovski
Copy link
Member Author

@twelsh-aw i'm fine to do that for a majority of resources, but there are some (eg: user) where it can get difficult

@ryanhristovski ryanhristovski merged commit c6bad59 into docker:main Aug 28, 2024
1 check passed
@ryanhristovski ryanhristovski deleted the issue-48 branch August 28, 2024 19:07
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.

[Enhancement]: trouble creating a team permission
2 participants