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: set retention period only when enabling functionality #539

Merged
merged 5 commits into from
Oct 10, 2022

Conversation

zucchinidev
Copy link
Contributor

#183485960

Checklist:

Copy link
Member

@jhvhs jhvhs left a comment

Choose a reason for hiding this comment

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

Looks good to me

Expect(AfterValuesForType(plan, "aws_db_instance")).To(
MatchKeys(IgnoreExtras, Keys{
"performance_insights_enabled": Equal(true),
"performance_insights_retention_period": Equal(float64(retentionPeriod)),
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: I'm not sure we should compare to a float, as it is an internal detail; we may want to use BeNumerically matcher here to avoid using specific types.

Expect(AfterValuesForType(plan, "aws_db_instance")).To(
MatchKeys(IgnoreExtras, Keys{
"performance_insights_enabled": Equal(true),
"performance_insights_retention_period": Equal(float64(retentionPeriod)),
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

@zucchinidev zucchinidev merged commit 04d50b4 into main Oct 10, 2022
@FelisiaM FelisiaM deleted the performance_insights_retention_period branch November 2, 2022 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants