Skip to content

Commit

Permalink
Change *_dex_tests to *_dex_test
Browse files Browse the repository at this point in the history
  • Loading branch information
da-cf committed Mar 22, 2023
1 parent beaa774 commit f36f6d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/resources/device_dex_tests.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
page_title: "cloudflare_device_dex_tests Resource - Cloudflare"
page_title: "cloudflare_device_dex_test Resource - Cloudflare"
subcategory: ""
description: |-
Provides a Cloudflare Device Digital Experience Monitoring (DEX) test configuration resource.
---

# cloudflare_device_dex_tests (Resource)
# cloudflare_device_dex_test (Resource)

Provides a Cloudflare Device Digital Experience Monitoring (DEX) test configuration resource.

## Example Usage

```terraform
resource "cloudflare_device_dex_tests" "dex_tests" {
resource "cloudflare_device_dex_test" "dex_test" {
test_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
name = "GET dashboard",
description = "Send a HTTP GET request to the 'home' endpoint of the dash every half hour.",
Expand Down Expand Up @@ -62,5 +62,5 @@ Required:
Import is supported using the following syntax:

```shell
$ terraform import cloudflare_device_dex_tests.example <account_id>/<device_dex_tests_test_id>
$ terraform import cloudflare_device_dex_test.example <account_id>/<device_dex_test_test_id>
```
2 changes: 1 addition & 1 deletion examples/resources/cloudflare_device_dex_tests/import.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$ terraform import cloudflare_device_dex_tests.example <account_id>/<device_dex_tests_id>
$ terraform import cloudflare_device_dex_test.example <account_id>/<device_dex_test_id>
2 changes: 1 addition & 1 deletion examples/resources/cloudflare_device_dex_tests/resource.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "cloudflare_device_dex_tests" "dex_tests" {
resource "cloudflare_device_dex_test" "dex_test" {
test_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
name = "GET dashboard"
description = "Send a HTTP GET request to the 'home' endpoint of the dash every half hour."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func TestAccCloudflareDeviceDexTests(t *testing.T) {
rnd := generateRandomResourceName()
name := fmt.Sprintf("cloudflare_device_dex_tests.%s", rnd)
name := fmt.Sprintf("cloudflare_device_dex_test.%s", rnd)

resource.Test(t, resource.TestCase{
PreCheck: func() {
Expand Down Expand Up @@ -60,7 +60,7 @@ func TestAccCloudflareDeviceDexTests(t *testing.T) {

func testAccCloudflareDeviceDexTestsHttp(accountID, rnd string) string {
return fmt.Sprintf(`
resource "cloudflare_device_dex_tests" "%[1]s" {
resource "cloudflare_device_dex_test" "%[1]s" {
account_id = "%[2]s"
name = "%[1]s"
description = "%[1]s"
Expand All @@ -77,7 +77,7 @@ func testAccCloudflareDeviceDexTestsHttp(accountID, rnd string) string {

func testAccCloudflareDeviceDexTestsTraceroute(accountID, rnd string) string {
return fmt.Sprintf(`
resource "cloudflare_device_dex_tests" "%[1]s" {
resource "cloudflare_device_dex_test" "%[1]s" {
account_id = "%[2]s"
name = "%[1]s"
description = "%[1]s"
Expand All @@ -93,7 +93,7 @@ func testAccCloudflareDeviceDexTestsTraceroute(accountID, rnd string) string {

func testAccCloudflareDeviceDexTestsTracerouteIpv4(accountID, rnd string) string {
return fmt.Sprintf(`
resource "cloudflare_device_dex_tests" "%[1]s" {
resource "cloudflare_device_dex_test" "%[1]s" {
account_id = "%[2]s"
name = "%[1]s"
description = "%[1]s"
Expand Down

0 comments on commit f36f6d7

Please sign in to comment.