Skip to content

Conversation

@rcaril
Copy link
Contributor

@rcaril rcaril commented Nov 25, 2025

Change summary

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

@rcaril
Copy link
Contributor Author

rcaril commented Dec 1, 2025

Tests

// Datadog
make test TEST_ARGS="-run TestDatadogAlertCreate ./pkg/commands/ngwaf/workspace/alert/datadog"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/datadog        1.060s
 make test TEST_ARGS="-run TestDatadogAlertList ./pkg/commands/ngwaf/workspace/alert/datadog" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/datadog        1.057s
 make test TEST_ARGS="-run TestDatadogAlertGet ./pkg/commands/ngwaf/workspace/alert/datadog" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/datadog        1.062s
make test TEST_ARGS="-run TestDatadogAlertUpdate ./pkg/commands/ngwaf/workspace/alert/datadog" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/datadog        1.060s
 make test TEST_ARGS="-run TestDatadogAlertDelete ./pkg/commands/ngwaf/workspace/alert/datadog" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/datadog        1.058s

// Jira
make test TEST_ARGS="-run TestJiraAlertCreate ./pkg/commands/ngwaf/workspace/alert/jira" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/jira   1.094s
make test TEST_ARGS="-run TestJiraAlertList ./pkg/commands/ngwaf/workspace/alert/jira" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/jira   1.061s
make test TEST_ARGS="-run TestJiraAlertGet ./pkg/commands/ngwaf/workspace/alert/jira" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/jira   1.062s
make test TEST_ARGS="-run TestJiraAlertUpdate ./pkg/commands/ngwaf/workspace/alert/jira" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/jira   1.068s
make test TEST_ARGS="-run TestJiraAlertDelete ./pkg/commands/ngwaf/workspace/alert/jira" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/jira   1.054s

// mailinglist
make test TEST_ARGS="-run TestMailingListAlertCreate ./pkg/commands/ngwaf/workspace/alert/mailinglist" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/mailinglist    1.057s
make test TEST_ARGS="-run TestMailingListAlertList ./pkg/commands/ngwaf/workspace/alert/mailinglist" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/mailinglist    1.053s
 make test TEST_ARGS="-run TestMailingListAlertGet ./pkg/commands/ngwaf/workspace/alert/mailinglist" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/mailinglist    1.055s
make test TEST_ARGS="-run TestMailingListAlertUpdate ./pkg/commands/ngwaf/workspace/alert/mailinglist" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/mailinglist    1.050s
make test TEST_ARGS="-run TestMailingListAlertDelete ./pkg/commands/ngwaf/workspace/alert/mailinglist" 
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/mailinglist    1.052s

// microsoftteams
make test TEST_ARGS="-run TestMicrosoftTeamsAlertCreate ./pkg/commands/ngwaf/workspace/alert/microsoftteams"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/microsoftteams 1.051s
 make test TEST_ARGS="-run TestMicrosoftTeamsAlertList ./pkg/commands/ngwaf/workspace/alert/microsoftteams"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/microsoftteams 1.063s
make test TEST_ARGS="-run TestMicrosoftTeamsAlertGet ./pkg/commands/ngwaf/workspace/alert/microsoftteams"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/microsoftteams 1.059s
make test TEST_ARGS="-run TestMicrosoftTeamsAlertUpdate ./pkg/commands/ngwaf/workspace/alert/microsoftteams"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/microsoftteams 1.064s
make test TEST_ARGS="-run TestMicrosoftTeamsAlertDelete ./pkg/commands/ngwaf/workspace/alert/microsoftteams"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/microsoftteams 1.052s

// opsgenie
make test TEST_ARGS="-run TestOpsgenieAlertCreate ./pkg/commands/ngwaf/workspace/alert/opsgenie"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/opsgenie       1.055s
make test TEST_ARGS="-run TestOpsgenieAlertList ./pkg/commands/ngwaf/workspace/alert/opsgenie"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/opsgenie       1.059s
make test TEST_ARGS="-run TestOpsgenieAlertGet ./pkg/commands/ngwaf/workspace/alert/opsgenie"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/opsgenie       1.053s
make test TEST_ARGS="-run TestOpsgenieAlertUpdate ./pkg/commands/ngwaf/workspace/alert/opsgenie"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/opsgenie       1.068s
make test TEST_ARGS="-run TestOpsgenieAlertDelete ./pkg/commands/ngwaf/workspace/alert/opsgenie"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/opsgenie       1.056s

