• 
      

    Allow resource item extra data tests to specify expected default extra data.

    Review Request #14789 — Created Jan. 27, 2026 and submitted

    Information

    Review Board
    release-7.1.x

    Reviewers

    We have a mixin that adds extra data-related tests for resource items.
    It'll do full equality checks of the object's extra data against the
    extra data that the test sets. However, it's possible that an object
    can contain extra data entries that the mixin doesn't know about, but is
    correct for it to exist in the extra data. An example of this is a file
    attachment's SHA256 checksum value, which gets put into the extra data
    upon file attachment creation and whenever the item resource is
    serialized.
    
    This change allows test cases to set additional expected extra data for
    the object, so that tests can account for this when checking that the
    object's extra data is correct.
    • Ran unit tests.
    • Used in the upcoming file attachment SHA256 change where this
      fixed some unit tests.
    Summary ID
    Allow resource item extra data tests to specify expected default extra data.
    We have a mixin that adds extra data-related tests for resource items. It'll do full equality checks of the object's extra data against the extra data that the test sets. However, it's possible that an object can contain extra data entries that the mixin doesn't know about, but is correct for it to exist in the extra data. An example of this is a file attachment's SHA256 checksum value, which gets put into the extra data upon file attachment creation and whenever the item resource is serialized. This change allows test cases to set additional expected extra data for the object, so that tests can account for this when checking that the object's extra data is correct.
    518522bad20e2bc1ddaeb926503f9c5015da454d
    Description From Last Updated

    Blank line between these.

    daviddavid

    Do we want to check value equality as well as the presence of the key?

    daviddavid

    Same here.

    daviddavid

    And here. If it turns out we do, we might want to write a helper method to check these since …

    daviddavid
    david
    1. 
        
    2. Show all issues

      Blank line between these.

    3. Show all issues

      Do we want to check value equality as well as the presence of the key?

    4. Show all issues

      Same here.

    5. Show all issues

      And here.

      If it turns out we do, we might want to write a helper method to check these since we're doing it three times.

    6. 
        
    maubin
    chipx86
    1. Ship It!
    2. 
        
    david
    1. Ship It!
    2. 
        
    maubin
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.1.x (68410b7)