Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-3097

Improve JSON tests for Binary Vector Subtype

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: BSON
    • None
    • Needed
    • Hide

      Summary of necessary driver changes

      • Update the test runner for the Vector subtype so it can test on the new invalid decoding cases
      • Sync up the test cases

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      Context for other referenced/linked tickets

      Show
      Summary of necessary driver changes Update the test runner for the Vector subtype so it can test on the new invalid decoding cases Sync up the test cases Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed) https://github.com/mongodb/specifications/commit/585b797c110b6709f81def6200b946b94c8d9c55 Context for other referenced/linked tickets
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-5886 Fixed 2.0.0
      CXX-3216 Backlog
      CSHARP-5484 Duplicate
      GODRIVER-3481 Fixed 2.1.0
      JAVA-5782 Backlog
      NODE-6735 Fixed bson-6.10.4
      MOTOR-1429 Duplicate
      PYTHON-5126 In Code Review 4.13
      PHPC-2514 Backlog
      RUBY-3618 Backlog
      RUST-2149 Fixed bson-2.14.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } #scriptField td.willNotDo { background-color: #FF0000; /* Red color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-5886 Fixed 2.0.0 CXX-3216 Backlog CSHARP-5484 Duplicate GODRIVER-3481 Fixed 2.1.0 JAVA-5782 Backlog NODE-6735 Fixed bson-6.10.4 MOTOR-1429 Duplicate PYTHON-5126 In Code Review 4.13 PHPC-2514 Backlog RUBY-3618 Backlog RUST-2149 Fixed bson-2.14.0

      Summary

      Improve the negative cases for decoding BSON Binary Vector subtype in tests in specifications/source/bson-binary-vector/tests

      • For "FLOAT32 with padding", "INT8 with padding", "Padding specified with no vector data PACKED_BIT", and "Exceeding maximum padding PACKED_BIT", we also need to verify decoding from a given canonical_bson into its vector Binary, which should raise an exception when attempting to deserialize it into the corresponding numeric values.
      • We need test cases for FLOAT32 vectors with insufficient data length (not a multiple of 4 bytes as a float32), which should raise an exception when attempting to deserialize it into the float32 sequence.

      RP: https://github.com/mongodb/specifications/pull/1750

      Motivation

      Who is the affected end user?

      Drivers who are implementing the BSON Binary Vector subtype support.

      How does this affect the end user?

      Improve the negative cases for decoding in tests in specifications/source/bson-binary-vector/tests

      Is this ticket only for tests?

      test improvements

      Acceptance Criteria

      Deserializing the updated canonical_bson into numeric values should raise an exception.

            Assignee:
            qingyang.hu@mongodb.com Qingyang Hu
            Reporter:
            qingyang.hu@mongodb.com Qingyang Hu
            Qingyang Hu Qingyang Hu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: