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(fastly_alerts): add percentage alerts #845

Merged
merged 5 commits into from
May 9, 2024

Conversation

jsonroy-fastly
Copy link
Contributor

This pull requests add tests and documentation about how to use a percentage alerts.

@jsonroy-fastly jsonroy-fastly changed the title Add percentage alerts feat(fastly_alerts): add percentage alerts May 6, 2024
@jsonroy-fastly jsonroy-fastly added the enhancement New feature or request label May 6, 2024
Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

LGTM. But there are some minor requested changes...

fastly/resource_fastly_alert.go Outdated Show resolved Hide resolved
fastly/resource_fastly_alert.go Outdated Show resolved Hide resolved
fastly/resource_fastly_alert_test.go Outdated Show resolved Hide resolved
@Integralist
Copy link
Collaborator

Integralist commented May 7, 2024

/ok-to-test sha=330024a

UPDATE: The validate-interface-fork workflow (trigged by the above slash command) passed without error.

@Integralist
Copy link
Collaborator

Sigh. Terraform.

So yeah it seems that Terraform has a thing where it expects one underscore between TestWhatever_TheRestOfTheName which is something to do with test name ambiguity.

Screenshot 2024-05-07 at 14 53 21

@Integralist
Copy link
Collaborator

https://pkg.go.dev/github.com/bflad/tfproviderlint@v0.29.0/passes/AT003

So I think we can just add a single underscore like so TestAccFastlyAlert_TitleCaseTheRest

Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

LGTM. Did you have any other changes or is this ready to merge?

@jsonroy-fastly
Copy link
Contributor Author

Ready to merge!

@Integralist Integralist merged commit 2393b86 into fastly:main May 9, 2024
9 checks passed
@jsonroy-fastly jsonroy-fastly deleted the percent-alerts branch May 24, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants