Update OpenTelemetry tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 5.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Java Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • 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:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: