[Koha-bugs] [Bug 35218] New: No tests for /erm/sushi_service

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 1 18:59:07 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35218

            Bug ID: 35218
           Summary: No tests for /erm/sushi_service
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: REST API
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: tomascohen at gmail.com
                CC: tomascohen at gmail.com

This response definition is weird:

      200:
        description: A sushi service
        schema:
          items:
            $ref: "../swagger.yaml#/definitions/erm_sushi_service"
          type: object

`items` applies to `array` types. When digging in the tests and code to find
out wether it returns an array of objects, or an object, I found out there are
actually no tests for this endpoint!

I'm removing the stray 'type: object' entry there because it makes some other
tests fail. But please provide tests, and proof of the expected behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list