Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-3733

FIT Query: includesHttpStatusCodeInErrorContext fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • fit-performer
    • None
    • None
    • None

    Description

      Root Issue

      This failure is due to how we serialize Exceptions and send them back to the driver as a JSON string. Enums can either be serialized using their value, or their member names. There are caveats and things we could change in the SDK/Performer, but the simplest way is to have the Driver accept both error codes and error names for .NET.

      An enum member BadRequest = 400 can either be serialized as "BadRequest" or "400". Different Driver tests require either (e.g. in NCBC-3731 the Driver expects "503" but receives "ServiceUnavailable". In NCBC-3697 the Driver expects to see "CollectionNotFound", but the Performer (used to) send the enum value "21").

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              emilien.bevierre Emilien Bevierre
              emilien.bevierre Emilien Bevierre
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty