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

added fix for import block type to support both str and int and added… #78

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

stikkireddy
Copy link
Collaborator

Description

Fix #74

Motivation and Context

Import block support both str and int types as valid ids and added test.

How Has This Been Tested?

Unit testing added for constructing the object and generation of the terraform import file.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

… unit test to assert that the import blocks are created correctly
@stikkireddy stikkireddy requested review from asingamaneni, newfront and a team as code owners January 8, 2024 18:13
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (85ee1cd) 93.33% compared to head (9abe24e) 93.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   93.33%   93.37%   +0.04%     
==========================================
  Files          22       22              
  Lines        4919     4923       +4     
==========================================
+ Hits         4591     4597       +6     
+ Misses        328      326       -2     

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

Copy link
Collaborator

@asingamaneni asingamaneni left a comment

Choose a reason for hiding this comment

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

LGTM

@asingamaneni asingamaneni merged commit 30eed76 into main Jan 10, 2024
4 checks passed
@asingamaneni asingamaneni deleted the fix/pydantic-import-block-issue branch January 10, 2024 18:18
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.

[BUG] Pydantic validation error for ImportBlock - Input should be a valid string - Got int
2 participants