fix(ci): expect a blank job number on migrated legacy nests

The container smoke compares migrated legacy records field for field, so
the Server image workflow failed once records gained jobNumber. Add a
unit test that checks the fixture lists every record field, which catches
the next new field without Docker.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Sonnet 5.5 committed 2026-12-03 15:17:02 -05:00
1 parent ad991edb9f
commit 1772eb04e0
3 files changed
+40 -1

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ def create(directory):
'madeBy', 'fileSize', 'savedAt'), fields))
# Columns added by later migrations read back as their defaults.
metadata.update(status='toBeCut', revision=1, deleted=False, restoredFromRevision=None,
materialGrade='', units='inches', thicknessName='')
materialGrade='', units='inches', thicknessName='', jobNumber='')
archive = {'sha256': hashlib.sha256(data).hexdigest(), 'bytes': len(data)}
expected.append({'current': metadata, 'archive': archive,
'revisions': [{'metadata': metadata, 'archive': archive}]})