Skip to content

Commit 84b2c30

Browse files
committed
SUMO-170407: fixing test failures
1 parent 3b6a53c commit 84b2c30

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sumologic/resource_sumologic_connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func resourceSumologicConnection() *schema.Resource {
8383
"connection_subtype": {
8484
Type: schema.TypeString,
8585
Optional: true,
86-
ValidateFunc: validation.StringInSlice([]string{"Incident", "Event", ""}, false),
86+
ValidateFunc: validation.StringInSlice([]string{"Incident", "Event"}, false),
8787
},
8888
},
8989
}

sumologic/resource_sumologic_monitors_library_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func resourceSumologicMonitorsLibraryMonitor() *schema.Resource {
149149
Type: schema.TypeString,
150150
Optional: true,
151151
Computed: true,
152-
ValidateFunc: validation.StringInSlice([]string{"Email", "AWSLambda", "AzureFunctions", "Datadog", "HipChat", "Jira", "NewRelic", "Opsgenie", "PagerDuty", "Slack", "MicrosoftTeams", "Webhook"}, false),
152+
ValidateFunc: validation.StringInSlice([]string{"Email", "AWSLambda", "AzureFunctions", "Datadog", "HipChat", "Jira", "NewRelic", "Opsgenie", "PagerDuty", "Slack", "MicrosoftTeams", "ServiceNow", "Webhook"}, false),
153153
},
154154
"subject": {
155155
Type: schema.TypeString,

sumologic/sumologic_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ type Connection struct {
360360
CustomHeaders []Headers `json:"customHeaders,omitempty"`
361361
DefaultPayload string `json:"defaultPayload"`
362362
WebhookType string `json:"webhookType"`
363-
ConnectionSubtype string `json:"connectionSubtype"`
363+
ConnectionSubtype string `json:"connectionSubtype,omitempty"`
364364
}
365365

366366
// Headers is used to describe headers for http requests.

website/docs/r/connection.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following arguments are supported:
4848
- `headers` - (Optional) Map of access authorization headers.
4949
- `custom_headers` - (Optional) Map of custom webhook headers
5050
- `default_payload` - (Required) Default payload of the webhook.
51-
- `connection_subtype` - (Optional) The subtype of the connection. Valid values are `Incident` and `Event`. NOTEL This is only used for the `ServiceNow` webhook type.
51+
- `connection_subtype` - (Optional) The subtype of the connection. Valid values are `Incident` and `Event`. NOTE: This is only used for the `ServiceNow` webhook type.
5252
- `webhook_type` - (Optional) Type of webhook. Valid values are `AWSLambda`, `Azure`, `Datadog`, `HipChat`, `PagerDuty`, `Slack`, `Webhook`, `NewRelic`, `MicrosoftTeams`, and `ServiceNow`. Default: `Webhook`
5353

5454
Additional data provided in state

0 commit comments

Comments
 (0)