We're updating the issue view to help you get more done. 

RESTful web service testing setup

Description

As a developer, I want to write automated tests for any and all RESTful web services I create. The service template and/or template example shows examples I can leverage, including how to mock dependencies.

TBD: do we build a test data set as part of this?

Acceptance

  • Implement WireMock from the Architecture Overview's Tech Stack (https://openlmis.atlassian.net/wiki/x/IYAKAw)

  • Inform community on usage of WireMock, if a better tool exists recommend & demo it

  • OpenLMIS Service Example should demonstrate exercising it's own RESTful API: mock external API (e.g. as if a Security Service existed), also best-effort for demonstrating Record and Playback that a service might use in production to verify other real Services are working as expected.

Status

Assignee

Anna Czyrko

Reporter

Rich Magnuson

Labels

None

Story Points

3

Components

Sprint

None

Fix versions

Priority

Major