ironic-ui/releasenotes/notes/unit-test-framework-f61ad7926413bf91.yaml
Peter Piela b55a1004ff Unit test framework for Ironic-UI API service
This commit is a first step in the development of a unit test framework for
the Ironic-UI API service. The approach being used is to provide an emulation
of the Ironic backend using a mock that utilizes Angular $httpbackend
handlers to intercept requests targeted at the Ironic-UI server side REST
endpoints.

In addition to demonstrating the mock I have coded some basic tests to
show how it is used. At this point I would like to get feedback from the team,
and consensus on whether we should continue the process of building
additional tests.

Change-Id: Iaec83b0e19b5051ebf1257ddc56efcc6f11ee39d
2017-06-20 13:07:13 -04:00

15 lines
592 B
YAML

---
features:
- |
A backend mock has been added that enables better unit testing of the
Ironic API service and other Ironic-UI components. The mock utilizes
Angular $httpbackend handlers to intercept requests targeted at the
Ironic-UI server-side REST endpoints, and returns simulated responses.
- |
A number of unit tests have been developed that illustrate the use
of the backend mock.
- |
Although the backend mock is a work in progress, enough
functionality already exists to support test development for
the current set of in-progress features.