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

Removed check to test resource attributes when ImportStateVerify is set to true in resource tests #1265

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

shrsr
Copy link
Collaborator

@shrsr shrsr commented Jul 30, 2024

No description provided.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.05%. Comparing base (002e50f) to head (042dfc7).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1265   +/-   ##
=======================================
  Coverage   84.05%   84.05%           
=======================================
  Files          61       61           
  Lines       17940    17940           
=======================================
  Hits        15080    15080           
  Misses       2054     2054           
  Partials      806      806           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samiib
Copy link
Collaborator

samiib commented Jul 30, 2024

Sorry maybe a silly question but just wondering, why we needed to remove the attribute checks when ImportStateVerify is true?

@shrsr
Copy link
Collaborator Author

shrsr commented Jul 31, 2024

@samiib When ImportStateVerify is set to True, Terraform automatically verifies that the state of the imported resource matches the expected state.
The steps in the Check are ignored when the above field is True.

Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

Awesome! Sounds good to me.
LGTM!

Copy link
Collaborator

@akinross akinross left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

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

LGTM

@lhercot lhercot merged commit 11af9c1 into CiscoDevNet:master Aug 2, 2024
5 checks passed
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.

7 participants