Skip to content

Commit 63da465

Browse files
author
cortlyons
committed
update webhook urls
1 parent c4a8bf0 commit 63da465

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

integration/v4_to_v5/testdata/notification_policy_webhooks/expected/notification_policy_webhooks.tf

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ locals {
3434
resource "cloudflare_notification_policy_webhooks" "basic_webhook" {
3535
account_id = var.cloudflare_account_id
3636
name = "basic-webhook"
37-
url = "https://www.cloudflare.com/cdn-cgi/trace/basic"
37+
url = "https://www.cloudflare.com/cdn-cgi/trace"
3838
}
3939

4040
# Test Case 2: Full webhook with all fields
4141
resource "cloudflare_notification_policy_webhooks" "full_webhook" {
4242
account_id = var.cloudflare_account_id
4343
name = "production-webhook"
44-
url = "https://www.cloudflare.com/cdn-cgi/trace/full"
44+
url = "https://www.cloudflare.com/cdn-cgi/trace"
4545
secret = "webhook-secret-token-12345"
4646
}
4747

@@ -66,7 +66,7 @@ resource "cloudflare_notification_policy_webhooks" "map_example" {
6666

6767
account_id = local.common_account
6868
name = each.value.name
69-
url = "${local.webhook_base_url}/${each.key}"
69+
url = local.webhook_base_url
7070
secret = each.value.secret
7171
}
7272

@@ -83,7 +83,7 @@ resource "cloudflare_notification_policy_webhooks" "set_example" {
8383

8484
account_id = var.cloudflare_account_id
8585
name = "set-${each.value}"
86-
url = "${local.webhook_base_url}/set-${each.value}"
86+
url = local.webhook_base_url
8787
}
8888

8989
# ========================================
@@ -94,7 +94,7 @@ resource "cloudflare_notification_policy_webhooks" "counted" {
9494

9595
account_id = var.cloudflare_account_id
9696
name = "webhook-${count.index}"
97-
url = "${local.webhook_base_url}/counted-${count.index}"
97+
url = local.webhook_base_url
9898
}
9999

100100
# ========================================
@@ -105,15 +105,15 @@ resource "cloudflare_notification_policy_webhooks" "conditional_enabled" {
105105

106106
account_id = var.cloudflare_account_id
107107
name = "conditional-enabled"
108-
url = "${local.webhook_base_url}/conditional-enabled"
108+
url = local.webhook_base_url
109109
}
110110

111111
resource "cloudflare_notification_policy_webhooks" "conditional_disabled" {
112112
count = local.enable_test ? 1 : 0
113113

114114
account_id = var.cloudflare_account_id
115115
name = "conditional-disabled"
116-
url = "${local.webhook_base_url}/conditional-disabled"
116+
url = local.webhook_base_url
117117
}
118118

119119
# ========================================
@@ -122,7 +122,7 @@ resource "cloudflare_notification_policy_webhooks" "conditional_disabled" {
122122
resource "cloudflare_notification_policy_webhooks" "with_functions" {
123123
account_id = local.common_account
124124
name = join("-", [local.name_prefix, "function", "example"])
125-
url = "${local.webhook_base_url}/function-test"
125+
url = local.webhook_base_url
126126
secret = "function-test-secret"
127127
}
128128

@@ -132,7 +132,7 @@ resource "cloudflare_notification_policy_webhooks" "with_functions" {
132132
resource "cloudflare_notification_policy_webhooks" "with_lifecycle" {
133133
account_id = var.cloudflare_account_id
134134
name = "lifecycle-test"
135-
url = "${local.webhook_base_url}/lifecycle"
135+
url = local.webhook_base_url
136136

137137
lifecycle {
138138
create_before_destroy = true
@@ -142,7 +142,7 @@ resource "cloudflare_notification_policy_webhooks" "with_lifecycle" {
142142
resource "cloudflare_notification_policy_webhooks" "with_prevent_destroy" {
143143
account_id = var.cloudflare_account_id
144144
name = "prevent-destroy-test"
145-
url = "${local.webhook_base_url}/prevent-destroy"
145+
url = local.webhook_base_url
146146

147147
lifecycle {
148148
prevent_destroy = false
@@ -157,20 +157,20 @@ resource "cloudflare_notification_policy_webhooks" "with_prevent_destroy" {
157157
resource "cloudflare_notification_policy_webhooks" "minimal" {
158158
account_id = var.cloudflare_account_id
159159
name = "minimal"
160-
url = "${local.webhook_base_url}/minimal"
160+
url = local.webhook_base_url
161161
}
162162

163163
# Maximal resource (all fields populated)
164164
resource "cloudflare_notification_policy_webhooks" "maximal" {
165165
account_id = var.cloudflare_account_id
166166
name = "maximal-webhook-with-all-fields"
167-
url = "${local.webhook_base_url}/maximal?param=value&test=123"
167+
url = local.webhook_base_url
168168
secret = "maximal-secret-token-with-special-chars-!@#$"
169169
}
170170

171171
# URL with special characters
172172
resource "cloudflare_notification_policy_webhooks" "special_chars" {
173173
account_id = var.cloudflare_account_id
174174
name = "special-chars-test"
175-
url = "${local.webhook_base_url}/path?query=value&param=test"
175+
url = local.webhook_base_url
176176
}

integration/v4_to_v5/testdata/notification_policy_webhooks/input/notification_policy_webhooks.tf

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ locals {
3434
resource "cloudflare_notification_policy_webhooks" "basic_webhook" {
3535
account_id = var.cloudflare_account_id
3636
name = "basic-webhook"
37-
url = "https://www.cloudflare.com/cdn-cgi/trace/basic"
37+
url = "https://www.cloudflare.com/cdn-cgi/trace"
3838
}
3939

4040
# Test Case 2: Full webhook with all fields
4141
resource "cloudflare_notification_policy_webhooks" "full_webhook" {
4242
account_id = var.cloudflare_account_id
4343
name = "production-webhook"
44-
url = "https://www.cloudflare.com/cdn-cgi/trace/full"
44+
url = "https://www.cloudflare.com/cdn-cgi/trace"
4545
secret = "webhook-secret-token-12345"
4646
}
4747

@@ -66,7 +66,7 @@ resource "cloudflare_notification_policy_webhooks" "map_example" {
6666

6767
account_id = local.common_account
6868
name = each.value.name
69-
url = "${local.webhook_base_url}/${each.key}"
69+
url = local.webhook_base_url
7070
secret = each.value.secret
7171
}
7272

@@ -83,7 +83,7 @@ resource "cloudflare_notification_policy_webhooks" "set_example" {
8383

8484
account_id = var.cloudflare_account_id
8585
name = "set-${each.value}"
86-
url = "${local.webhook_base_url}/set-${each.value}"
86+
url = local.webhook_base_url
8787
}
8888

8989
# ========================================
@@ -94,7 +94,7 @@ resource "cloudflare_notification_policy_webhooks" "counted" {
9494

9595
account_id = var.cloudflare_account_id
9696
name = "webhook-${count.index}"
97-
url = "${local.webhook_base_url}/counted-${count.index}"
97+
url = local.webhook_base_url
9898
}
9999

100100
# ========================================
@@ -105,15 +105,15 @@ resource "cloudflare_notification_policy_webhooks" "conditional_enabled" {
105105

106106
account_id = var.cloudflare_account_id
107107
name = "conditional-enabled"
108-
url = "${local.webhook_base_url}/conditional-enabled"
108+
url = local.webhook_base_url
109109
}
110110

111111
resource "cloudflare_notification_policy_webhooks" "conditional_disabled" {
112112
count = local.enable_test ? 1 : 0
113113

114114
account_id = var.cloudflare_account_id
115115
name = "conditional-disabled"
116-
url = "${local.webhook_base_url}/conditional-disabled"
116+
url = local.webhook_base_url
117117
}
118118

119119
# ========================================
@@ -122,7 +122,7 @@ resource "cloudflare_notification_policy_webhooks" "conditional_disabled" {
122122
resource "cloudflare_notification_policy_webhooks" "with_functions" {
123123
account_id = local.common_account
124124
name = join("-", [local.name_prefix, "function", "example"])
125-
url = "${local.webhook_base_url}/function-test"
125+
url = local.webhook_base_url
126126
secret = "function-test-secret"
127127
}
128128

@@ -132,7 +132,7 @@ resource "cloudflare_notification_policy_webhooks" "with_functions" {
132132
resource "cloudflare_notification_policy_webhooks" "with_lifecycle" {
133133
account_id = var.cloudflare_account_id
134134
name = "lifecycle-test"
135-
url = "${local.webhook_base_url}/lifecycle"
135+
url = local.webhook_base_url
136136

137137
lifecycle {
138138
create_before_destroy = true
@@ -142,7 +142,7 @@ resource "cloudflare_notification_policy_webhooks" "with_lifecycle" {
142142
resource "cloudflare_notification_policy_webhooks" "with_prevent_destroy" {
143143
account_id = var.cloudflare_account_id
144144
name = "prevent-destroy-test"
145-
url = "${local.webhook_base_url}/prevent-destroy"
145+
url = local.webhook_base_url
146146

147147
lifecycle {
148148
prevent_destroy = false
@@ -157,20 +157,20 @@ resource "cloudflare_notification_policy_webhooks" "with_prevent_destroy" {
157157
resource "cloudflare_notification_policy_webhooks" "minimal" {
158158
account_id = var.cloudflare_account_id
159159
name = "minimal"
160-
url = "${local.webhook_base_url}/minimal"
160+
url = local.webhook_base_url
161161
}
162162

163163
# Maximal resource (all fields populated)
164164
resource "cloudflare_notification_policy_webhooks" "maximal" {
165165
account_id = var.cloudflare_account_id
166166
name = "maximal-webhook-with-all-fields"
167-
url = "${local.webhook_base_url}/maximal?param=value&test=123"
167+
url = local.webhook_base_url
168168
secret = "maximal-secret-token-with-special-chars-!@#$"
169169
}
170170

171171
# URL with special characters
172172
resource "cloudflare_notification_policy_webhooks" "special_chars" {
173173
account_id = var.cloudflare_account_id
174174
name = "special-chars-test"
175-
url = "${local.webhook_base_url}/path?query=value&param=test"
175+
url = local.webhook_base_url
176176
}

0 commit comments

Comments
 (0)