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

BUG: fix validation error related to provider #2054 #2056

Merged
merged 15 commits into from Oct 16, 2023

Conversation

fangchenli
Copy link
Member

@fangchenli fangchenli commented Oct 9, 2023

Reference Issues or PRs

close #2054

What does this implement/fix?

Put a x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features not to work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

  • Did you test the pull request locally?
  • Did you add new tests?

Any other comments?

Comment on lines -258 to -259
assert "provider" in str(result.exception)

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this test here because it's not asserting the expected behavior, also the exception was raised before any upgrade steps, so it's not related to upgrade.

Copy link
Member

@iameskild iameskild left a comment

Choose a reason for hiding this comment

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

Thanks for taking a closer look at this! I know you also have the PR open to upgrade to Pydantic v2 so hopefully these changes are too painful.

tests/tests_unit/test_schema.py Outdated Show resolved Hide resolved
src/_nebari/stages/infrastructure/__init__.py Outdated Show resolved Hide resolved
@iameskild iameskild added area: testing ✅ Testing type:extension Nebari Extension labels Oct 9, 2023
Copy link
Member

@iameskild iameskild left a comment

Choose a reason for hiding this comment

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

Thanks @fangchenli!

src/_nebari/stages/infrastructure/__init__.py Show resolved Hide resolved
@iameskild
Copy link
Member

Thanks again @fangchenli, feel free to merge when you're ready.

@fangchenli fangchenli merged commit 4db8400 into nebari-dev:develop Oct 16, 2023
10 checks passed
@fangchenli fangchenli deleted the validation-main branch October 16, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: testing ✅ Testing type:extension Nebari Extension
Projects
Status: Done 💪🏾
Development

Successfully merging this pull request may close these issues.

[BUG] - Wrong error raised when an invalid provider is given
2 participants