12 Commits

Author SHA1 Message Date
Anup Navare
c73492c877 Allow selecting interfaces while enrolling nodes
Adds support for selecting from the enabled interfaces for the
underlying driver while creating nodes. A new tab is added in the
enroll node modal.

Also enhanced "package.json" and "karma.conf.js" to widen the
range of accepted versions and jasmine capabilities.

Change-Id: Ie1b24cbf147b849a1d57fcdcbd735429ea7c9e34
Partial-Bug: #1672729
2017-10-22 20:21:09 -04:00
Ramamani Yeleswarapu
5cf54f0426 Add support for editing node's resource_class
This patch adds support to edit/update a node's 'resource_class'
info when enrolling/updating a node.

Change-Id: I3dbbcac05c29aef27443441365651c8f8d9ccafa
Closes-Bug: #1672709
2017-06-21 14:17:08 -07:00
Jenkins
911671d540 Merge "Unit test framework for Ironic-UI API service" 2017-06-20 18:22:08 +00:00
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
Peter Piela
a30ca193ae Fixed node form submission issue
A node definition is not considered valid for submission if it contains
a user added property that does not have a value. The code that monitors
this condition had gotten out of sync with other recent updates in this
area.

Change-Id: Iec6afa68977b52c1742b3c1bbc29be0123caff5f
2017-05-17 11:40:22 -04:00
Peter Piela
03af6076fd Improve strings for translation
Rework HTML and Javascript to provide better strings for the translators
to work on. The existing code generated strings that contained unnecessary
HTML markup.

Change-Id: Ib528c64234d88c39b266e03a702f1ce50a96684f
2017-05-04 09:18:41 -04:00
Peter Piela
d97d4b4fa2 Add support for network_interface attribute
For the nework_interface attribute the user can:
- select a value for network_interface as part of enrolling a node
- update its value as part of editing a node,
- see its value in the node-details/overview page

Change-Id: I6bdbd9e6596de3f7da3bbcf75b511e5bc54b781a
Closes-Bug: #1648566
2017-03-01 22:48:29 +00:00
Peter Piela
3fc9f6039a Cleanup code associated with the ironic REST api
- In the ironic_rest_api module use specific names like node, port,
driver for return values. I believe this is more descriptive than
the current approach of using "items" in all function returns. The
use of specific names also reduces the possibility of cut and paste
errors in client code.
- Rethink data returned from functions in the ironic.service. For
example, I believe that a function like getNodes should return a
list of nodes as opposed to a HTTP response as is done today. The
client should receieve the requested data, and be abstracted from
how it was obtained
- Modify controllers to take advantage of the api simplifications

Change-Id: Ica8c9ff8dfa9299cd5ef2893d296e366065bca97
2017-02-28 14:53:31 -05:00
Peter Piela
759df1f9be Refactor the edit-node/nodeUpdatePatch class
The nodeUpdatePatch class has been refactored in to a separate
updatePatch service that will be used to patch both nodes and
ports.

Change-Id: I725bfe92fb9f878db243dd987f07f1c8eb04440c
2017-01-09 12:32:19 -05:00
Peter Piela
dd2745f608 Changes required for updated Bootstrap version
Horizon has updated its version of Bootstrap to 0.14.0 that
introduced the uib prefix for all components.

Change-Id: I05589d38b11a3b4e40e247dfcaf0fc02deccd1b6
2017-01-03 11:56:03 -05:00
Peter Piela
bb0948d00f Consolidate processing of node properties
Refactor and consolidate code to unify processing of metadata, extra, and
instance_info

Change-Id: I1726d0c7a8ecec83039d61be752940099bd2fa04
2016-10-02 18:30:37 -04:00
Peter Piela
a5220eb243 Added support for editing Ironic nodes
- Split out base-node from enroll-node and use it to implement edit-node
- Enrollemnt no longer requires that all required attributes be specified
- Edit-node functionality supports instance_info properties

Change-Id: Ied1f21c8790f0d9dc3a238defa930181789a7281
Co-Authored-By: Beth Elwell
2016-09-27 11:43:06 -05:00