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 new resource for dex tests #2250

Merged
merged 11 commits into from
Mar 23, 2023
Merged

Add new resource for dex tests #2250

merged 11 commits into from
Mar 23, 2023

Conversation

imdawon
Copy link
Contributor

@imdawon imdawon commented Feb 21, 2023

Must not be merged until the new cloudflare-go versions have been published as it depends on fixes of dex_test feature of unreleased cloudflare-go 0.62.0 (https://github.com/cloudflare/cloudflare-go/blob/master/CHANGELOG.md) and the subsequent bugfix PR for it (cloudflare/cloudflare-go#1213)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 21, 2023

changelog detected ✅


func testAccCloudflareDeviceDexTestsHttp(accountID, rnd string) string {
return fmt.Sprintf(`
resource "cloudflare_device_dex_tests" "%[1]s" {
Copy link
Member

Choose a reason for hiding this comment

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

these tests are all missing the required account_id field.

func testAccCloudflareDeviceDexTestsHttp(accountID, rnd string) string {
return fmt.Sprintf(`
resource "cloudflare_device_dex_tests" "%[1]s" {
test_id = "%[2]s"
Copy link
Member

Choose a reason for hiding this comment

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

test_id doesn't appear in your schema. is this the value we are using for id? if so, we don't need it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes for this resource we used test_id to represent what would usually be the id field. Thanks for the heads up.

@jacobbednarz jacobbednarz merged commit f035b15 into cloudflare:master Mar 23, 2023
@github-actions github-actions bot added this to the v4.3.0 milestone Mar 23, 2023
github-actions bot pushed a commit that referenced this pull request Mar 23, 2023
@jacobbednarz
Copy link
Member

acceptance tests all passing

TF_ACC=1 go test ./internal/sdkv2provider -v -run "^TestAccCloudflareDeviceDexTest_" -timeout 120m -parallel 1
=== RUN   TestAccCloudflareDeviceDexTest_Traceroute
--- PASS: TestAccCloudflareDeviceDexTest_Traceroute (13.56s)
=== RUN   TestAccCloudflareDeviceDexTest_TracerouteIPv4
--- PASS: TestAccCloudflareDeviceDexTest_TracerouteIPv4 (17.89s)
=== RUN   TestAccCloudflareDeviceDexTest_HTTP
--- PASS: TestAccCloudflareDeviceDexTest_HTTP (21.52s)
PASS
ok  	github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider	53.934s

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

This functionality has been released in v4.3.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants