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

Queryable Encryption prose and spec tests can share the same encryptedFields JSON files

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: Client Side Encryption
    • None
    • Needed
    • Hide

      resync range-... and fle2v2-... files to https://github.com/mongodb/specifications/commit/c4f3fabe9047e5e7a87877d642fa0d885a47351c

      There is no expected test coverage or behavior change. Consider closing the language ticket as "Won't Do" and resyncing test files as part of a future change.

      Show
      resync range-... and fle2v2-... files to https://github.com/mongodb/specifications/commit/c4f3fabe9047e5e7a87877d642fa0d885a47351c There is no expected test coverage or behavior change. Consider closing the language ticket as "Won't Do" and resyncing test files as part of a future change.
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4613 Fixed 1.24.0
      CXX-2674 Fixed 3.11.0, 3.10.2
      CSHARP-4612 Backlog
      GODRIVER-2808 Won't Do
      JAVA-4934 Fixed 4.10.0
      NODE-5195 Fixed 5.5.0
      MOTOR-1118 Won't Do
      PYTHON-3666 Duplicate 4.4
      PHPLIB-1110 Fixed 1.16.0
      RUBY-3239 Won't Do
      RUST-1629 Fixed 2.6.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 */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-4613 Fixed 1.24.0 CXX-2674 Fixed 3.11.0, 3.10.2 CSHARP-4612 Backlog GODRIVER-2808 Won't Do JAVA-4934 Fixed 4.10.0 NODE-5195 Fixed 5.5.0 MOTOR-1118 Won't Do PYTHON-3666 Duplicate 4.4 PHPLIB-1110 Fixed 1.16.0 RUBY-3239 Won't Do RUST-1629 Fixed 2.6.0

      Summary

      CSFLE prose test 22 uses range-encryptedFields-<type>.json files (added in DRIVERS-2505), which are very similar to the encryptedFields-Range-<type>.json files used by the templates that generate legacy spec tests (added in DRIVERS-2286).

      There appear to be two notable differences:

      • The range-encryptedFields-<type>.json files also specify zero for field.queries.contention, which is the default value and may be irrelevant.
      • The field names for encryptedDouble / encryptedDecimal in encryptedFields-Range-<type>.json are encryptedDoubleNoPrecision / encryptedDecimalNoPrecision in range-encryptedFields-<type>.json.

      It should be feasible to resolve these differences and have the prose and spec tests use the same set of JSON files.

      See this GitHub review comment for additional context.

      Motivation

      Is this issue urgent?

      No.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Kevin Albertson Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: