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

Unable to update dex tests #2895

Open
2 tasks done
Cyb3r-Jak3 opened this issue Oct 30, 2023 · 1 comment
Open
2 tasks done

Unable to update dex tests #2895

Cyb3r-Jak3 opened this issue Oct 30, 2023 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.

Comments

@Cyb3r-Jak3
Copy link
Contributor

Cyb3r-Jak3 commented Oct 30, 2023

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform v1.5.6
on windows_amd64

  • provider registry.terraform.io/1password/onepassword v1.1.4
  • provider registry.terraform.io/cloudflare/cloudflare v4.17.0
  • provider registry.terraform.io/hashicorp/aws v5.21.0
  • provider registry.terraform.io/hashicorp/http v3.4.0
  • provider registry.terraform.io/hashicorp/random v3.5.1
  • provider registry.terraform.io/hashicorp/tls v4.0.4

Affected resource(s)

cloudflare_device_dex_test

Terraform configuration files

resource "cloudflare_device_dex_test" "cloudflare_get" {
  account_id  = var.account_id
  name        = "Cloudflare Site"
  description = "Send a HTTP GET request to Cloudflare's website every 5 minutes."
  interval    = "0h5m0s"
  enabled     = true
  data {
    host   = "https://cloudflare.com"
    kind   = "http"
    method = "GET"
  }
}

resource "cloudflare_device_dex_test" "cf_traceroute" {
  account_id = var.account_id
  name = "Cloudflare Traceroute"
  description = "Trace the route to Cloudflare's 1.1.1.1 address every 5 minutes."
  interval = "0h5m0s"
  enabled = true
  data {
    host = "1.1.1.1"
    kind = "traceroute"
  }
}

resource "cloudflare_device_dex_test" "google_traceroute" {
  account_id = var.account_id
  name = "Google Traceroute"
  description = "Trace the route to Googles's 8.8.8.8 address every 5 minutes."
  interval = "0h5m0s"
  enabled = true
  data {
    host = "8.8.8.8"
    kind = "traceroute"
  }
}

Link to debug output

https://gist.github.com/Cyb3r-Jak3/7e23020953822f6280d016f0aecb363c

Panic output

No response

Expected output

Able to update dex tests

Actual output

Error: error updating Device Dex Test for ID "29ca8d5b-93c0-4a92-b6d2-66c7584db03a": invalid dex test request: method, kind, and host fields cannot be modified (2076)

Steps to reproduce

  1. Use example terraform code
  2. Apply
  3. Change description of test
  4. Apply with error

Additional factoids

No response

References

No response

@Cyb3r-Jak3 Cyb3r-Jak3 added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 30, 2023
@github-actions
Copy link
Contributor

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.
Projects
None yet
Development

No branches or pull requests

1 participant