Builds and runs unit tests. More details of the release in https://wiki.openmrs.org/x/i4DTAw

Build: #764 was successful Changes by Tom Price <tomtom5152@gmail.com>

Stages & jobs

  1. Default Stage

  2. Release

    Requires a user to start manually

Code commits

openmrs-module-webservices.rest

  • Tom Price <tomtom5152@gmail.com>

    Tom Price <tomtom5152@gmail.com> 685bd777c2854d10482272c1f5648ec6fd59a81c

    RESTWS-720: API Docs generating a lot of reference errors (#342)
    * RESTWS-720 Diagnose the fault as a nullPointerException and add a test to confirm.

    Test simply calls the lower level method that throws the exception so
    will pass once the fix is implemented.
    Will also test for future regressions of the same issue.

    * RESTWS-720 Fix nullPointerException

    * RESTWS-720 Add test and change logic for create only SubResource definitions.

    It was noted on refapp >=2.2.0 that OrderFulfillmentDetails was produce
    a referr to its Get definition, an operation that wasn't supported by
    the resource.

    Logic was changed to remove subresource definitions in responses in line
    with main resources. Test added to confirm and prevent regression.

    • omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/TaskActionResource1_8.java (version 685bd777c2854d10482272c1f5648ec6fd59a81c)
    • omod-2.0/src/test/java/org/openmrs/module/webservices/rest/doc/SwaggerSpecificationCreatorTest.java (version 685bd777c2854d10482272c1f5648ec6fd59a81c)
    • omod-2.0/src/test/java/org/openmrs/module/webservices/rest/resource/SubDetails.java (version 685bd777c2854d10482272c1f5648ec6fd59a81c)
    • omod-2.0/src/test/java/org/openmrs/module/webservices/rest/resource/SubDetailsResource.java (version 685bd777c2854d10482272c1f5648ec6fd59a81c)
    • omod-common/src/main/java/org/openmrs/module/webservices/docs/swagger/SwaggerSpecificationCreator.java (version 685bd777c2854d10482272c1f5648ec6fd59a81c)