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

Do not expect both valid:false and warning:true in SRV option URI spec tests

    • Needed
    • Hide

      Drivers should sync URI options spec tests to mongodb/specifications@84bdb3f.

      Show
      Drivers should sync URI options spec tests to mongodb/specifications@84bdb3f .
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4196 Gone away
      CXX-2397 Backlog
      CSHARP-3926 Fixed 2.14.0
      GODRIVER-2196 Done
      JAVA-4364 Done
      NODE-3696 Done
      PHPLIB-746 Won't Fix
      PYTHON-2955 Duplicate
      MOTOR-840 Duplicate
      RUBY-2819 Done 2.18.0
      RUST-1068 Duplicate
      SWIFT-1382 Duplicate
      $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-4196 Gone away CXX-2397 Backlog CSHARP-3926 Fixed 2.14.0 GODRIVER-2196 Done JAVA-4364 Done NODE-3696 Done PHPLIB-746 Won't Fix PYTHON-2955 Duplicate MOTOR-840 Duplicate RUBY-2819 Done 2.18.0 RUST-1068 Duplicate SWIFT-1382 Duplicate

      Summary

      SRV option URI spec tests introduced in DRIVERS-1519 expect both valid: false and warning: true. In practice, the tests will either raise errors (e.g. using options with non-SRV scheme) or warnings (e.g. invalid value/type), but not both. This was missed during the POCs as neither Java nor Go differentiate errors and warnings raised during URI parsing.

      Motivation

      Is this ticket only for tests?

      Yes.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: