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

Support service_token for cloudflare_access_policy #612

Merged
merged 7 commits into from
Mar 15, 2020
Merged

Support service_token for cloudflare_access_policy #612

merged 7 commits into from
Mar 15, 2020

Conversation

dhoeric
Copy link
Contributor

@dhoeric dhoeric commented Mar 5, 2020

Integrate it since cloudflare/cloudflare-go#339 is already available!

@ghost ghost added size/XS kind/documentation Categorizes issue or PR as related to documentation. labels Mar 5, 2020
Copy link
Member

@jacobbednarz jacobbednarz left a comment

Choose a reason for hiding this comment

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

I've added some notes inline but we will also need to add integration tests for this new functionality before it can land.

I'm on the fence whether we also want to roll in support for "any valid service token" as opposed to just a specific one given that we are already adding for service tokens to be used here.

@jacobbednarz jacobbednarz added the workflow/pending-contributor-response Indicates an issue or PR requires a response from a contributor. label Mar 10, 2020
@dhoeric
Copy link
Contributor Author

dhoeric commented Mar 10, 2020

I've added some notes inline but we will also need to add integration tests for this new functionality before it can land.

I'm on the fence whether we also want to roll in support for "any valid service token" as opposed to just a specific one given that we are already adding for service tokens to be used here.

Sure, let me add them as well.

Copy link
Contributor Author

@dhoeric dhoeric left a comment

Choose a reason for hiding this comment

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

If you don't mind to have a discussion, we could have a chat in gitter!

website/docs/r/access_policy.html.markdown Outdated Show resolved Hide resolved
@ghost ghost added size/M and removed size/XS labels Mar 13, 2020
@dhoeric
Copy link
Contributor Author

dhoeric commented Mar 13, 2020

Added test for access policy on service_token.

CLOUDFLARE_DOMAIN=xxx CLOUDFLARE_API_KEY=xxx CLOUDFLARE_EMAIL=xxx CLOUDFLARE_ACCOUNT_ID=xxx CLOUDFLARE_ZONE_ID=xxx make testacc TEST=./cloudflare TESTARGS='-run=TestAccAccessPolicy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./cloudflare -v -run=TestAccAccessPolicy -timeout 120m
=== RUN   TestAccAccessPolicyServiceToken
--- PASS: TestAccAccessPolicyServiceToken (6.32s)
=== RUN   TestAccAccessPolicyAnyServiceToken
--- PASS: TestAccAccessPolicyAnyServiceToken (5.69s)
PASS
ok      github.com/terraform-providers/terraform-provider-cloudflare/cloudflare

@ghost ghost added size/L and removed size/M labels Mar 15, 2020
@jacobbednarz
Copy link
Member

Thanks for working through this one with me @dhoeric! Greatly appreciated ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. size/L workflow/pending-contributor-response Indicates an issue or PR requires a response from a contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants