Skip to content

Commit d012a73

Browse files
authored
Merge pull request #181 from SumoLogic/tarun_connection_new_variables
Using new template variables in connections in TF examples and tests
2 parents 41b894f + b07e394 commit d012a73

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
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,

website/docs/r/connection.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ resource "sumologic_connection" "connection" {
2626
default_payload = <<JSON
2727
{
2828
"client" : "Sumo Logic",
29-
"eventType" : "{{SearchName}}",
30-
"description" : "{{SearchDescription}}",
31-
"search_url" : "{{SearchQueryUrl}}",
29+
"eventType" : "{{Name}}",
30+
"description" : "{{Description}}",
31+
"search_url" : "{{QueryUrl}}",
3232
"num_records" : "{{NumRawResults}}",
3333
"search_results" : "{{AggregateResultsJson}}"
3434
}

website/docs/r/content.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ resource "sumologic_content" "test" {
4242
"notification": {
4343
"taskType": "EmailSearchNotificationSyncDefinition",
4444
"toList": ["[email protected]"],
45-
"subjectTemplate": "Search Results: {{SearchName}}",
45+
"subjectTemplate": "Search Results: {{Name}}",
4646
"includeQuery": true,
4747
"includeResultSet": true,
4848
"includeHistogram": false,

0 commit comments

Comments
 (0)