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

chore: migrate r/webhook_recipient to Framework #568

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

jharley
Copy link
Collaborator

@jharley jharley commented Nov 14, 2024

This migrates r/webhook_recipient from the Plugin SDKv2 to the Plugin Framework.

In the process, also updates secret to be optional to match the upstream change.


@jharley jharley added the refactor Internal improvements. label Nov 14, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 60.63348% with 87 lines in your changes missing coverage. Please review.

Project coverage is 75.56%. Comparing base (bec5669) to head (69f437b).

Files with missing lines Patch % Lines
internal/provider/webhook_recipient_resource.go 58.82% 60 Missing and 17 partials ⚠️
internal/helper/validation/valid_url.go 69.69% 9 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #568      +/-   ##
==========================================
- Coverage   76.05%   75.56%   -0.49%     
==========================================
  Files          86       87       +1     
  Lines        7107     7288     +181     
==========================================
+ Hits         5405     5507     +102     
- Misses       1368     1429      +61     
- Partials      334      352      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if response.Diagnostics.HasError() && !test.expectError {
t.Fatalf("got unexpected error: %s", response.Diagnostics)
}
assert.Equal(t,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

snuck in a quick move of these validators to testify

@jharley jharley marked this pull request as ready for review November 14, 2024 23:20
@jharley jharley requested a review from a team as a code owner November 14, 2024 23:20
@@ -17,7 +17,7 @@ resource "honeycombio_webhook_recipient" "prod" {
The following arguments are supported:

* `name` - (Required) The name of the Webhook Integration to create.
* `secret` - (Required) The secret to include when sending the notification to the webhook.
* `secret` - (Optional) The secret to include when sending the notification to the webhook.
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch!

@jharley jharley merged commit f76fe07 into main Nov 15, 2024
6 checks passed
@jharley jharley deleted the jharley.chore-webhook-rcpt-to-framework branch November 15, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Internal improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants