11 Commits

Author SHA1 Message Date
Ruby Loo
052ad71866 Support node's deploy_step field
Adds support for a node's ``deploy_step`` (read-only) field.
The deploy step indicates which step is being performed
during the deployment/provisioning of a node.
It is available starting with Bare Metal API version 1.44.

Depends-On: https://review.openstack.org/#/c/579968/
Change-Id: I93ac628bca0822a9a359926389543f7db7fb3e56
Story: #1753128
Task: #22925
2018-07-11 02:19:41 +00:00
Dmitry Tantsur
db277272a0 Switch functional tests to the fake-hardware hardware type
The OSC plugin tests are also refactored to use one driver_name variable.

Change-Id: I5cc6976b306d866c0d84706581ddf235e05dc322
2018-06-11 15:34:26 +02:00
Hironori Shiina
7ba617b288 Accept None as a result of node validation in functional test
A result of node validation can be None when a driver has no
implementation of an interface. This patch accepts None as a result
of node validation in the JSON scehma test.

Change-Id: Ic36d855f30ca59c6ac8be01e49f8d21db7c9b052
2017-12-18 11:56:14 +09:00
Dmitry Tantsur
28560398fa Switch the deprecated "ironic" CLI to "latest" API version by default
The functional tests were updated to account for the initial state changed
to "enroll" and for new fields appearing in "show" and "update" responses.

Closes-Bug: #1671145
Change-Id: Ida18541fbbc8064868cac0accb6919de08e9f795
2017-11-02 10:05:15 +01:00
Dmitry Tantsur
ac5b86a6d5 Make functional tests on JSON output debugable
The way its implemented does not allow why exactly the schema validation
failed. This patch simplies the code by allowing the exception to simply
propagate to the test runner.

Change-Id: Ic825624138ab4f764df9fb300a357680febc4563
2017-10-26 18:36:05 +02:00
Jenkins
343a4ff504 Merge "Verify JSON response of chassis commands" 2017-03-03 07:03:20 +00:00
SofiiaAndriichenko
601491900d Fix cleanup of resources in functional tests
Cleanup resources after test_node_create_json

Change-Id: I45593a49c67b3143215c83a6f729920f789e0e5a
Closes-Bug: #1658942
2017-02-02 18:41:22 +02:00
Kyrylo Romanenko
7756f7846f Verify JSON response of chassis commands
Test JSON response output to console for commands:
chassis-list,
chassis-show,
chassis-create,
chassis-update,
chassis-node-list.

Partial-Bug: #1555680
Change-Id: Ib04d41a3f72af8c4783eff826641084774c927c6
2016-12-15 13:32:34 +00:00
Vadim Hmyrov
d35a75cbb0 Fix display of chassis UUID field if empty
When calling OSC commands "openstack baremetal node create" or
"openstack baremetal node show" the field "chassis_uuid" should be
displayed even if it is empty.

This patch also updated the test schema for the ironic --json node-*
command as chassis_uuid will now appear as 'null' when the node isn't
associated with a chassis.

Change-Id: Ic10eb9ef908c12d5c71c1df407bfb66079a25703
Closes-Bug: #1620749
2016-10-22 22:12:48 +00:00
Kyrylo Romanenko
4e82421f00 Verify JSON response of driver commands
Test JSON response output to console for commands:
driver-list,
driver-show,
driver-properties.

Change-Id: I2e9363b051a496de93516446d3ed3ff687a5db23
Partial-Bug: #1555680
2016-08-01 11:31:35 +00:00
Kyrylo Romanenko
28dc9331b6 Add CLI tests to check JSON response body
Test JSON response output to console for commands:
node-list,
node-show,
node-validate,
node-show-states,
node-create,
node-update.

Change-Id: Id1ebff7cedb6e5b9f657d869d71f49de270a5ef3
Partial-Bug: #1555680
2016-07-26 12:58:04 +03:00