Complement EJSON conversion tests with the existing BSON test corpus

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The corpus of tests at https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson/tests/json/bson_corpus contains BSON inputs as well as Extended JSON equivalents meant for testing.

      We should integrate those inputs into our tests and use them to test $serializeEJSON/$deserializeEJSON, as well as $convert format conversions.

      These test inputs could also be used to test non-Query parsers and serialisers in the Server, such as the BSONObj::jsonString method.

            Assignee:
            Unassigned
            Reporter:
            Vesko Karaganev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: