Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add support to webhookSecret in notification API #851

Merged
merged 1 commit into from
May 21, 2024

Conversation

TomerHeber
Copy link
Collaborator

Issue & Steps to Reproduce / Feature Request

resolves #850

Solution

  1. Added the new field to the resource.
  2. Updated the acceptance tests.
  3. Update the integration tests.

Name string `json:"name,omitempty"`
Type NotificationType `json:"type,omitempty"`
Value string `json:"value,omitempty"`
WebhookSecret **string `json:"webhookSecret,omitempty" tfschema:"-"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pointer to pointer allows me to support 3 modes:

  1. passing a string "....". (modify the secret).
  2. passing a null. (remove the secret)
  3. omitting the field (no change)

@TomerHeber TomerHeber requested a review from yaronya May 15, 2024 18:41
@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels May 21, 2024
@TomerHeber TomerHeber merged commit 86da31f into main May 21, 2024
8 checks passed
@TomerHeber TomerHeber deleted the feat-webhook-support-#850 branch May 21, 2024 12:32
type = "Slack"
value = "https://someurl1.com"
name = "${local.notification_name_prefix}-1-${random_string.random.result}"
type = "Slack"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be type = "Webhook"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aligned with type body param here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-client feature integration-tests provider ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to webhookSecret in notification API
2 participants