Skip to content

Commit 8f85e66

Browse files
committed
Using new template variables in connection and content tests
1 parent cb6bf0e commit 8f85e66

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sumologic/resource_sumologic_connection_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestAccConnection_create(t *testing.T) {
1515
name := acctest.RandomWithPrefix("tf-connection-test-name")
1616
description := acctest.RandomWithPrefix("tf-connection-test-description")
1717
url := "https://example.com"
18-
defaultPayload := "{\"eventType\" : \"{{SearchName}}\"}"
18+
defaultPayload := "{\"eventType\" : \"{{Name}}\"}"
1919
webhookType := "Webhook"
2020

2121
var connection Connection
@@ -47,7 +47,7 @@ func TestAccConnection_update(t *testing.T) {
4747
connectionType := "WebhookConnection"
4848
name := acctest.RandomWithPrefix("tf-connection-test-name")
4949
url := "https://example.com"
50-
defaultPayload := `{"eventType" : "{{SearchName}}"}`
50+
defaultPayload := `{"eventType" : "{{Name}}"}`
5151
webhookType := "Webhook"
5252
fDescription := acctest.RandomWithPrefix("tf-connection-test-description")
5353
sDescription := acctest.RandomWithPrefix("tf-connection-test-description")

sumologic/resource_sumologic_content_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ var updateConfigJson = `{
124124
"notification": {
125125
"taskType": "EmailSearchNotificationSyncDefinition",
126126
"toList": ["[email protected]"],
127-
"subjectTemplate": "Search Results: {{SearchName}}",
127+
"subjectTemplate": "Search Results: {{Name}}",
128128
"includeQuery": true,
129129
"includeResultSet": true,
130130
"includeHistogram": false,
@@ -165,7 +165,7 @@ var configJson = `{
165165
"notification": {
166166
"taskType": "EmailSearchNotificationSyncDefinition",
167167
"toList": ["[email protected]"],
168-
"subjectTemplate": "Search Results: {{SearchName}}",
168+
"subjectTemplate": "Search Results: {{Name}}",
169169
"includeQuery": true,
170170
"includeResultSet": true,
171171
"includeHistogram": false,

0 commit comments

Comments
 (0)