-
Notifications
You must be signed in to change notification settings - Fork 43
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
Refactor TestTerraformOutputsWithSecretsSupported #1855
Refactor TestTerraformOutputsWithSecretsSupported #1855
Conversation
…ests This is only a refactor of test code for clarity.
Schema: schemaMap(map[string]*schema.Schema{ | ||
"secret_value": { | ||
Type: shim.TypeString, | ||
Sensitive: true, |
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.
Schema-based secrets, nice!
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.
These are strange test cases as not all of them test secrets. But I really appreciate the new rewritten form as that makes each testcase more localized and easily readable. We can extend this table as needed when in doubt about secrets handling. LGTM.
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.
yeah, I agree much more readable, thanks!
99b8570
to
36c1766
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1855 +/- ##
==========================================
- Coverage 60.99% 60.48% -0.52%
==========================================
Files 303 310 +7
Lines 42457 42835 +378
==========================================
+ Hits 25898 25908 +10
- Misses 15085 15454 +369
+ Partials 1474 1473 -1 ☔ View full report in Codecov by Sentry. |
Followup to #1853.
Since #1851 also edits these tests, I thought they should also have (and require) correct types.