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

Refactor TestTerraformOutputsWithSecretsSupported #1855

Merged

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Apr 11, 2024

Followup to #1853.

Since #1851 also edits these tests, I thought they should also have (and require) correct types.

@iwahbe iwahbe requested review from t0yv0 and a team April 11, 2024 17:29
@iwahbe iwahbe self-assigned this Apr 11, 2024
Schema: schemaMap(map[string]*schema.Schema{
"secret_value": {
Type: shim.TypeString,
Sensitive: true,
Copy link
Member

Choose a reason for hiding this comment

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

Schema-based secrets, nice!

@t0yv0 t0yv0 self-requested a review April 11, 2024 23:53
Copy link
Member

@t0yv0 t0yv0 left a 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.

Copy link
Contributor

@VenelinMartinov VenelinMartinov left a 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!

@iwahbe iwahbe enabled auto-merge (squash) April 12, 2024 10:16
@iwahbe iwahbe force-pushed the iwahbe/refactor-TestTerraformOutputsWithSecretsSupported branch from 99b8570 to 36c1766 Compare April 12, 2024 10:23
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.48%. Comparing base (a38a786) to head (36c1766).

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.
📢 Have feedback on the report? Share it here.

@iwahbe iwahbe merged commit 47052e2 into master Apr 12, 2024
10 checks passed
@iwahbe iwahbe deleted the iwahbe/refactor-TestTerraformOutputsWithSecretsSupported branch April 12, 2024 10:51
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.

3 participants