Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-5776

Fix assertions in URI test runner

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • C Drivers

      Summary

      Distinguish "null" and "{}" in URI test runner assertions.

      Background & Motivation

      See slack thread.

      The C driver URI test runner runs tests for the Connection String spec, Auth spec, and URI Options spec.

      The test runner uses bson_lookup_doc_null_ok to look-up expectations for "auth", "credentials", "hosts", and "options".

      The Connection String spec and URI Options spec note:

      If a test case includes a null value for one of these keys (e.g. auth: ~, port: ~), no assertion is necessary.

      The Auth spec notes:

      credential: If null, the credential must not be considered configured

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: