Skip to content

test(storage): expect ignore_unknown_fields in volcengine update_data bodies (#3775) - #3777

Closed
huangruiteng wants to merge 1 commit into
volcengine:mainfrom
huangruiteng:fix/issue-3775-volcengine-ignore-unknown-fields-test
Closed

test(storage): expect ignore_unknown_fields in volcengine update_data bodies (#3775)#3777
huangruiteng wants to merge 1 commit into
volcengine:mainfrom
huangruiteng:fix/issue-3775-volcengine-ignore-unknown-fields-test

Conversation

@huangruiteng

Copy link
Copy Markdown
Collaborator

Fixes #3775.

Since #2981 (34c191a0, "fix(vikingdb): trust OpenViking schema for volcengine api_key mode"), VolcengineCollection.update_data and VolcengineApiKeyCollection.update_data always post "ignore_unknown_fields": True to /api/vikingdb/data/update. Four tests in tests/storage/test_volcengine_clients.py asserted the legacy exact request body and fail with Left contains 1 more item: {'ignore_unknown_fields': True}.

Add "ignore_unknown_fields": True to the four expected request dicts.

Validation

  • pytest tests/storage/test_volcengine_clients.py -q → 25 passed
  • ruff check clean, py_compile clean

Test-only change; no production code modified.

… bodies

Since volcengine#2981, VolcengineCollection/VolcengineApiKeyCollection.update_data
always post 'ignore_unknown_fields': True to /api/vikingdb/data/update.
The four update_data tests asserted the legacy exact body without that
field and failed. Add it to the expected request dicts.

Fixes volcengine#3775.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

test: volcengine collection update_data assertions omit ignore_unknown_fields

1 participant