-
Notifications
You must be signed in to change notification settings - Fork 123
refactor: migrated protocol validation tests to table_configuration #1517
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
base: main
Are you sure you want to change the base?
refactor: migrated protocol validation tests to table_configuration #1517
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1517 +/- ##
==========================================
+ Coverage 84.74% 84.76% +0.01%
==========================================
Files 122 122
Lines 32938 33103 +165
Branches 32938 33103 +165
==========================================
+ Hits 27914 28060 +146
+ Misses 3674 3668 -6
- Partials 1350 1375 +25 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| let table_root = Url::try_from("file:///").unwrap(); | ||
| let config = TableConfiguration::try_new(metadata, protocol, table_root, 0).unwrap(); | ||
| assert_result_error_with_message( | ||
| config.ensure_write_supported(), | ||
| "rowTracking requires domainMetadata to be supported", | ||
| ); |
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.
Can you add a case for RowTracking + Domain metadata to show that adding the requirement fixes it?
nicklan
left a comment
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.
lgtm if nit addressed. thanks!
What changes are proposed in this pull request?
Following #1411, move tests over.
The previous tests didn't validate protocol, so we had some tests where protocol was 2/7 but writer features didn't exist. Since we construct and validate protocol in the test helper, changed the test to include a writer feature.
How was this change tested?