b55a1004ff
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
15 lines
592 B
YAML
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.
|