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

Implement waiting room resource #1053

Merged
merged 11 commits into from
Jun 28, 2021

Conversation

bpaquet
Copy link
Contributor

@bpaquet bpaquet commented May 7, 2021

Need cloudflare/cloudflare-go#627 to be merged and released before.

waitingRoomID := d.Id()
zoneID := d.Get("zone_id").(string)

return resourceCloudflareWaitingRoomReadFromWaitingRoomId(d, meta, zoneID, waitingRoomID)
Copy link
Member

Choose a reason for hiding this comment

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

this functionality should be pulled into the Read method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@bpaquet bpaquet requested a review from jacobbednarz May 22, 2021 20:41
@jacobbednarz
Copy link
Member

thanks for the updates here; it looks like we're almost there but still missing tests for this new functionality. are you able to add those to ensure this functionality works as intended and we can catch any regressions going forward?

@bpaquet
Copy link
Contributor Author

bpaquet commented May 24, 2021

thanks for the updates here; it looks like we're almost there but still missing tests for this new functionality. are you able to add those to ensure this functionality works as intended and we can catch any regressions going forward?

Do you mean unit test or acceptance test? I did not find a lot of unit test. And I'm not sure how acceptance test works. Do you have a doc around them?

@jacobbednarz
Copy link
Member

integration tests for the actual resources. see the README (https://github.com/cloudflare/terraform-provider-cloudflare#developing-the-provider) and Terraform's own documentation for acceptance testing https://www.terraform.io/docs/extend/testing/acceptance-tests/index.html

@jacobbednarz
Copy link
Member

@bpaquet are you still interested in completing this one?

@bpaquet
Copy link
Contributor Author

bpaquet commented Jun 21, 2021 via email

@jacobbednarz
Copy link
Member

If you create a free zone, email me (or Cloudflare Support) the zone ID and I can take a look at adding the entitlements temporarily for you to add this.

bpaquet and others added 2 commits June 28, 2021 09:26
Tested with `TESTARGS='-run "^TestAccCloudflareWaitingRoom"' make testacc`
@jacobbednarz
Copy link
Member

Nice, we're all green on the acceptance testing accounts too so this is good to merge.

TF_ACC=1 go test $(go list ./...) -v -run "^TestAccCloudflareWaitingRoom_" -timeout 120m -parallel 1
?   	github.com/cloudflare/terraform-provider-cloudflare	[no test files]
=== RUN   TestAccCloudflareWaitingRoom_Create
=== PAUSE TestAccCloudflareWaitingRoom_Create
=== CONT  TestAccCloudflareWaitingRoom_Create
--- PASS: TestAccCloudflareWaitingRoom_Create (2.59s)
PASS
ok  	github.com/cloudflare/terraform-provider-cloudflare/cloudflare	3.231s
?   	github.com/cloudflare/terraform-provider-cloudflare/version	[no test files]

@jacobbednarz jacobbednarz merged commit 7bad80e into cloudflare:master Jun 28, 2021
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.

2 participants