// pagerduty
make test TEST_ARGS="-run TestPagerDutyAlertCreate ./pkg/commands/ngwaf/workspace/alert/pagerduty"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/pagerduty      1.053s
make test TEST_ARGS="-run TestPagerDutyAlertList ./pkg/commands/ngwaf/workspace/alert/pagerduty"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/pagerduty      1.052s
make test TEST_ARGS="-run TestPagerDutyAlertGet ./pkg/commands/ngwaf/workspace/alert/pagerduty"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/pagerduty      1.065s
make test TEST_ARGS="-run TestPagerDutyAlertUpdate ./pkg/commands/ngwaf/workspace/alert/pagerduty"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/pagerduty      1.066s
 make test TEST_ARGS="-run TestPagerDutyAlertDelete ./pkg/commands/ngwaf/workspace/alert/pagerduty"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/pagerduty      1.058s

// slack
make test TEST_ARGS="-run TestSlackAlertCreate ./pkg/commands/ngwaf/workspace/alert/slack"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/slack  1.061s
make test TEST_ARGS="-run TestSlackAlertList ./pkg/commands/ngwaf/workspace/alert/slack"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/slack  1.058s
make test TEST_ARGS="-run TestSlackAlertGet ./pkg/commands/ngwaf/workspace/alert/slack"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/slack  1.059s
make test TEST_ARGS="-run TestSlackAlertUpdate ./pkg/commands/ngwaf/workspace/alert/slack"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/slack  1.063s
make test TEST_ARGS="-run TestSlackAlertDelete ./pkg/commands/ngwaf/workspace/alert/slack"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/slack  1.058s

// webhook
make test TEST_ARGS="-run TestWebhookAlertCreate ./pkg/commands/ngwaf/workspace/alert/webhook"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/webhook        1.058s
 make test TEST_ARGS="-run TestWebhookAlertList ./pkg/commands/ngwaf/workspace/alert/webhook"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/webhook        1.060s
make test TEST_ARGS="-run TestWebhookAlertGet ./pkg/commands/ngwaf/workspace/alert/webhook"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/webhook        1.065s
make test TEST_ARGS="-run TestWebhookAlertUpdate ./pkg/commands/ngwaf/workspace/alert/webhook"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/webhook        1.063s
make test TEST_ARGS="-run TestWebhookAlertDelete ./pkg/commands/ngwaf/workspace/alert/webhook"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/webhook        1.057s
--
make test TEST_ARGS="-run TestWebhookGetSigningKey ./pkg/commands/ngwaf/workspace/alert/webhook"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/webhook        1.063s
make test TEST_ARGS="-run TestWebhookRotateSigningKey ./pkg/commands/ngwaf/workspace/alert/webhook"
ok      github.com/fastly/cli/pkg/commands/ngwaf/workspace/alert/webhook        1.060s

@rcaril rcaril marked this pull request as ready for review December 1, 2025 19:04
@rcaril rcaril requested a review from a team as a code owner December 1, 2025 19:04
rcaril and others added 2 commits December 2, 2025 09:20
Restructured common references for alert types into root.go files. Common references stay in the alert root package, and individual attributes are moved to the root.go of the specific alert types.
@rcaril rcaril requested a review from kpfleming December 3, 2025 18:21
Copy link
Contributor

@anthony-gomez-fastly anthony-gomez-fastly left a comment

Choose a reason for hiding this comment

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

LGTM! TY!

@rcaril rcaril merged commit 0e669d1 into main Dec 8, 2025
18 of 21 checks passed
@rcaril rcaril deleted the rcaril/CDTOOL-1216-ngwaf-alerts-crud-support branch December 8, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants