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 support for Access Groups #510

Merged
merged 13 commits into from
Nov 19, 2019
Merged

Add support for Access Groups #510

merged 13 commits into from
Nov 19, 2019

Conversation

matthieudolci
Copy link
Contributor

@ghost ghost added size/XL kind/documentation Categorizes issue or PR as related to documentation. labels Oct 12, 2019
@jacobbednarz
Copy link
Member

Let's table work (and review) on this until cloudflare/cloudflare-go#361 lands. Otherwise we need to keep two PRs in sync.

@jacobbednarz
Copy link
Member

The dependency has landed here now. Would you mind pulling in the latest changes on master and we'll kick off a review?

@ghost ghost added dependencies size/XXL and removed size/XL labels Oct 15, 2019
@ghost ghost added size/XL and removed size/XXL labels Oct 15, 2019
@matthieudolci
Copy link
Contributor Author

@jacobbednarz master merged

@jacobbednarz
Copy link
Member

Can we please also get some tests added to this new resource?

@jacobbednarz
Copy link
Member

I've kicked off the integration tests for this branch and will post the results here.

var before, after cloudflare.AccessGroup
name := "cloudflare_access_group.test"
resourceName := strings.Split(name, ".")[1]
newAccountID := "01a7362d577a6c3019a474fd6f485634"
Copy link
Member

Choose a reason for hiding this comment

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

We don't currently have another test zone but perhaps if this is needed for a real resource, we can create it in CI.

@jacobbednarz
Copy link
Member

This PR broke CI due to using hardcoded account IDs which it doesn't have access to. I've made some recommendations in the PR which should allow us to run these automatically.

matthieudolci and others added 5 commits November 19, 2019 11:49
We already have this value inside of `rnd` so we don't need to
re-split a string to use it.
We don't need to hardcode the resource names (or `fmt.Sprintf` them)
as we can simplify it and reuse `name` which we already have
available.
These tests all use the same basic setup so instead of doing another
elaborate one, just duplicate the basic one with the `-updated`
appended to the name string.
@jacobbednarz
Copy link
Member

@matthieudolci i've pushed a few changes to your branch to get CI working. i'm still trying to see if we can get a second account setup to test the account_id change forcing a new resource but we may need to ship without it.

feel free to ping me on any commits you'd like more details on.

@matthieudolci
Copy link
Contributor Author

@jacobbednarz everything looks good, thanks for the changes :-)

We don't currently have a second account setup for this purpose. We'll
just need to manually test it or keep it in mind for now.
@jacobbednarz jacobbednarz merged commit 9bf8168 into cloudflare:master Nov 19, 2019
@matthieudolci matthieudolci deleted the access-groups branch November 19, 2019 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies kind/documentation Categorizes issue or PR as related to documentation. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants