Update OpenTelemetry tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 5.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Java Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      https://jira.mongodb.org/browse/DRIVERS-3313

      Summary

      Some OpenTelemetry tests do not conform to the Spec, some require specific run requirements:

       

      • https://github.com/mongodb/specifications/blame/master/source/open-telemetry/tests/operation/aggregate.yml#L46 asserts that db.mongodb.cursor_id is unpopulated, but some drivers fill it in because aggregate returns a cursor (it should have been left out anyway since that’s not the focus of this test)
      • txNumber is not reported when running against standalone, so it has to be behind txnNumber: { $$unsetOrMatches: 1 }) or the test requirement should be replicaSet/sharded
      • The list_collections test expects an empty cursor document, which some drivers don’t populate
      • server.type is not part of the spec, but present in some tests
      • the usage of comment requires a minServerVersion (same for dropCollection )

            Assignee:
            Nabil Hachicha
            Reporter:
            Nabil Hachicha
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: