Skip to content

Commit

Permalink
Merge pull request #365 from vikkyomkar/issue-352
Browse files Browse the repository at this point in the history
Fixed : insecure_ssl parameter behaviour in webhook creation
  • Loading branch information
Jeremy Udit authored Feb 27, 2020
2 parents 98f88de + a9dd7e9 commit 888d8b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions github/resource_github_organization_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestAccGithubOrganizationWebhook_basic(t *testing.T) {
Configuration: map[string]interface{}{
"url": "https://google.de/webhook",
"content_type": "json",
"insecure_ssl": "true",
"insecure_ssl": true,
},
Active: true,
}),
Expand All @@ -47,7 +47,7 @@ func TestAccGithubOrganizationWebhook_basic(t *testing.T) {
Configuration: map[string]interface{}{
"url": "https://google.de/webhooks",
"content_type": "form",
"insecure_ssl": "false",
"insecure_ssl": false,
},
Active: false,
}),
Expand Down
6 changes: 3 additions & 3 deletions github/resource_github_repository_webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestAccGithubRepositoryWebhook_basic(t *testing.T) {
Configuration: map[string]interface{}{
"url": "https://google.de/webhook",
"content_type": "json",
"insecure_ssl": "true",
"insecure_ssl": true,
},
Active: true,
}),
Expand All @@ -48,7 +48,7 @@ func TestAccGithubRepositoryWebhook_basic(t *testing.T) {
Configuration: map[string]interface{}{
"url": "https://google.de/webhooks",
"content_type": "form",
"insecure_ssl": "false",
"insecure_ssl": false,
},
Active: false,
}),
Expand Down Expand Up @@ -84,7 +84,7 @@ func TestAccGithubRepositoryWebhook_secret(t *testing.T) {
"url": "https://www.terraform.io/webhook",
"content_type": "json",
"secret": "********",
"insecure_ssl": "false",
"insecure_ssl": false,
},
Active: true,
}),
Expand Down
2 changes: 1 addition & 1 deletion github/schema_webhook_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func webhookConfigurationSchema() *schema.Schema {
Sensitive: true,
},
"insecure_ssl": {
Type: schema.TypeString,
Type: schema.TypeBool,
Optional: true,
},
},
Expand Down

0 comments on commit 888d8b8

Please sign in to comment.