Test schema upgrade that ignores truncation #4

Open
opened 2026-09-05 11:54:14 +02:00 by c.fahner · 0 comments
Owner
  1. Create a schema that contains a string field of a certain size.
  2. Add a document that maxes out the field's size.
  3. Upgrade the schema so that it would truncate the field and change some other property like nullability, but do not allow the truncation.
  4. Assert that the nullability change still went through, but that the field's character count is kept at the old value.
  5. Assert that a warning is emitted about the skipped truncation.
  6. Rerun the schema upgrade, now with truncations enabled.
  7. Assert that the upgrade is completed correctly.

See also slendium/ocd#40

1. Create a schema that contains a string field of a certain size. 2. Add a document that maxes out the field's size. 3. Upgrade the schema so that it would truncate the field and change some other property like nullability, but do not allow the truncation. 4. Assert that the nullability change still went through, but that the field's character count is kept at the old value. 5. Assert that a warning is emitted about the skipped truncation. 6. Rerun the schema upgrade, now with truncations enabled. 7. Assert that the upgrade is completed correctly. See also slendium/ocd#40
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
slendium/ocd-conformance-tests#4
No description provided.