-
Notifications
You must be signed in to change notification settings - Fork 175
Fix aws_db_instance false-positives #545
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
Conversation
Codecov Report
@@ Coverage Diff @@
## v0.9 #545 +/- ##
==========================================
- Coverage 70.89% 70.85% -0.05%
==========================================
Files 289 289
Lines 6549 6553 +4
==========================================
Hits 4643 4643
- Misses 1526 1529 +3
- Partials 380 381 +1
|
509e846
to
6bddc5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job ππΌ
9ea5f40
to
1acee71
Compare
8000
@@ -14,9 +14,15 @@ func (r *AwsDbInstance) NormalizeForState() (resource.Resource, error) { | |||
if r.ApplyImmediately != nil && !*r.ApplyImmediately { | |||
r.ApplyImmediately = nil | |||
} | |||
if r.CharacterSetName != nil && *r.CharacterSetName == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch will do it now !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done d427632
Description
Fix false positive for aws_db_instance CharacterSetName
Add Acc test.
Maybe it's need to change pkg/iac/terraform/state/test/db_instance/terraform.tfstate and pkg/iac/terraform/state/test/db_instance/result.golden.json, let me know.